ComfyUI  >  Nodes  >  ComfyUI-VideoHelperSuite >  Prune Outputs 🎥🅥🅗🅢

ComfyUI Node: Prune Outputs 🎥🅥🅗🅢

Class Name

VHS_PruneOutputs

Category
Video Helper Suite 🎥🅥🅗🅢
Author
Kosinkadink (Account age: 3725 days)
Extension
ComfyUI-VideoHelperSuite
Latest Updated
7/1/2024
Github Stars
0.4K

How to Install ComfyUI-VideoHelperSuite

Install this extension via the ComfyUI Manager by searching for  ComfyUI-VideoHelperSuite
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-VideoHelperSuite 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

Prune Outputs 🎥🅥🅗🅢 Description

Efficiently manage output directories by selectively removing unnecessary files to optimize storage space and workflow organization.

Prune Outputs 🎥🅥🅗🅢:

The VHS_PruneOutputs node is designed to help you manage and clean up your output directories by removing unnecessary files. This node is particularly useful when working with large video projects or batch processing tasks, where intermediate and utility files can accumulate and consume significant storage space. By using this node, you can selectively prune files based on specified options, ensuring that only the essential outputs are retained. This helps in maintaining an organized workspace and optimizing storage usage, making your workflow more efficient and manageable.

Prune Outputs 🎥🅥🅗🅢 Input Parameters:

filenames

The filenames parameter expects a tuple containing file paths that need to be evaluated for pruning. This parameter is crucial as it determines which files are subject to deletion based on the selected options. The first element in the tuple is typically the main output file, while the subsequent elements are intermediate or utility files. Ensure that the file paths provided are accurate and relevant to the current project to avoid accidental deletion of important files.

options

The options parameter allows you to specify the scope of the pruning operation. It accepts a list of options: ["Intermediate", "Intermediate and Utility"]. Selecting Intermediate will prune only the intermediate files, while Intermediate and Utility will prune both intermediate and utility files. This parameter helps you control the extent of the cleanup operation, allowing for more granular management of your output files.

Prune Outputs 🎥🅥🅗🅢 Output Parameters:

None

This node does not produce any direct output parameters. Instead, its primary function is to perform file deletion based on the input parameters provided. The absence of output parameters means that the node's success is determined by the successful execution of the pruning operation without errors.

Prune Outputs 🎥🅥🅗🅢 Usage Tips:

  • Ensure that the filenames parameter accurately lists all the files you want to evaluate for pruning to avoid accidental deletion of important files.
  • Use the options parameter to control the extent of the pruning operation, selecting the appropriate level based on your current project needs.
  • Regularly use this node to maintain an organized workspace, especially when dealing with large projects or batch processing tasks.

Prune Outputs 🎥🅥🅗🅢 Common Errors and Solutions:

Tried to prune output from invalid directory: <file_path>

  • Explanation: This error occurs when the file path provided in the filenames parameter does not belong to the designated output directories.
  • Solution: Ensure that all file paths listed in the filenames parameter are within the valid output directories, typically output or temp.

AssertionError: len(filenames[1]) <= 3 and len(filenames[1]) >= 2

  • Explanation: This error indicates that the number of files provided in the filenames parameter does not meet the expected range.
  • Solution: Verify that the filenames parameter includes at least two and no more than three files for the pruning operation.

FileNotFoundError: [Errno 2] No such file or directory: <file_path>

  • Explanation: This error occurs when the specified file in the filenames parameter does not exist.
  • Solution: Double-check the file paths provided in the filenames parameter to ensure they are correct and that the files exist in the specified locations.

Prune Outputs 🎥🅥🅗🅢 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-VideoHelperSuite
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.