[Feature Request]: Load all models from --vae-path into VAE Selector
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 a recent commit we can select VAEs from a dropdown, after adding "sd_vae" to the Quicksettings list.
So I created a folder with various VAE files and supplied that folder to the --vae-path parameter. That did not load any VAEs into the dropdown however. So I assume the --vae-path parameter only accepts the path of one VAE.
While that is probably enough for my purpose right now, maybe I want to switch between different VAEs in that folder in the future.
Proposed workflow
- Add --vae-dir=e:\\art\stable-diffusion\mdls_vae (folder) to commandline (or change --vae-path to also accept folders)
- Start webui
- Select one of the VAEs in that folder to load it
Additional information
No response
There is now a separate folder for all VAEs in stable-diffusion-webui\models\VAE, if u move all VAEs there, it will be selectable.
@aliencaocao I know, but I don't want to use that folder. I want to use a folder outside of the cloned repo path
@aliencaocao I know, but I don't want to use that folder. I want to use a folder outside of the cloned repo path
I'm not sure if it works perfectly, but you could try to use symbolic links, or symlinks.
If you're on Windows; https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/
Or on Linux; https://linuxhint.com/symlink-a-directory-in-linux/
Yes, creating a symlink with mklink /D works on windows
I would also like to have this switch, because I run it on Colab, and I have VAE files on my own drive. The checkpoint, embeddings, configurations and hypernetwork are loaded this way, but not the VAE. That's why it would be nice to be able to load not just one VAE model, but all of them in the list with the --vae-dir switch.
Should this be closed? As of the latest commit there's still no equivalent commandline argument to specify a directory of VAEs like there is for checkpoints, embeds, and hypernetworks.
I don't understand why this post was closed if this feature is still missing today. On Colab would be important.
Have you tried the proposed solution of using symlinks? This should only be reopened if that does not work.
@aliencaocao can you use symlink on Colab from Google Drive?
I dont know because I have not tried and I don't use colab, but those with this need should try themselves and report if its not possible.
Here is an article that Colab does not support symlink.
Ok, then this should probably stay open since the issue cannot be solved yet @ClashSAN