Free | No tracking | Every fact with a source|German and English

Error / Models and files

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

  1. Read the file name in the message. If it says “HINT: This seems to be a Lora file,” move the file to models/loras and load it with a LoRA loader node.
  2. If it is a pure diffusion model (for Flux, for example, flux1-dev.safetensors), move it to models/diffusion_models (older guides still call it models/unet) and load it with the “Load Diffusion Model” node instead of “Load Checkpoint”.
  3. Then load the text encoder and VAE separately: for Flux, clip_l.safetensors and t5xxl_fp16.safetensors from models/text_encoders via “Load CLIP (Dual)” (DualCLIPLoader, type flux) and ae.safetensors from models/vae via “Load VAE”.
  4. Only true all-in-one checkpoints belong in models/checkpoints, for example flux1-dev-fp8.safetensors from 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.
  5. If ComfyUI is outdated, it may not know new models yet: update the portable version via update\update_comfyui.bat, with a Git installation use git pull and pip install -r requirements.txt, in Comfy Desktop use the Manage panel in the Update tab.
  6. If you have old files with the .sft extension, users have reported that renaming them to .safetensors helped.

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:

Terms for this

Similar errors

Sources

Checked on Oct 28, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.