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

Model Install Path #688

Open
choseokheeee opened this issue May 17, 2024 · 4 comments
Open

Model Install Path #688

choseokheeee opened this issue May 17, 2024 · 4 comments

Comments

@choseokheeee
Copy link

choseokheeee commented May 17, 2024

I set the model path to a custom path by changing the extra_model_paths.yaml

comfyui:
     base_path: /custom/path/
     checkpoints: models/checkpoints/
     clip: models/clip/
     clip_vision: models/clip_vision/
     configs: models/configs/
     controlnet: models/controlnet/
     embeddings: models/embeddings/
     loras: models/loras/
     upscale_models: models/upscale_models/
     vae: models/vae/

But when I install models using the Manager, the model is installed in the ComfyUI folder(where the main.py file exists), not the custom path i set

This still works(?), but I want to change the default installation path to a custom path

@liusida
Copy link
Contributor

liusida commented May 29, 2024

This is expected, @choseokheeee .

ComfyUI defines the main model folder to be ./models/, and can load extra models from extra_model_paths.

I'm not sure if it is appropriate for Manager to download models to a custom folder instead of to the main model folder.

@Amit30swgoh
Copy link

I set the model path to a custom path by changing the extra_model_paths.yaml

comfyui:
     base_path: /custom/path/
     checkpoints: models/checkpoints/
     clip: models/clip/
     clip_vision: models/clip_vision/
     configs: models/configs/
     controlnet: models/controlnet/
     embeddings: models/embeddings/
     loras: models/loras/
     upscale_models: models/upscale_models/
     vae: models/vae/

But when I install models using the Manager, the model is installed in the ComfyUI folder(where the main.py file exists), not the custom path i set

This still works(?), but I want to change the default installation path to a custom path

  1. Find the extra-model-paths.yaml File:

This file is typically located in the same directory as your main.py file (the main ComfyUI script).
2. Modify the base_path:

Open the extra-model-paths.yaml file in a text editor.

Change the base_path entry to your desired custom path:

YAML
comfyui:
base_path: /your/custom/path/
# ... (rest of the file)
Use code with caution.
content_copy
3. Restart ComfyUI:

Close ComfyUI if it's running.
Restart it, and hopefully, ComfyUI-Manager will now install models in your custom path!
Why This Might Work:

Some versions of ComfyUI-Manager might check the base_path in extra-model-paths.yaml to determine the installation location. However, this behavior is not officially documented and might not work in all cases.

Important Note:

If this doesn't work, the environment variable method (COMFYUI_MODELS_PATH) or the configuration file method (if available) are more reliable ways to change the installation path.

@liusida
Copy link
Contributor

liusida commented May 31, 2024

I set the model path to a custom path by changing the extra_model_paths.yaml

comfyui:
     base_path: /custom/path/
     checkpoints: models/checkpoints/
     clip: models/clip/
     clip_vision: models/clip_vision/
     configs: models/configs/
     controlnet: models/controlnet/
     embeddings: models/embeddings/
     loras: models/loras/
     upscale_models: models/upscale_models/
     vae: models/vae/

But when I install models using the Manager, the model is installed in the ComfyUI folder(where the main.py file exists), not the custom path i set

This still works(?), but I want to change the default installation path to a custom path

another workaround is to use docker, which can mount your directory as /ComfyUI/models to replace the old one.
or on Linux, delete the /ComfyUI/models and make a symbol link using ln -s <your folder> <models in Comfy>.

@liusida
Copy link
Contributor

liusida commented May 31, 2024

I set the model path to a custom path by changing the extra_model_paths.yaml

comfyui:
     base_path: /custom/path/
     checkpoints: models/checkpoints/
     clip: models/clip/
     clip_vision: models/clip_vision/
     configs: models/configs/
     controlnet: models/controlnet/
     embeddings: models/embeddings/
     loras: models/loras/
     upscale_models: models/upscale_models/
     vae: models/vae/

But when I install models using the Manager, the model is installed in the ComfyUI folder(where the main.py file exists), not the custom path i set
This still works(?), but I want to change the default installation path to a custom path

  1. Find the extra-model-paths.yaml File:

This file is typically located in the same directory as your main.py file (the main ComfyUI script). 2. Modify the base_path:

Open the extra-model-paths.yaml file in a text editor.

Change the base_path entry to your desired custom path:

YAML comfyui: base_path: /your/custom/path/ # ... (rest of the file) Use code with caution. content_copy 3. Restart ComfyUI:

Close ComfyUI if it's running. Restart it, and hopefully, ComfyUI-Manager will now install models in your custom path! Why This Might Work:

Some versions of ComfyUI-Manager might check the base_path in extra-model-paths.yaml to determine the installation location. However, this behavior is not officially documented and might not work in all cases.

Important Note:

If this doesn't work, the environment variable method (COMFYUI_MODELS_PATH) or the configuration file method (if available) are more reliable ways to change the installation path.

Is this produced by some LLMs? I feel like there's hallucination all over the place.

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

3 participants