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

Feature request: Option for custom directory for model.ckpt

Open Ladypoly opened this issue 1 year ago • 10 comments

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.

Ladypoly avatar Oct 17 '22 08:10 Ladypoly

Same by me. Good idea!

Centurion-Rome avatar Oct 17 '22 09:10 Centurion-Rome

Try --ckpt-dir, see wiki

ClashSAN avatar Oct 17 '22 09:10 ClashSAN

--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?

Ladypoly avatar Oct 17 '22 11:10 Ladypoly

--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...

Miraculix200 avatar Oct 17 '22 13:10 Miraculix200

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.

A2Sumie avatar Oct 17 '22 13:10 A2Sumie

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.

kmbarr avatar Oct 17 '22 14:10 kmbarr

WSL2 is just Linux in a VM. Everything that works on bare metal should still work in WSL2, except of course raw hardware access.

Baughn avatar Oct 17 '22 14:10 Baughn

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

Ladypoly avatar Oct 17 '22 14:10 Ladypoly

Windows 10 supports symlink through mklink command. maybe you could try it out?

A2Sumie avatar Oct 17 '22 15:10 A2Sumie

image make sure you have the " ", that was an issue for me.

Mousewrites avatar Oct 17 '22 17:10 Mousewrites

" - 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"

Centurion-Rome avatar Oct 21 '22 08:10 Centurion-Rome

image 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

wizardt avatar Jan 29 '23 15:01 wizardt