Skip to content
FramesField
FIX 27 · COMFYUI & LOCAL GPU
raw .md ↗ Verified Dec 1, 2026

Fix ComfyUI Value Not in List Model Folder Errors

Direct Fix: Move split diffusion models to models/diffusion_models/, text encoders to models/text_encoders/, and VAEs to models/vae/, query /object_info/<LoaderNode> to inspect exact whitelisted strings, normalize Windows backslashes in shared JSON, and press R in the browser to refresh.
Exact Error / Visual Signature
HTTP 400 value_not_in_list: UNETLoader: Value not in list: unet_name: 'flux1-schnell-fp8.safetensors' not in [...] | DualCLIPLoader: clip_name2 not in [...] | VAELoader missing file
OBSERVED SYMPTOM

You downloaded a 12 GB FLUX, Wan 2.2, or LTX-2 safetensors model into ComfyUI/models/, yet queuing the workflow fails immediately with "Value not in list", or the node dropdown stays completely empty even though the file clearly exists on disk.

TECHNICAL ROOT CAUSE

ComfyUI binds every loader node strictly to a specific model directory registry (UNETLoader reads models/diffusion_models/, CLIPLoader reads models/text_encoders/, CheckpointLoaderSimple reads models/checkpoints/), validates exact relative subfolder strings including OS path separators, and caches model lists until refreshed or mapped cleanly in extra_model_paths.yaml.

Copy-Paste Verified Fix

Live ComfyUI Model Whitelist Inspector & Canonical extra_model_paths.yaml fix-comfyui-model-folders.sh
# 1. Query the EXACT model strings your running ComfyUI server currently sees (zero guesswork!)
python3 -c '
import json, urllib.request
for node, key in [
    ("UNETLoader", "unet_name"),
    ("DualCLIPLoader", "clip_name1"),
    ("VAELoader", "vae_name"),
    ("CheckpointLoaderSimple", "ckpt_name"),
    ("UpscaleModelLoader", "model_name"),
]:
    url = f"http://127.0.0.1:8188/object_info/{node}"
    data = json.loads(urllib.request.urlopen(url).read())
    vals = data[node]["input"]["required"][key][0]
    print(f"=== {node}.{key} ({len(vals)} files) ===")
    for v in vals[:15]:
        print("  ", v)
'

# 2. Canonical ComfyUI/models/ directory map:
#    UNETLoader               -> models/diffusion_models/   (legacy alias: models/unet/)
#    CLIPLoader / DualCLIP    -> models/text_encoders/      (legacy alias: models/clip/)
#    VAELoader                -> models/vae/
#    CheckpointLoaderSimple   -> models/checkpoints/        (all-in-one SDXL/bundled checkpoints ONLY)
#    LoraLoader               -> models/loras/
#    UpscaleModelLoader       -> models/upscale_models/

# 3. Clean shared extra_model_paths.yaml template (save in ComfyUI root if sharing an external drive):
cat << 'EOF' > extra_model_paths.yaml.example
shared_studio_weights:
    base_path: /Volumes/StudioSSD/ai-models/
    is_default: false
    checkpoints: checkpoints/
    diffusion_models: |
        diffusion_models/
        unet/
    text_encoders: |
        text_encoders/
        clip/
    vae: vae/
    loras: loras/
    upscale_models: upscale_models/
EOF

Before vs. After (Broken Pattern vs. Verified Fix)

Broken · Broken Placement & Cross-OS API Key (Wrong Folder + Windows Backslash)
# File placed in wrong folder:
ComfyUI/models/checkpoints/flux1-schnell-fp8.safetensors
# API JSON exported on Windows breaks on Linux/macOS:
"unet_name": "flux\\flux1-schnell-fp8.safetensors"  # -> value_not_in_list!
Verified · Canonical ComfyUI Directory Map & Verified Runtime Key
# Exact canonical folders scanned by modern ComfyUI loaders:
ComfyUI/models/diffusion_models/flux1-schnell-fp8.safetensors   # -> UNETLoader
ComfyUI/models/text_encoders/t5xxl_fp8_e4m3fn_scaled.safetensors # -> DualCLIPLoader / CLIPLoader
ComfyUI/models/vae/ae.safetensors                                # -> VAELoader
# JSON matches exact string returned by GET /object_info/UNETLoader:
"unet_name": "flux1-schnell-fp8.safetensors"

Why this works: Placing each modular safetensors archive inside its loader-specific directory and matching the exact string returned by /object_info eliminates 100% of value_not_in_list validation errors.

Under the Hood

Why This Failure Happens in Real Pipelines

Older Stable Diffusion 1.5 and SDXL tutorials told users to drop every .safetensors file into ComfyUI/models/checkpoints/. Modern open-weight models—FLUX.1, Alibaba Wan 2.2, Qwen-Image, and Lightricks LTX-2—ship as modular split weights: the diffusion backbone goes in models/diffusion_models/ (replacing the older models/unet/ alias), text encoders such as clip_l, t5xxl, and umt5_xxl go in models/text_encoders/ (replacing models/clip/), and standalone decoders go in models/vae/. Dropping a split diffusion model into models/checkpoints/ makes it invisible to UNETLoader, triggering value_not_in_list immediately.

A second subtle failure strikes cross-platform teams sharing ComfyUI API JSON workflows between Windows and macOS/Linux. ComfyUI keys every model string relative to its base folder using the host operating system path separator. A workflow exported on Windows storing "wan\\wan2.2_i2v_14B_fp8_scaled.safetensors" fails strict list validation on a Linux GPU box whose /object_info/UNETLoader whitelist expects "wan/wan2.2_i2v_14B_fp8_scaled.safetensors"—or expects a flat filename without the "wan/" prefix.

The third source of phantom missing models is a stale or misconfigured extra_model_paths.yaml file (commonly created when sharing weights between ComfyUI Desktop, Portable, Forge, or A1111). If extra_model_paths.yaml still maps only checkpoints and legacy unet/clip keys—or uses a broken relative base_path with trailing comments—ComfyUI silently ignores the external folder. Querying http://127.0.0.1:8188/object_info/UNETLoader returns the exact runtime whitelist ComfyUI actually recognizes, removing all guesswork in two seconds.

Step-by-Step Resolution & Verification

  1. 01

    Query /object_info/<NodeName> to inspect the live server whitelist

    Before redownloading gigabytes of weights, inspect http://127.0.0.1:8188/object_info/UNETLoader (or DualCLIPLoader / VAELoader). This prints the exact file paths and subfolder prefixes ComfyUI expects.

  2. 02

    Move misplaced weights into diffusion_models/, text_encoders/, or vae/

    Relocate split FLUX, Wan 2.2, and LTX-2 weights out of models/checkpoints/ into models/diffusion_models/, place T5/UMT5/CLIP encoders into models/text_encoders/, and keep VAEs inside models/vae/.

  3. 03

    Normalize subfolder slashes, update extra_model_paths.yaml, and refresh UI

    Press R inside the ComfyUI web UI (or restart ComfyUI after editing extra_model_paths.yaml) and re-select the model dropdown—or patch the exact string in your headless .api.json file.

Verification Check · Confirm Target Model Appears in ComfyUI Runtime Whitelist
curl -s http://127.0.0.1:8188/object_info/UNETLoader | python3 -c 'import json,sys; d=json.load(sys.stdin); print("\n".join(d["UNETLoader"]["input"]["required"]["unet_name"][0]))'
Expected healthy output:
flux1-schnell-fp8.safetensors
wan2.2_i2v_14B_fp8_scaled.safetensors   # Exact filename now visible to UNETLoader

How to Prevent This Error From Recurring

GUARDRAIL 01

Keep filenames flat inside diffusion_models/ and text_encoders/ for team repos

Avoiding nested vendor subdirectories inside models/ prevents Windows backslash versus macOS/Linux forward-slash mismatches when sharing .api.json workflows across machines.

GUARDRAIL 02

Auto-resolve model strings against /object_info in headless batch scripts

Having your Python runner check /object_info/UNETLoader before POSTing to /prompt turns cryptic HTTP 400 payloads into an instant message showing which file is missing and which folder to drop it in.

GUARDRAIL 03

Never mix all-in-one CheckpointLoaderSimple files with split UNETLoader files

All-in-one checkpoints bundle UNet + CLIP + VAE together inside models/checkpoints/; split modern weights omit CLIP/VAE and always require UNETLoader + CLIPLoader + VAELoader.

Troubleshooting FAQs

Why did a file I moved into models/diffusion_models/ still not appear in the browser dropdown?
The ComfyUI web client caches node input lists at page load. Press the R key on your keyboard (or click Edit -> Refresh Node Definitions) to force the browser to re-fetch /object_info from the server.
What is the difference between models/unet/ and models/diffusion_models/?
ComfyUI introduced models/diffusion_models/ as the canonical folder for modern DiT backbones (FLUX, Wan 2.2, LTX-2, Qwen-Image) while retaining models/unet/ as a legacy alias. UNETLoader scans both, but keeping new weights in models/diffusion_models/ matches current documentation.
Can I use symlinks on macOS or Linux instead of duplicating 20 GB model files?
Yes. Standard symbolic links inside ComfyUI/models/diffusion_models/ work cleanly on macOS and Linux, or you can point extra_model_paths.yaml directly at a shared external NVMe weight library.
Why does ComfyUI reject a safetensors file that IS in the right folder with an incomplete header error?
Interrupted Hugging Face downloads often leave a truncated .safetensors file or an HTML 401/404 login page saved with a .safetensors extension. Check file size with ls -lh—a real 14B FP8 model should measure ~14 GB, not 29 bytes.
How do I fix Windows backslash paths in a shared ComfyUI workflow JSON on Linux?
Normalize all model input values by replacing double backslashes with forward slashes (or matching only the basename against /object_info), then re-save the workflow cleanly.
Use this page in AI tools or notes
raw .md