Skip to content

comfy model list does not find models in subdirectories of /models #361

@nelsonjr

Description

@nelsonjr

Expected Behavior

Various nodes expect models to be in specific directories (e.g., vae, text_encoders), so models are placed there. comfy model list only looks at the /models directory, without recursing, and thus misses all the installed modules.

Type Model Name Size
diffusion Wan2.2_Remix_NSFW_i2v_14b_high_lighting_v2.0.safetensors 13956320 KB
loras wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors 1198220 KB
loras wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors 1198220 KB
... etc ...

Actual Behavior

(venv) root@82472ab46fb2:~/comfy/ComfyUI/models# comfy model list
No models found.

Steps to Reproduce

  1. Put models in the appropriate folders
  2. Run comfy model list

In its current state, it returns No models found, even though models are present in the system.

Debug Logs

(venv) root@82472ab46fb2:~/comfy/ComfyUI/models# find . -name "*.safetensors"
./diffusion_models/Wan2.2_Remix_NSFW_i2v_14b_high_lighting_v2.0.safetensors
./diffusion_models/Wan2.2_Remix_NSFW_i2v_14b_low_lighting_v2.0.safetensors
./diffusion_models/wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors
./diffusion_models/wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors
./loras/wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors
./loras/wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors
./text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors
./vae/wan_2.1_vae.safetensors

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions