Nodes/SDVN_Comfy_node/πŸ“₯ ModelPatch Download
ComfyUI Node

πŸ“₯ ModelPatch Download

Fetch a model-patch file straight from a URL

By StableDiffusionVNΒ·Created 2 years agoΒ·Updated about a month agoΒ· 118
πŸ“₯ ModelPatch Download
    • MODEL_PATCH
    β—„Download_urlβ–Ί
    β—„Url_namemodel.safetensorsβ–Ί

    One of the pack's smaller download nodes, and it does exactly what the name says: give it a URL, it downloads the file and loads it as a MODEL_PATCH - the type ComfyUI uses for weights that patch an existing model rather than replace it outright (as opposed to a full checkpoint or UNET, which the pack has separate download nodes for). No manual copy into a models folder, no restart to pick it up - the file lands and gets loaded in the same run.

    Why this exists

    Every "for all nodes with download" node in this pack follows the same idea: instead of manually downloading a file from CivitAI or HuggingFace, moving it into the right ComfyUI folder, and restarting to make it visible, you paste the link into the node and it handles all three steps. ModelPatch Download is the version of that pattern for MODEL_PATCH-typed files specifically - whatever patch node downstream in your graph expects that type is what this node is feeding. It's plumbing, same category as the pack's UNET Download, CLIP Download, and Style Download nodes, just for a different slot.

    The inputs and outputs that matter

    • Download_url - a direct download link. Per the pack's README, all its download nodes support CivitAI and HuggingFace links directly (both the model's page URL and a direct download URL, per their own conventions).
    • Url_name - what to name the file once it's saved locally, default model.safetensors. Change the extension here if the source file isn't actually a .safetensors.

    One output: MODEL_PATCH, wired into whatever node in your graph consumes that type.

    Installing it

    ComfyUI Manager: search SDVN_Comfy_node, install, restart. Or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/StableDiffusionVN/SDVN_Comfy_node
    

    Then pip install -r custom_nodes/SDVN_Comfy_node/requirements.txt from your ComfyUI root, and restart. On Windows or macOS, install aria2c yourself if you want the accelerated download path - the README calls this out explicitly for every download-capable node in the pack, since aria2c ships more reliably on Linux than the other two.

    Where people get burned

    No aria2c means a slow, single-connection download. The pack uses aria2c for multi-connection acceleration when it's available and falls back to a plain download when it isn't. On a large patch file, that's the difference between a couple of minutes and a long wait - worth installing once rather than staring at a stalled-looking node.

    A CivitAI link that needs an account/API key. Some CivitAI resources are gated behind login or an API key; a plain download link that works fine in a browser can 403 from a script with no session. If the download silently fails, check whether the source actually requires authentication before assuming the node is broken.

    Getting Url_name's extension wrong. Since this just saves whatever comes back under the name you give it, a mismatched extension (.safetensors name on a .pt file, or vice versa) can confuse whatever loads the file afterward even though the download itself succeeded. Match the extension to what the source actually serves.

    CategoryπŸ“‚ SDVN/πŸ“₯ Download

    Inputs (2)

    NameTypeDefaultDescription
    Download_urlSTRINGβ€”
    Url_nameSTRINGmodel.safetensorsβ€”

    Outputs (1)

    NameTypeDescription
    MODEL_PATCHMODEL_PATCHβ€”