Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-PiD > PiD Prepare

ComfyUI Node: PiD Prepare

Class Name

PiDPrepare

Category
PiD/Staged
Author
merserk (Account age: 1273days)
Extension
ComfyUI-PiD
Latest Updated
2026-05-25
Github Stars
0.03K

How to Install ComfyUI-PiD

Install this extension via the ComfyUI Manager by searching for ComfyUI-PiD
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-PiD 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

PiD Prepare Description

PiDPrepare organizes and configures input data for image denoising in the PiD pipeline, streamlining AI-driven image creation workflows.

PiD Prepare:

PiDPrepare is a crucial node in the PiD (Progressive Image Denoising) pipeline, designed to set up and prepare the necessary data and configurations for subsequent stages of image processing. Its primary purpose is to organize and configure the input data, such as latent representations and model parameters, to ensure that the image denoising process can proceed smoothly and efficiently. By handling tasks like memory management and data structuring, PiDPrepare facilitates a seamless transition to the sampling and finalization stages, ultimately contributing to the generation of high-quality images. This node is particularly beneficial for users looking to streamline their workflow in AI-driven image creation, as it automates the preparation phase, allowing for more focus on creative aspects.

PiD Prepare Input Parameters:

latent

The latent parameter represents the initial latent space representation of the image that will undergo processing. It serves as the starting point for the denoising process, where the latent space is progressively refined to produce a clearer image. This parameter is crucial as it directly influences the quality and characteristics of the final output.

caption

The caption parameter is an optional text input that can provide additional context or guidance for the image generation process. It can be used to influence the style or content of the resulting image, allowing for more targeted and meaningful outputs. By default, this parameter is an empty string if not provided.

backbone

The backbone parameter specifies the neural network architecture used for processing the image. It determines the model's capacity and efficiency in handling the denoising task. Choosing the right backbone can significantly impact the speed and quality of the image generation process.

pid_ckpt_type

The pid_ckpt_type parameter indicates the type of checkpoint used in the PiD process. This parameter helps in selecting the appropriate model weights and configurations, ensuring compatibility and optimal performance during image processing.

scale

The scale parameter is an integer that defines the scaling factor applied during the image processing. It affects the resolution and detail level of the final image, with higher values typically resulting in more detailed outputs. The default value is determined by the specific requirements of the task.

sigma

The sigma parameter is a floating-point value that controls the noise level in the denoising process. It influences the smoothness and clarity of the resulting image, with lower values generally leading to sharper outputs. The default value is set based on the desired balance between noise reduction and detail preservation.

auto_download

The auto_download parameter is a boolean flag that determines whether necessary resources, such as model weights, should be automatically downloaded if not already available. This feature simplifies the setup process, especially for users who may not have all the required files locally.

cleanup_after_prepare

The cleanup_after_prepare parameter is a boolean flag that indicates whether to free up memory resources after the preparation phase. Enabling this option helps manage system resources efficiently, particularly in environments with limited memory capacity. By default, this option is set to True.

vae

The vae parameter, if provided, specifies the Variational Autoencoder model to be used in conjunction with the PiD process. This model can enhance the quality of the image generation by providing additional encoding and decoding capabilities.

pid_source_dir

The pid_source_dir parameter is a string that defines the directory path where the PiD source files are located. This parameter is essential for ensuring that the node can access all necessary resources and configurations during the preparation phase.

baseline_image

The baseline_image parameter, if provided, serves as a reference image that can guide the denoising process. It helps in maintaining consistency and achieving desired visual characteristics in the final output.

PiD Prepare Output Parameters:

prepared

The prepared output is an instance of the PiDPreparedBatch class, which encapsulates all the necessary data and configurations for the subsequent stages of the PiD process. This output includes information such as the directory paths, model parameters, and image size, ensuring that the sampling and finalization stages have all the required inputs to proceed efficiently. The prepared output is crucial for maintaining a structured and organized workflow, as it consolidates all relevant data into a single, manageable object.

PiD Prepare Usage Tips:

  • Ensure that the latent parameter is correctly initialized, as it forms the foundation for the entire image processing pipeline.
  • Utilize the caption parameter to guide the image generation process, especially if you have specific themes or styles in mind.
  • Choose the appropriate backbone and pid_ckpt_type to match the complexity and requirements of your task, as these can significantly impact performance and output quality.
  • Adjust the scale and sigma parameters to find the right balance between detail and smoothness in your images.
  • Enable auto_download to simplify the setup process, especially if you are working in a new environment or lack certain resources.

PiD Prepare Common Errors and Solutions:

PiD Sample expected a PID_PREP object from PiD Prepare.

  • Explanation: This error occurs when the prepared output from PiDPrepare is not correctly passed to the next stage, PiDSample.
  • Solution: Ensure that the prepared output is correctly captured and passed to the subsequent node in the pipeline.

Missing PiD subprocess runner: <runner_path>

  • Explanation: This error indicates that the required subprocess runner script is not found in the specified location.
  • Solution: Verify that the pid_subprocess_runner.py file exists in the expected directory and that the path is correctly configured.

Unknown sequential_offload=<value>; expected one of <choices>

  • Explanation: This error arises when an invalid value is provided for the sequential_offload parameter.
  • Solution: Check the valid options for sequential_offload and ensure that the provided value matches one of these options.

PiD Prepare Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-PiD
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

PiD Prepare