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

New install, extra models paths not being used #4637

Closed
jwvanderbeck opened this issue Aug 27, 2024 · 4 comments
Closed

New install, extra models paths not being used #4637

jwvanderbeck opened this issue Aug 27, 2024 · 4 comments
Labels
User Support A user needs help with something, probably not a bug.

Comments

@jwvanderbeck
Copy link

Your question

I am setting up a new install of Comfy on a new computer. I want to use the same models as my other two computers which already have Comfy on them, so I set this new one up the same way, mapping my drive with the models to G: and copying over the same config extra_model_paths.yaml file from my other installations.

When I start Comfy the log DOES indicate that it is adding these extra paths, yet when using the web app the models in these paths are NOT available. Copying one of them to the local checkpoints directory works, but the one in the yaml do not.

As I said I have this same setup on two other machines so I'm at a loss for why this isn't working?

Logs

PS E:\ComfyUI> python .\main.py
Total VRAM 24563 MB, total RAM 65457 MB
pytorch version: 2.4.0+cu121
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3090 Ti : cudaMallocAsync
Using pytorch cross attention
[Prompt Server] web root: E:\ComfyUI\web
Adding extra search path checkpoints G:\05-Models\Stable-diffusion
Adding extra search path configs G:\05-Models\Stable-diffusion
Adding extra search path vae G:\05-Models\VAE
Adding extra search path loras G:\05-Models\Lora
Adding extra search path loras G:\05-Models\LyCORIS
Adding extra search path upscale_models G:\05-Models\ESRGAN
Adding extra search path upscale_models G:\05-Models\RealESRGAN
Adding extra search path upscale_models G:\05-Models\SwinIR
Adding extra search path embeddings G:\05-Models\embeddings
Adding extra search path hypernetworks G:\05-Models\hypernetworks
Adding extra search path controlnet G:\05-Models\ControlNet
Adding extra search path ipadapter G:\05-Models\ipadapter
Adding extra search path clip G:\05-Models\clip
Adding extra search path clip_vision G:\05-Models\clip_vision
Adding extra search path unet G:\05-Models\unet
C:\Python312\Lib\site-packages\kornia\feature\lightglue.py:44: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
  @torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)

Import times for custom nodes:
   0.0 seconds: E:\ComfyUI\custom_nodes\websocket_image_save.py

Starting server

To see the GUI go to: http://127.0.0.1:8188


### Other

![image](https://github.com/user-attachments/assets/2e4e0c03-562d-4613-a7b4-45bffada4c13)
@jwvanderbeck jwvanderbeck added the User Support A user needs help with something, probably not a bug. label Aug 27, 2024
@jwvanderbeck
Copy link
Author

Hmm after some time debugging the Python code it looks like for some reason it just plain thinks the directories don't exist even though they do. os.path.isdir(directory) returns false. So sounds like it is a Python/Windows issue. I'll keep digging.

@jwvanderbeck
Copy link
Author

jwvanderbeck commented Aug 27, 2024

Is there something special about the environment that Comfy runs in?

This code in comfy will return an invalid path with directory="G:\\05-Models\\Stable-diffusion"

    if not os.path.isdir(directory):
        print("Invalid path: " + directory)
        return [], {}

But this test code written in my own one off script returns a valid directory

import os

if os.path.isdir("G:\\05-Models\\Stable-diffusion"):
    print("Found path")
else:
    print("Path not found")

(['E:\\ComfyUI\\models\\checkpoints', 'G:\\05-Models\\Stable-diffusion', 'E:\\ComfyUI\\output\\checkpoints'], {'.pkl', '.bin', '.pth', '.ckpt', '.safetensors', '.sft', '.pt'}) ['put_checkpoints_here', 'sd_xl_turbo_1.0_fp16.safetensors'] Invalid path: G:\05-Models\Stable-diffusion

@jwvanderbeck

This comment was marked as off-topic.

Repository owner deleted a comment Aug 27, 2024
@jwvanderbeck
Copy link
Author

Well apparently much ado for nothing. I forgot the #1 rule of troubleshooting.
After rebooting my Windows machine everything works properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User Support A user needs help with something, probably not a bug.
Projects
None yet
Development

No branches or pull requests

2 participants
@jwvanderbeck and others