Nodes/ComfyUI_NetDist/Load workflow (disk)
ComfyUI Node

Load workflow (disk)

Reload a workflow you saved earlier

By city96·Created 3 years ago·Updated 2 years ago· 507
Load workflow (disk)
    • Workflow JSON
    workflow

    The read half of ComfyUI_NetDist's workflow-JSON pair. Where LoadCurrentWorkflowJSON grabs whatever's live in your graph right now, LoadDiskWorkflowJSON is a dropdown that lists the workflow files you've previously written with SaveDiskWorkflowJSON and loads back whichever one you pick - so RemoteChainStart's workflow input can point at a saved graph instead of needing a live capture every single run.

    This belongs to the "advanced" multi-GPU pattern in city96's ComfyUI_NetDist pack, built for setups where you're chaining more than two machines and don't want to rebuild the chain's source workflow from the live graph every time you queue. NetDist itself is city96's older, unrelated project to the quantized-model work he's better known for now - it's about splitting execution across machines, not compressing models.

    How it works

    The schema's workflow field is a dropdown (enum) that populates from whatever workflow JSON files actually exist on disk - the same way core nodes like Load Checkpoint populate their list from your models folder. If nothing's been saved yet with SaveDiskWorkflowJSON, the dropdown is simply empty; that's expected, not broken.

    The inputs and outputs that matter

    • workflow (enum) - pick a previously saved workflow file from the list. What options show up depends entirely on what's been written to disk by SaveDiskWorkflowJSON.

    Output: "Workflow JSON" (JSON) - feed it straight into RemoteChainStart.

    How to install it

    Via ComfyUI Manager: search ComfyUI_NetDist. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/city96/ComfyUI_NetDist
    pip install requests
    

    Restart ComfyUI. requests is the only dependency for the whole pack.

    Common issues & troubleshooting

    The dropdown is empty. You haven't run SaveDiskWorkflowJSON yet, or ComfyUI hasn't rescanned the folder since you saved one. Save a workflow first, then restart ComfyUI or refresh the node so the list picks up the new file.

    Loaded workflow doesn't reflect graph changes you made afterward. That's expected - this is a static snapshot from whenever you saved it, not a live link back to your editor. Re-save with SaveDiskWorkflowJSON if you want a saved copy to include recent edits.

    Not sure which saved file is which. The list is only as descriptive as the filename_prefix you used when saving - if you're keeping multiple saved workflows around, give them distinct prefixes on the way in, since this node won't show you anything beyond the filename itself.

    Wondering why you'd bother instead of just using LoadCurrentWorkflowJSON. If you're actively editing the graph each session, you don't need this - the live version covers you. This node is for the setup you want to run unchanged, over and over, without rebuilding the "advanced" chain by hand every time you open ComfyUI.

    Categoryremote/advanced

    Inputs (1)

    NameTypeDefaultDescription
    workflowCOMBO0 options:

    Outputs (1)

    NameTypeDescription
    Workflow JSONJSON