Nodes/PG Nodes/Upscale Select (Uni)
ComfyUI Node

Upscale Select (Uni)

Name your upscaler for the Unified Loader

By GizmoR13·Created 11 months ago·Updated 11 months ago· 16
Upscale Select (Uni)
    • upscale_name
    upscale_namenone

    Upscale Select (Uni) is a dropdown over your upscale models that outputs the chosen filename as a string, with a none option for the Unified Loader's upscale slot. It's the upscaling member of the PG selector family, and it pairs with a loader that can hand the model off to a CPU-friendly slot - which matters more for upscalers than almost anything else in the stack.

    Upscale models are the difference between "looks fine on screen" and "survives a print." The standard recipe in this ecosystem is generate at native resolution, then upscale - ESRGAN-family models like 4x-UltraSharp, RealESRGAN variants, and the newer lightweight super-res models. They're also memory hogs and slow on CPU, which is exactly why the Unified Loader's CPU offload toggle and this selector are a natural match: pick the upscaler here, let the loader decide where it runs.

    How it works

    Standard PG selector mechanics. At import it scans folder_paths for the upscale-model list, trying upscale_models, then upscale, upscalers, and realesrgan keys so it finds the files even if another pack renamed the folder. process() returns your pick on the upscale_name output. No loading here - the Unified Loader consumes the name and loads via ComfyUI's own upscale ModelLoader (with a fallback that reads the state dict directly if the direct load fails).

    The input and output

    • upscale_name - dropdown over your upscale_models files, default none.
    • Output: upscale_name - the filename string.

    Install

    Comes with PG Nodes:

    ComfyUI Manager → search "PG Nodes" → Install → restart
    

    Manual: git clone https://github.com/GizmoR13/PG-Nodes into custom_nodes (folder named PG-nodes), restart. Under PG/Select/UniLoader. No dependencies.

    Common issues

    • Upscaler not listed. Restart ComfyUI - lists are built at import. Confirm the file is in models/upscale_models.
    • Upscale output is None in the loader. Either the slot was none or the file failed to load (the loader logs rather than crashing). Drop a known-good upscaler in and check the console.
    • String doesn't fit an UPSCALE_MODEL input. It's a filename; it feeds the loader's name slot, not the model input.

    One selector in a family of fourteen, this one is honest about being a convenience. You don't need it if you pick your upscaler inside the loader. But if you're centralizing model choices around the Unified Loader - which is the pack's whole organizing idea - it's the matching knob for the final stage of the pipeline.

    CategoryPG/Select/UniLoader

    Inputs (1)

    NameTypeDefaultDescription
    upscale_nameCOMBOnone1 options: none

    Outputs (1)

    NameTypeDescription
    upscale_namenone