stable-diffusion-webui
stable-diffusion-webui copied to clipboard
Feature request: Option for custom directory for model.ckpt
For everyone having multiple OS you always have to copy your model files. Thanks to Dreambooth I have now about 100GB of model files which I have to copy to every OS.
It would be nice to have an option where we can set a custom directory for model.ckpt Then we could also save all models on a NAS and everyone in the Network could use the models.
Same by me. Good idea!
Try --ckpt-dir, see wiki
--ckpt-dir
Thanks I wasn't aware of --ckpt-dir But whatever I try with / or , =, " i can't set the path. Do you have a small example for the syntax?
--ckpt-dir
Thanks I wasn't aware of --ckpt-dir But whatever I try with / or , =, " i can't set the path. Do you have a small example for the syntax?
--ckpt-dir=e:\\art/stable-diffusion/models
I know, looks stupid. But it works. Windows...
I wonder if symlinks shall work. If you wouldn't mind, what's that model that exceeds 100GB after a few copies? Assuming that there isn't dozens of copies.
I wonder if symlinks shall work.
Symlinks to model files definitely work for Linux. They should be fine under WSL2 for Windows as well, although I haven't tried that specifically.
WSL2 is just Linux in a VM. Everything that works on bare metal should still work in WSL2, except of course raw hardware access.
I might be not smart enough but after trying for over an hour I just can't get it to work to use this one. It always loads the models from C:/Desktop where my webui on this OS is instead of --ckpt-dir=d:\StableDiffusion/stable-diffusion-webui/models/Stable-diffusion
Windows 10 supports symlink through mklink
command. maybe you could try it out?
make sure you have the " ", that was an issue for me.
" - can be also only at dir: not whole ARGS. So something like this also worked for me: set COMMANDLINE_ARGS= --autolaunch --ckpt-dir "F:!AI\model"
make sure you have the " ", that was an issue for me. WORKS for me. thx. Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) Commit hash: 041f5198a2b9e9c5c8b25612f2d8018850e458a6