Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s0md3v/sd-webui-roop
roop extension for StableDiffusion web-ui
https://github.com/s0md3v/sd-webui-roop
face-swap roop sd-webui stable-diffusion
Last synced: 7 days ago
JSON representation
roop extension for StableDiffusion web-ui
- Host: GitHub
- URL: https://github.com/s0md3v/sd-webui-roop
- Owner: s0md3v
- License: agpl-3.0
- Created: 2023-06-17T22:53:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-01T05:16:31.000Z (9 months ago)
- Last Synced: 2024-11-28T20:04:30.971Z (14 days ago)
- Topics: face-swap, roop, sd-webui, stable-diffusion
- Language: Python
- Homepage:
- Size: 676 KB
- Stars: 3,404
- Watchers: 26
- Forks: 884
- Open Issues: 133
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-stable-diffusion-webui - sd-webui-roop - Roop extension for StableDiffusion web-ui. Not directly related to the given keyword and description. (GitHub projects)
README
# roop for StableDiffusion
This is an extension for StableDiffusion's [AUTOMATIC1111 web-ui](https://github.com/AUTOMATIC1111/stable-diffusion-webui/) that allows face-replacement in images. It is based on [roop](https://github.com/s0md3v/roop) but will be developed seperately.
### 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](https://visualstudio.microsoft.com/downloads/). During the install, make sure to include the Python and C++ packages.
+ Run this command: `pip install insightface==0.7.3`
+ In web-ui, go to the "Extensions" tab and use this URL `https://github.com/s0md3v/sd-webui-roop` 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](https://huggingface.co/henryruhs/roop/resolve/main/inswapper_128.onnx) model and put it inside `/models/roop/` directory.For rest of the errors, use google. Good luck.
## 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## Tips
#### Getting good quality results
First of all, make sure the "Restore Face" option is enabled. You can also try the "Upscaler" option or for more finer control, use an upscaler from the "Extras" tab.For even better quality, use img2img with denoise set to `0.1` and gradually increase it until you get a balance of quality and resembelance.
#### Replacing specific faces
If there are multiple faces in an image, select the face numbers you wish to swap using the "Comma separated face number(s)" option.#### The face didn't get swapped?
Did you click "Enable"?If you did and your console doesn't show any errors, it means roop detected that your image is either NSFW or wasn't able to detect a face at all.