Nodes/ComfyUI_to_webui/🌊hua_gradio Checkpoint Loader
ComfyUI Node

🌊hua_gradio Checkpoint Loader

A checkpoint loader that lets your webui users switch models

By kungful·Created 2 years ago·Updated 8 months ago· 25
🌊hua_gradio Checkpoint Loader
    • MODEL
    • CLIP
    • VAE
    ckpt_name
    nameHua_CheckpointLoaderSimple

    Hua_CheckpointLoaderSimple (🌊hua_gradio Checkpoint Loader) is the checkpoint loader you use when you want the person on the other end of your packaged webui to be able to pick the model themselves. Functionally it's a straight rename of ComfyUI's CheckpointLoaderSimple - same three outputs, same loading path - with one extra name input. The point of the rename is that the pack's Gradio frontend scans saved workflows for nodes by their exact class name, and this one gets a "choose checkpoint" dropdown in the UI. It's a wiring hook, not a new engine.

    The mechanism is standard ComfyUI: ckpt_name is a dropdown populated from your models/checkpoints folder, and on execution it loads the checkpoint with load_checkpoint_guess_config, returning the diffusion MODEL, the CLIP text encoder, and the VAE. Same contract as the stock node, so you can swap this in anywhere CheckpointLoaderSimple already lives - which is exactly what you want when converting an existing workflow into a packaged one.

    Inputs that matter:

    • ckpt_name - pick from checkpoints you already have. This is what the Gradio dropdown controls.
    • name - label; defaults to "Hua_CheckpointLoaderSimple".

    Outputs: MODEL, CLIP, VAE. Wire them exactly as you would from the stock loader: MODEL into sampler/LoRA, CLIP into the text encoders, VAE into decode.

    Install: ComfyUI Manager → "ComfyUI_to_webui", or

    cd ComfyUI/custom_nodes
    git clone https://github.com/kungful/ComfyUI_to_webui.git
    

    then restart. No model files are downloaded by the pack - it uses whatever checkpoints you already have, and the dropdown only shows those. If the dropdown is empty in the webui, your checkpoints folder is empty or the "刷新模型" (refresh models) button hasn't been pressed.

    A few honest notes. First, this node is a singleton in the frontend: exactly one checkpoint dropdown per workflow, no matter how many of these you place. Second, it's for combined checkpoint files. If you're running Flux-style split models, the sibling 🌊hua_gradio_UNET Loader is the one you want, since those checkpoints ship as separate UNet + CLIP files and there's no VAE output to speak of. And third, the model-caching means switching models in the UI costs a load but subsequent runs reuse the cached one - normal ComfyUI behavior. If all you need is a static model in a packaged workflow, the stock loader plus a Primitive works fine; this node earns its keep when the model is a choice the user gets to make.

    Category❤️ 靓仔 ✨

    Inputs (2)

    NameTypeDefaultDescription
    ckpt_nameCOMBOThe name of the checkpoint (model) to load.
    nameSTRINGHua_CheckpointLoaderSimple节点名称

    Outputs (3)

    NameTypeDescription
    MODELMODELThe model used for denoising latents.
    CLIPCLIPThe CLIP model used for encoding text prompts.
    VAEVAEThe VAE model used for encoding and decoding images to and from latent space.