mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-14 14:52:31 +03:00
Update README.md
This commit is contained in:
parent
22fdaf63e7
commit
9e42c836cd
29
README.md
29
README.md
@ -2,6 +2,7 @@ Features:
|
|||||||
|
|
||||||
* Gradio GUI: Idiot-proof, fully featured frontend for both txt2img and img2img generation
|
* Gradio GUI: Idiot-proof, fully featured frontend for both txt2img and img2img generation
|
||||||
* No more manually typing parameters, now all you have to do is write your prompt and adjust sliders
|
* No more manually typing parameters, now all you have to do is write your prompt and adjust sliders
|
||||||
|
* :computer: esrgan/gfpgan on cpu support :computer:
|
||||||
* :fire: gpu device selectable with --gpu <id> :fire:
|
* :fire: gpu device selectable with --gpu <id> :fire:
|
||||||
* :fire::fire: Mask and crop :fire::fire:
|
* :fire::fire: Mask and crop :fire::fire:
|
||||||
* Textual inversion 🔥: [info](https://textual-inversion.github.io/) - requires enabling, see [here](https://github.com/hlky/sd-enable-textual-inversion), script works as usual without it enabled
|
* Textual inversion 🔥: [info](https://textual-inversion.github.io/) - requires enabling, see [here](https://github.com/hlky/sd-enable-textual-inversion), script works as usual without it enabled
|
||||||
@ -23,24 +24,23 @@ A browser interface based on Gradio library for Stable Diffusion.
|
|||||||
|
|
||||||
Original script with Gradio UI was written by a kind anonymopus user. This is a modification.
|
Original script with Gradio UI was written by a kind anonymopus user. This is a modification.
|
||||||
|
|
||||||
![](screenshot.png)
|
![](images/txt2img.png)
|
||||||
|
|
||||||
|
![](images/img2img.png)
|
||||||
|
|
||||||
|
![](images/gfpgan.png)
|
||||||
|
|
||||||
|
![](images/esrgan.png)
|
||||||
|
|
||||||
### GFPGAN
|
### GFPGAN
|
||||||
|
|
||||||
If you want to use GFPGAN to improve generated faces, you need to install it separately.
|
If you want to use GFPGAN to improve generated faces, you need to install it separately.
|
||||||
Follow instructions from https://github.com/TencentARC/GFPGAN, but when cloning it, do so into Stable Diffusion main directory, `/sd`.
|
Download [GFPGANv1.3.pth](https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth) and put it
|
||||||
After that download [GFPGANv1.3.pth](https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth) and put it
|
into the `/stable-diffusion/src/gfpgan/experiments/pretrained_models` directory.
|
||||||
into the `/sd/GFPGAN/experiments/pretrained_models` directory. If you're getting troubles with GFPGAN support, follow instructions
|
|
||||||
from the GFPGAN's repository until `inference_gfpgan.py` script works.
|
|
||||||
|
|
||||||
If the GFPGAN directory does not exist, you will not get the option to use GFPGAN in the UI. If it does exist, you will either be able
|
|
||||||
to use it, or there will be a message in console with an error related to GFPGAN.
|
|
||||||
|
|
||||||
### RealESRGAN
|
### RealESRGAN
|
||||||
If you want to use RealESRGAN to upscale generated images, you need to install it separately.
|
Download [RealESRGAN_x4plus.pth](https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth) and [RealESRGAN_x4plus_anime_6B.pth](https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth).
|
||||||
Follow instructions from https://github.com/xinntao/Real-ESRGAN, but when cloning it, do so into Stable Diffusion main directory, `/sd`.
|
Put them into the `stable-diffusion/src/realesrgan/experiments/pretrained_models` directory.
|
||||||
After that download [RealESRGAN_x4plus.pth](https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth) and [RealESRGAN_x4plus_anime_6B.pth](https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth).
|
|
||||||
Put them into the `/sd/RealESRGAN/experiments/pretrained_models` directory. If you're getting troubles with RealESRGAN support, follow instructions from the RealESRGAN's repository until `inference_realesrgan.py` script works.
|
|
||||||
|
|
||||||
If the RealESRGAN directory does not exist, you will not get the option to use RealESRGAN in the UI. If it does exist, you will be either able
|
If the RealESRGAN directory does not exist, you will not get the option to use RealESRGAN in the UI. If it does exist, you will be either able
|
||||||
to use it, or there will be a message in console with an error related to RealESRGAN.
|
to use it, or there will be a message in console with an error related to RealESRGAN.
|
||||||
@ -73,7 +73,8 @@ There is also a separate tab for using RealESRGAN on any picture.
|
|||||||
![](images/RealESRGAN.png)
|
![](images/RealESRGAN.png)
|
||||||
|
|
||||||
### Sampling method selection
|
### Sampling method selection
|
||||||
Pick out of three sampling methods for txt2img: DDIM, PLMS, k-diffusion:
|
txt2img samplers: "DDIM", "PLMS", 'k_dpm_2_a', 'k_dpm_2', 'k_euler_a', 'k_euler', 'k_heun', 'k_lms'
|
||||||
|
img2img samplers: "DDIM", 'k_dpm_2_a', 'k_dpm_2', 'k_euler_a', 'k_euler', 'k_heun', 'k_lms'
|
||||||
|
|
||||||
![](images/sampling.png)
|
![](images/sampling.png)
|
||||||
|
|
||||||
@ -96,7 +97,7 @@ If you use this feature, batch count will be ignored, because the number of pict
|
|||||||
depends on your prompts, but batch size will still work (generating multiple pictures at the
|
depends on your prompts, but batch size will still work (generating multiple pictures at the
|
||||||
same time for a small speed boost).
|
same time for a small speed boost).
|
||||||
|
|
||||||
### Flagging
|
### Flagging (Broken after UI changed to gradio.Blocks() see [Flag button missing from new UI](https://github.com/hlky/stable-diffusion-webui/issues/50))
|
||||||
Click the Flag button under the output section, and generated images will be saved to `log/images` directory, and generation parameters
|
Click the Flag button under the output section, and generated images will be saved to `log/images` directory, and generation parameters
|
||||||
will be appended to a csv file `log/log.csv` in the `/sd` directory.
|
will be appended to a csv file `log/log.csv` in the `/sd` directory.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user