ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

[Feature Request] Ability to set Checkpoint directory via Commandline

Open zabinzsur opened this issue 2 years ago • 2 comments

To avoid duplicating Checkpoints when you have multiple UIs installed (such as Automatic1111 install and ConfyUI).

zabinzsur avatar Feb 19 '23 13:02 zabinzsur

Yeah I'll be adding that.

In the meantime you can add a symlink to the auto1111 checkpoints folder in models/checkpoints/ and it should work.

comfyanonymous avatar Feb 19 '23 20:02 comfyanonymous

For binbows users i reccomend doing this, to save space, but make sure your comfy UI and other models are on the same hard drive, otherwise it wont work.

https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mklink

Linking models folder to destination from source:

Open CMD with admin rights (press right mouse button - run as administrator)

image

Then write this (my specific case):

mklink /D E:\VBA_PROJECTS\Git\ComfyUI\models\checkpoints E:\VBA_PROJECTS\Git\stable-diffussion-webui-automatic\models\Stable-diffusion
mklink /D <destination> <source>

I had to delete ComfyUI\models\checkpoints folder before i could run this command. Have fun!

andzejsp avatar Mar 14 '23 11:03 andzejsp

This was solved with: https://github.com/comfyanonymous/ComfyUI/blob/master/extra_model_paths.yaml.example

comfyanonymous avatar Dec 08 '23 19:12 comfyanonymous