InvokeAI/ldm/invoke
Lincoln Stein 51fdbe22d2 add support for loading VAE autoencoders
To add a VAE autoencoder to an existing model:

1. Download the appropriate autoencoder and put it into
   models/ldm/stable-diffusion

   Note that you MUST use a VAE that was written for the
   original CompViz Stable Diffusion codebase. For v1.4,
   that would be the file named vae-ft-mse-840000-ema-pruned.ckpt
   that you can download from https://huggingface.co/stabilityai/sd-vae-ft-mse-original

2. Edit config/models.yaml to contain the following stanza, modifying `weights`
   and `vae` as required to match the weights and vae model file names. There is
   no requirement to rename the VAE file.

~~~
stable-diffusion-1.4:
  weights: models/ldm/stable-diffusion-v1/sd-v1-4.ckpt
  description: Stable Diffusion v1.4
  config: configs/stable-diffusion/v1-inference.yaml
  vae: models/ldm/stable-diffusion-v1/vae-ft-mse-840000-ema-pruned.ckpt
  width: 512
  height: 512
~~~

3. Alternatively from within the `invoke.py` CLI, you may use the command
   `!editmodel stable-diffusion-1.4` to bring up a simple editor that will
   allow you to add the path to the VAE.

4. If you are just installing InvokeAI for the first time, you can also
   use `!import_model models/ldm/stable-diffusion/sd-v1.4.ckpt` instead
   to create the configuration from scratch.

5. That's it!
2022-10-22 19:27:46 -04:00
..
generator add clipseg support for creating inpaint masks from text 2022-10-18 08:27:48 -04:00
restoration Correct color channels in upscale using array slicing 2022-10-20 16:52:07 -04:00
args.py outcropping improvements 2022-10-22 13:38:32 -04:00
conditioning.py rename all modules from ldm.dream to ldm.invoke 2022-10-08 11:37:23 -04:00
devices.py rename all modules from ldm.dream to ldm.invoke 2022-10-08 11:37:23 -04:00
image_util.py rename all modules from ldm.dream to ldm.invoke 2022-10-08 11:37:23 -04:00
log.py rename all modules from ldm.dream to ldm.invoke 2022-10-08 11:37:23 -04:00
model_cache.py add support for loading VAE autoencoders 2022-10-22 19:27:46 -04:00
pngwriter.py add option to CLI and pngwriter that allows user to set PNG compression level 2022-10-17 22:27:47 -04:00
readline.py Merge branch 'model-switching' into development 2022-10-21 21:27:59 -04:00
seamless.py Split seamless config into separate file 2022-10-17 19:31:20 -04:00
server_legacy.py Add back old dream.py as legacy_api.py 2022-10-12 20:35:56 -04:00
server.py Generalize facetool strength argument 2022-10-14 00:03:06 -04:00
txt2mask.py add !mask command to view output of clipseg 2022-10-20 06:56:50 -04:00