Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Option for custom directory for model.ckpt #2938

Closed
Ladypoly opened this issue Oct 17, 2022 · 12 comments
Closed

Feature request: Option for custom directory for model.ckpt #2938

Ladypoly opened this issue Oct 17, 2022 · 12 comments

Comments

@Ladypoly
Copy link

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.

@Centurion-Rome
Copy link

Same by me. Good idea!

@ClashSAN
Copy link
Collaborator

ClashSAN commented Oct 17, 2022

Try --ckpt-dir, see wiki

@Ladypoly
Copy link
Author

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

@Miraculix200
Copy link

Miraculix200 commented Oct 17, 2022

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

@A2Sumie
Copy link

A2Sumie commented Oct 17, 2022

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.

@kmbarr
Copy link

kmbarr commented Oct 17, 2022

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.

@Baughn
Copy link

Baughn commented Oct 17, 2022

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

@Ladypoly
Copy link
Author

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

@A2Sumie
Copy link

A2Sumie commented Oct 17, 2022

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

@Mousewrites
Copy link

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

@Centurion-Rome
Copy link

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

@wizardt
Copy link

wizardt commented Jan 29, 2023

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: 041f519

DrakeRichards pushed a commit to DrakeRichards/stable-diffusion-webui that referenced this issue Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants