whatisgithub

What is comfyui-pid?

merserk/comfyui-pid — explained in plain English

Analysis updated 2026-05-18

48PythonAudience · developerComplexity · 4/5LicenseSetup · hard

In one sentence

A ComfyUI plugin adding NVIDIA's PiD decoding method for turning diffusion model output into high-resolution images.

Mindmap

mindmap
  root((ComfyUI-PiD))
    What it does
      NVIDIA PiD decoding
      High-res image output
      Memory-saving workflow
    Tech stack
      Python
      ComfyUI
      PyTorch
    Use cases
      Higher resolution generation
      Low VRAM decoding
      Caption guided decode
    Audience
      Image generation developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Generate higher resolution images, such as 2048x2048 or 4096x4096, from diffusion models like Flux or Stable Diffusion 3.

USE CASE 2

Decode images on a GPU with limited memory using the staged, memory-saving workflow.

USE CASE 3

Add caption-guided decoding to an existing ComfyUI image generation pipeline.

USE CASE 4

Automatically download the correct PiD checkpoint for your chosen model backbone.

What is it built with?

PythonComfyUIPyTorch

How does it compare?

merserk/comfyui-piddevelp10/rustinterviewquiestionsfukikomarga/exodus-fake-balance
Stars484848
LanguagePythonPythonPython
Setup difficultyhardmoderatemoderate
Complexity4/52/52/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires a GPU-based ComfyUI setup plus downloading model-specific PiD checkpoints.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice. NVIDIA's own model weights may carry separate terms.

So what is it?

ComfyUI-PiD is a plugin for ComfyUI, a node-based image generation interface, that adds support for NVIDIA's PiD (pixel diffusion) decoding method. PiD is an alternative way to convert the internal mathematical representation that diffusion models work with (called a latent) into a final visible image. Unlike the standard decoder bundled with most image generation models, PiD takes additional inputs: a text caption describing the image content and a numerical value called sigma that controls the decoding behavior. The plugin works with several image generation model families including Flux, Flux2, Stable Diffusion 3, and others. Depending on the backbone, the plugin selects an appropriate PiD checkpoint trained for that architecture. The scale option controls how much the output is enlarged compared to the base latent size, with common settings producing images at 2048x2048 or 4096x4096 pixels. For systems with limited graphics memory, the plugin offers a staged workflow that splits the decoding process across several nodes. The most memory-intensive computation step runs in a separate Python subprocess so its GPU memory is released when it finishes, rather than held alongside everything else already loaded in ComfyUI. Additional options allow individual model blocks to be processed sequentially rather than all at once, trading speed for lower peak memory usage. Installation involves cloning the repository into ComfyUI's custom_nodes folder and installing the Python dependencies listed in requirements.txt. The plugin can download the necessary PiD source code and model weights automatically on first use if the auto_download option is enabled. PyTorch is not included in the requirements because ComfyUI already provides it. The plugin is a community-built wrapper around NVIDIA's publicly released PiD code and is not an official NVIDIA or ComfyUI project. NVIDIA's model weights may have their own usage terms separate from this plugin's MIT license.

Copy-paste prompts

Prompt 1
Help me install ComfyUI-PiD into my custom_nodes folder and set up its requirements.
Prompt 2
Explain how the staged decoding workflow saves GPU memory on my system.
Prompt 3
Show me how to pick the right PiD checkpoint for the Flux model I'm using.
Prompt 4
Walk me through the scale option to get 4096x4096 output images.

Frequently asked questions

What is comfyui-pid?

A ComfyUI plugin adding NVIDIA's PiD decoding method for turning diffusion model output into high-resolution images.

What language is comfyui-pid written in?

Mainly Python. The stack also includes Python, ComfyUI, PyTorch.

What license does comfyui-pid use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice. NVIDIA's own model weights may carry separate terms.

How hard is comfyui-pid to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is comfyui-pid for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.