Nodes/Enviral Design Node Pack/Enviral Load Diffusion Model
ComfyUI Node

Enviral Load Diffusion Model

A diffusion-model loader that only shows the models you want

By EnviralDesign·Created 4 months ago·Updated 10 days ago· 1
Enviral Load Diffusion Model
    • model
    • diffusion_model_list
    folderAll Diffusion Models
    unet_name
    weight_dtypedefault
    allow_list

    If you run a modern stack you know the drill: SD3, Flux, Qwen-Image, WAN - they don't all ship as one checkpoint file. Half the time you're loading a standalone DiT or UNet from models/diffusion_models, and that folder fills up fast. Enviral Load Diffusion Model (class EnviralLoadDiffusionModelFiltered) is a filtered version of ComfyUI's standalone diffusion-model loader from the Enviral Design Node Pack: same loading path, same weight_dtype choices, but a dropdown you can actually navigate.

    Think of it as the sibling to Enviral Load Checkpoint from the same pack - one shared filtering base, three loaders. If you've used one, you've used all of them.

    How it works

    The node takes ComfyUI's registered diffusion-model list and trims it two ways. The folder input restricts the dropdown to one folder prefix plus its subfolders. The allow_list input - an optional multiline STRING - is a text allow-list where each non-empty line keeps an exact displayed name or full relative path. Both applied means intersection: in the folder and on the list.

    Loading itself is stock ComfyUI: the model is loaded by its full relative path via ComfyUI's normal loader, just with the dropdown narrowed. Validation runs before execution, so a unet_name that isn't in the filtered set fails fast with a readable error instead of a confusing crash mid-run.

    The inputs and outputs that matter

    • folder - default All Diffusion Models, or any folder prefix you have. Use it as instant grouping: flux/, qwen/, wan/.
    • unet_name - the model dropdown. Also accepts a linked STRING, as long as it matches a model path ComfyUI knows.
    • weight_dtype - the native options are preserved: default, fp8_e4m3fn, fp8_e4m3fn_fast, fp8_e5m2. Same list you get on ComfyUI's stock diffusion-model loader, so if you're already on an fp8 habit, nothing changes here.
    • allow_list - optional; wire a Text (Multiline) node in to hard-limit what the dropdown can offer.

    Outputs are model (the loaded diffusion model, wired straight into your sampler or LoRA node) and diffusion_model_list, a STRING of the visible options, one per line - useful when the rest of the graph wants to know what's available.

    Installing it

    This ships in the Enviral Design Node Pack. In ComfyUI Manager, search "Enviral Design Node Pack", install, restart. Manual route:

    cd ComfyUI/custom_nodes
    git clone https://github.com/EnviralDesign/comfyUI-enviral-design-node-pack
    

    then restart ComfyUI. No downloads for the node itself - it reads what's already in models/diffusion_models. The pack's only hard Python dependency is color-matcher, pulled in by a different node; a filtered loader shouldn't force you into dependency hell.

    Where people get burned

    • Nothing appears after adding a model. ComfyUI caches the list. Press R on the canvas or Refresh Node Definitions, then re-apply the folder filter.
    • fp8 quirks. The fp8_e4m3fn_fast variant enables fp8 optimizations - great on supported GPUs, but if you get precision or load errors on a card that doesn't handle it well, drop back to fp8_e4m3fn or default. That's not the node being weird, that's the fp8 path being fp8.
    • A linked STRING that doesn't validate. It must match a known ComfyUI path exactly. The node tells you what's wrong instead of silently loading something else - trust the error text.

    Verdict: if models/diffusion_models is a tidy little folder, stock loader, no need. If it's a graveyard of half-remembered DiTs, this is the one you'll reach for.

    CategoryEnviralDesign/model

    Inputs (4)

    NameTypeDefaultDescription
    folderCOMBOAll Diffusion ModelsLimits the model dropdown to this folder and its subfolders.
    unet_nameCOMBOModel name. Also accepts a linked STRING, as long as it matches a model path known to ComfyUI.
    weight_dtypeCOMBOdefault4 options: default, fp8_e4m3fn, fp8_e4m3fn_fast, fp8_e5m2
    allow_listoptSTRINGOptional newline-separated diffusion-model allow-list. Entries may use displayed names or full paths.

    Outputs (2)

    NameTypeDescription
    modelMODELThe loaded diffusion model.
    diffusion_model_listSTRINGThe visible diffusion-model options, one display name per line.