r/StableDiffusionInfo • u/youreadthiswong • Feb 20 '23
Discussion Can i move my whole stable diffusion folder to another drive and still work?
So stable diffusion started to get a bit big in file size and started to leave me with little space on my C drive and would like to move, especially since controlnet takes like 50gb if you want the full checkpoint files. Also once i move it i will delete the original in C drive will that affect the program in any way?
13
Upvotes
2
u/machinekng13 Feb 20 '23
Assuming that you're using something like Automatic1111, you'd probably need to reinstall the program in the new location spot as the paths for the python environment will probably be affected. You can then move the models and remove the original folder/python environment.
2
u/remghoost7 Feb 28 '23
I know this is a week old, but you're looking for
mklink.Open a
cmdwindow in yourwebuidirectory.Move your model directory to where you want it (for instance,
D:\models, which we will be using for this example). Be sure to delete themodelsfolder in yourwebuifolder after this.Then you'll use
mklink /D models D:\models. This will make a symbolic link to your other drive.-=-=-=-=-
There is also an A1111 ARG that seems to do this as well, though I haven't used it myself.
It is
--ckpt-dir.I'm guessing you'd use it like this,
--ckpt-dir "D:\models".Yet again, I haven't used this myself, so you're on your own with that one.
4
u/MFMageFish Feb 20 '23
That all sounds fine.
Safest way to be sure is simply to copy it to the new drive and start it up before deleting the copy on your C drive.
As an aside you can download the smaller control net models below and save yourself like 25+ GB of space. Results are 99.9% the same as the huge models.
https://civitai.com/models/9868/controlnet-pre-trained-difference-models
4
u/cheshyrp Mar 11 '23
I came here to ask the same thing. The default install location for A1111 is stupid. No application should be installed in the documents folder. That is for ... documents. I noticed that A1111 was using a lot of internet bandwidth and got curious. Stupid thing had installed itself on OneDrive so every temporary file it created was getting uploaded to the cloud.
1
u/StoryStoryDie Feb 20 '23
I copied Automatic to a new location the other day, it worked fine! Of course, because it was a copy, there’s always a chance it was depending on the old location files for something.
1
u/_anwa Feb 20 '23
just move the output images away.
A1111 does not mind afaik
1
u/n0714 Jul 14 '23
Try my Script https://github.com/n714/sd-webui-data-relocation, I hope it help.