ERROR: Could not detect model type of: … (Model is in the wrong folder or the wrong loader)
The “Load Checkpoint” node cannot recognize the file as a complete checkpoint. Most often, it is a pure diffusion model (for example Flux) or a LoRA that ended up in the models/checkpoints folder.
The message
ERROR: Could not detect model type of: C:\ComfyUI\models\checkpoints\flux1-dev.safetensors
Affects: ComfyUI
Why is this happening?
A checkpoint contains an image model, text encoder, and VAE in one file. But many new models are distributed as diffusion models only - the text encoder and VAE come as separate files. If you load such a file with “Load Checkpoint,” ComfyUI won’t find what it expects. For file names with “lora,” ComfyUI also adds the note that LoRAs belong in the LoRA folder.
How to fix it
- Read the file name in the message. If it says “HINT: This seems to be a Lora file,” move the file to
models/lorasand load it with a LoRA loader node. - If it is a pure diffusion model (for Flux, for example,
flux1-dev.safetensors), move it tomodels/diffusion_models(older guides still call itmodels/unet) and load it with the “Load Diffusion Model” node instead of “Load Checkpoint”. - Then load the text encoder and VAE separately: for Flux,
clip_l.safetensorsandt5xxl_fp16.safetensorsfrommodels/text_encodersvia “Load CLIP (Dual)” (DualCLIPLoader, typeflux) andae.safetensorsfrommodels/vaevia “Load VAE”. - Only true all-in-one checkpoints belong in
models/checkpoints, for exampleflux1-dev-fp8.safetensorsfrom Comfy-Org. Pay attention to the description when downloading: with Flux, there are similarly named files as a pure diffusion model and as a checkpoint. - If ComfyUI is outdated, it may not know new models yet: update the portable version via
update\update_comfyui.bat, with a Git installation usegit pullandpip install -r requirements.txt, in Comfy Desktop use the Manage panel in the Update tab. - If you have old files with the
.sftextension, users have reported that renaming them to.safetensorshelped.
Better not: Don't put diffusion models, LoRAs, or text encoders into models/checkpoints just because the folder appears in the dropdown - each file type needs its own folder and loader node.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Set up and maintain ComfyUI on Windows
Desktop or Portable, where the models belong, sharing models with other programs, safely installing custom nodes, updates, startup options … - Your First Image with ComfyUI
Install Comfy Desktop, learn the interface, and create your first AI image with FLUX.2 [small] 4B or Z-Image Turbo. - Your First AI Video with LTX in ComfyUI
Use LTX-2.3 in ComfyUI to create short videos with sound from text or an image. Template, files, settings, and license.
Terms for this
Similar errors
- Prompt outputs failed validation / Value not in list (Model missing)
- lora key not loaded (LoRA does not match the model or the loader)
- mat1 and mat2 shapes cannot be multiplied (models don’t match)
- ERROR: clip input is invalid: None (Checkpoint contains no text encoder)
- expected input … to have 4 channels, but got 16 channels instead (latent or VAE does not match the model)
Sources
- https://github.com/Comfy-Org/ComfyUI/issues/4179
- https://github.com/Comfy-Org/ComfyUI/issues/4329
- https://docs.comfy.org/tutorials/flux/flux-1-text-to-image
- https://docs.comfy.org/installation/update_comfyui
Checked on Oct 28, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.