> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-feat-openapi-i18n.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# PiDConditioning - ComfyUI Built-in Node Documentation

> Complete documentation for the PiDConditioning node in ComfyUI. Learn its inputs, outputs, parameters and usage.

Attaches a latent image and a degrade sigma value to a CONDITIONING data. This is used for PiD (Pixel-in-Detail) decoding or upscaling, allowing you to control how much the latent is degraded before processing.

## Inputs

| Parameter       | Description                                                                                                                                                                                                          | Data Type    | Required | Range                                                  |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | -------- | ------------------------------------------------------ |
| `positive`      | The conditioning data to attach the latent and degrade sigma to.                                                                                                                                                     | CONDITIONING | Yes      | -                                                      |
| `latent`        | The latent image (from VAEEncode or a KSampler) to attach to the conditioning.                                                                                                                                       | LATENT       | Yes      | -                                                      |
| `latent_format` | The format of the latent. Flux1 (16-ch) and Flux2 (128-ch) latents are auto-detected from the channel dimension under "flux". For SD3 (16-ch), SDXL (4-ch), or QwenImage (16-ch), select manually (default: "flux"). | COMBO        | Yes      | `"flux"`<br />`"sd3"`<br />`"sdxl"`<br />`"qwenimage"` |
| `degrade_sigma` | The amount of degradation to apply. 0 means a clean latent. Increase this value to denoise corrupted latent outputs (default: 0.0).                                                                                  | FLOAT        | Yes      | 0.0 to 1.0 (step: 0.01)                                |

## Outputs

| Output Name    | Description                                                                       | Data Type    |
| -------------- | --------------------------------------------------------------------------------- | ------------ |
| `CONDITIONING` | The original conditioning data with the latent and degrade sigma values attached. | CONDITIONING |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/PiDConditioning/en.md)

***

**Source fingerprint (SHA-256):** `5785e2edc3c49006bf6b9faa2f245ea5e0e0f3540306dba015a843b06a48ff92`
