mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Update readme, fix defaults for case-sensitive fs's
This commit is contained in:
parent
dbb9132f4d
commit
60ed004328
14
README.md
14
README.md
@ -86,7 +86,7 @@ This script also provides the ability to invoke GFPGAN after image generation. D
|
|||||||
and optionally upscale the image to a higher resolution.
|
and optionally upscale the image to a higher resolution.
|
||||||
|
|
||||||
To use the ability, clone the [GFPGAN repository](https://github.com/TencentARC/GFPGAN) and follow their
|
To use the ability, clone the [GFPGAN repository](https://github.com/TencentARC/GFPGAN) and follow their
|
||||||
installation instructions. By default, we expect GFPGAN to be installed in a 'gfpgan' sibling directory.
|
installation instructions. By default, we expect GFPGAN to be installed in a 'GFPGAN' sibling directory.
|
||||||
|
|
||||||
You may also want to install Real-ESRGAN, if you want to enhance non-face regions in the image by installing
|
You may also want to install Real-ESRGAN, if you want to enhance non-face regions in the image by installing
|
||||||
the pip Real-ESRGAN package.
|
the pip Real-ESRGAN package.
|
||||||
@ -97,6 +97,15 @@ pip install realesrgan
|
|||||||
|
|
||||||
Now, you can run this script by adding the --gfpgan option. Any issues with GFPGAN will be reported on initialization.
|
Now, you can run this script by adding the --gfpgan option. Any issues with GFPGAN will be reported on initialization.
|
||||||
|
|
||||||
|
~~~~
|
||||||
|
(ldm) ~/stable-diffusion$ python3 ./scripts/dream.py
|
||||||
|
* Initializing, be patient...
|
||||||
|
(...more initialization messages...)
|
||||||
|
* --gfpgan was specified, loading gfpgan...
|
||||||
|
(...even more initialization messages...)
|
||||||
|
* Initialization done! Awaiting your command...
|
||||||
|
~~~~
|
||||||
|
|
||||||
When generating prompts, add a -G or --gfpgan_strenth option to control the strength of the GFPGAN enhancement.
|
When generating prompts, add a -G or --gfpgan_strenth option to control the strength of the GFPGAN enhancement.
|
||||||
0.0 is no enhancement, 1.0 is maximum enhancement.
|
0.0 is no enhancement, 1.0 is maximum enhancement.
|
||||||
|
|
||||||
@ -115,7 +124,8 @@ That's it!
|
|||||||
There's also a bunch of options to control GFPGAN settings when starting the script for different configs that you can
|
There's also a bunch of options to control GFPGAN settings when starting the script for different configs that you can
|
||||||
read about in the help text. This will let you control where GFPGAN is installed, if upsampling is enapled, the upsampler to use and the model path.
|
read about in the help text. This will let you control where GFPGAN is installed, if upsampling is enapled, the upsampler to use and the model path.
|
||||||
|
|
||||||
Note that loading GFPGAN consumes additional GPU memory, additionaly, a couple of seconds will be tacked on when generating your images.
|
Note that loading GFPGAN consumes additional GPU memory, but hey, 3090s with 24Gi of VRAM are cheap now *cough*.
|
||||||
|
Additionally, a couple of seconds will be tacked on when generating your images, but hey, it's worth it.
|
||||||
|
|
||||||
## Barebones Web Server
|
## Barebones Web Server
|
||||||
|
|
||||||
|
@ -333,7 +333,7 @@ def create_argv_parser():
|
|||||||
help="indicates the path to the GFPGAN model, relative to --gfpgan_dir. Only used if --gfpgan is specified")
|
help="indicates the path to the GFPGAN model, relative to --gfpgan_dir. Only used if --gfpgan is specified")
|
||||||
parser.add_argument("--gfpgan_dir",
|
parser.add_argument("--gfpgan_dir",
|
||||||
type=str,
|
type=str,
|
||||||
default='../gfpgan',
|
default='../GFPGAN',
|
||||||
help="indicates the directory containing the GFPGAN code. Only used if --gfpgan is specified")
|
help="indicates the directory containing the GFPGAN code. Only used if --gfpgan is specified")
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user