Skip to content

Unlocked Roop extension for StableDiffusion web-ui

License

Notifications You must be signed in to change notification settings

AriBerisha/sd-webui-roop-unlocked

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unlocked roop for StableDiffusion

This is an extension for StableDiffusion's AUTOMATIC1111 web-ui that allows face-replacement in images. It is based on roop but will be developed seperately.

example

Disclaimer

This software is meant to be a productive contribution to the rapidly growing AI-generated media industry. It will help artists with tasks such as animating a custom character or using the character as a model for clothing etc.

The developers of this software are aware of its possible unethical applicaitons and are committed to take preventative measures against them. It has a built-in check which prevents the program from working on inappropriate media. We will continue to develop this project in the positive direction while adhering to law and ethics. This project may be shut down or include watermarks on the output if requested by law.

Users of this software are expected to use this software responsibly while abiding the local law. If face of a real person is being used, users are suggested to get consent from the concerned person and clearly mention that it is a deepfake when posting content online. Developers of this software will not be responsible for actions of end-users.

Installation

First of all, if you can't install it for some reason, don't open an issue here. Google your errors.

On Windows, download and install Visual Studio. During the install, make sure to include the Python and C++ packages.

  • Run this command: pip install insightface==0.7.3
  • Go to stable-diffusion-webui, add the following to requirements.txt: insightface==0.7.3, this is neccessary because webui runs in virtual env.
  • In web-ui, go to the "Extensions" tab and use this URL https://github.com/AriBerisha/sd-webui-roop-unlocked in the "install from URL" tab.
  • Close webui and run it again
  • If you encounter 'NoneType' object has no attribute 'get' error, download the inswapper_128.onnx model and put it inside <webui_dir>/models/roop/ directory.

Usage

  1. Under "roop" drop-down menu, import an image containing a face.
  2. Turn on the "Enable" checkbox
  3. That's it, now the generated result will have the face you selected.
  4. If you wish to inpaint multiple faces, use the comma seperated numbers such as, for 4 faces use:
  5. 0,1,2,3

Tips

Getting good quality results

By personal experience if you wish to have realistic faces with no crooked teeth use GFPGAN for Restore faces

About

Unlocked Roop extension for StableDiffusion web-ui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%