ComfyUI  >  Nodes  >  ComfyUI_NetDist >  Save workflow (disk)

ComfyUI Node: Save workflow (disk)

Class Name

SaveDiskWorkflowJSON

Category
remote/advanced
Author
city96 (Account age: 552 days)
Extension
ComfyUI_NetDist
Latest Updated
5/22/2024
Github Stars
0.3K

How to Install ComfyUI_NetDist

Install this extension via the ComfyUI Manager by searching for  ComfyUI_NetDist
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_NetDist in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Save workflow (disk) Description

Save workflow as JSON file on disk for state preservation and easy sharing, revisiting, and modification.

Save workflow (disk):

The SaveDiskWorkflowJSON node is designed to save your workflow as a JSON file on your disk. This node is particularly useful for preserving the state and configuration of your current workflow, allowing you to easily reload or share it later. By saving the workflow to disk, you can ensure that your work is not lost and can be revisited or modified at any time. This node is essential for maintaining a record of your workflow configurations, especially when working on complex projects that require multiple iterations or when collaborating with others.

Save workflow (disk) Input Parameters:

workflow

The workflow parameter expects a JSON object that represents the current state and configuration of your workflow. This JSON object contains all the necessary information about the nodes, their connections, and settings. By providing this JSON object, the node can accurately save the entire workflow to disk. There are no specific minimum or maximum values for this parameter, as it is a JSON object.

filename_prefix

The filename_prefix parameter is a string that specifies the prefix for the filename under which the workflow JSON will be saved. The default value for this parameter is "workflow/ComfyUI". This prefix helps in organizing and identifying the saved workflow files. You can customize this prefix to suit your naming conventions or organizational needs. The filename will be automatically suffixed with a unique counter to prevent overwriting existing files.

Save workflow (disk) Output Parameters:

This node does not produce any output parameters. Its primary function is to save the provided workflow JSON to disk, and it does not return any values upon completion.

Save workflow (disk) Usage Tips:

  • Ensure that the workflow parameter contains a valid JSON object representing your current workflow configuration to avoid errors during the save process.
  • Customize the filename_prefix to organize your saved workflows effectively. For example, you can include project names or dates in the prefix to make it easier to identify specific workflows later.
  • Regularly save your workflow using this node to prevent data loss, especially when working on complex or long-term projects.

Save workflow (disk) Common Errors and Solutions:

Invalid JSON object provided

  • Explanation: The workflow parameter does not contain a valid JSON object.
  • Solution: Ensure that the workflow parameter is a properly formatted JSON object representing your workflow configuration.

Permission denied when saving file

  • Explanation: The node does not have the necessary permissions to write to the specified directory.
  • Solution: Check the permissions of the output directory and ensure that the node has write access. You may need to adjust the directory permissions or choose a different directory.

Insufficient disk space

  • Explanation: There is not enough disk space to save the workflow JSON file.
  • Solution: Free up some disk space by deleting unnecessary files or choose a different directory with sufficient space.

Filename prefix results in invalid path

  • Explanation: The filename_prefix contains characters or patterns that result in an invalid file path.
  • Solution: Ensure that the filename_prefix only contains valid characters for file paths and does not include any restricted or special characters.

Save workflow (disk) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_NetDist
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.