stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Feature Request]: Having a dropdown for VAE so we don't have to duplicate them for each model
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What would your feature do ?
Since Stability has released an improved VAE encoder for SD1.5 and that we can actually use it with other models as well by just placing it in the models folder as a model.vae.pt, I thought it would be good to have an option to apply it to the current selected checkpoint, instead of having to duplicate the same vae file for each model, or create symlinks as I do (which is still annoying)
Proposed workflow
Two proposals: • A setting in the settings page to chose which VAE to use from a list • Another dropdown next to the checkpoint dropdown
Additional information
No response
Yeah, the VAE usage is pretty clunky at the moment and could be greatly improved.
In the meantime, there's actually a commandline arg doing this:
- At the root of the stable diffusion webui folder you've got a webui-user.bat that you've probably heard about, it allows you to launch the UI with some specific parameters, like --medvram --autolaunch etc.
- add
--vae-path "path\to\your\vae\file\\modelname.vae.pt"to the webui-user.batCOMMANDLINE_ARGS= - Relaunch the UI and enjoy
- Now unless the backend finds a .vae.pt file exactly named after the model you select, it's going to take the one you've set as --vae-path by default !
I was about to make a request for this as well, because I just downloaded a bunch of vae.pt files to test, hoping this can be a select box soon to easily compare differences
The path has to be inside " " ? I'm editing the webui-user.sh (Linux) I see only export COMMANDLINE_ARGS=" " so it should work with: export COMMANDLINE_ARGS= --vae-path "path\to\your\vae\file\modelname.vae.pt"
regardless of being able to do this with a commandline arg, (tried that and it works fine), it would be nice to be able to switch it on and off (and between different vae's) from the ui without having to completely restart.
To save free space, you can use symbolic links instead of actually duplicating VAEs.
https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/3986