stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Feature Request]: Load all models from --vae-path into VAE Selector

Open Miraculix200 opened this issue 3 years ago • 5 comments

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

  1. Add --vae-dir=e:\\art\stable-diffusion\mdls_vae (folder) to commandline (or change --vae-path to also accept folders)
  2. Start webui
  3. Select one of the VAEs in that folder to load it

Additional information

No response

Miraculix200 avatar Nov 02 '22 13:11 Miraculix200

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 avatar Nov 02 '22 15:11 aliencaocao

@aliencaocao I know, but I don't want to use that folder. I want to use a folder outside of the cloned repo path

Miraculix200 avatar Nov 02 '22 15:11 Miraculix200

@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/

ResleyZ avatar Nov 02 '22 16:11 ResleyZ

Yes, creating a symlink with mklink /D works on windows

Miraculix200 avatar Nov 02 '22 17:11 Miraculix200

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.

mykeehu avatar Nov 12 '22 23:11 mykeehu

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.

ghost avatar Dec 12 '22 21:12 ghost

I don't understand why this post was closed if this feature is still missing today. On Colab would be important.

mykeehu avatar Dec 13 '22 06:12 mykeehu

Have you tried the proposed solution of using symlinks? This should only be reopened if that does not work.

aliencaocao avatar Dec 13 '22 06:12 aliencaocao

@aliencaocao can you use symlink on Colab from Google Drive?

mykeehu avatar Dec 13 '22 06:12 mykeehu

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.

aliencaocao avatar Dec 13 '22 06:12 aliencaocao

Here is an article that Colab does not support symlink.

mykeehu avatar Dec 13 '22 06:12 mykeehu

Ok, then this should probably stay open since the issue cannot be solved yet @ClashSAN

aliencaocao avatar Dec 13 '22 06:12 aliencaocao