PiD reformulates the latent-to-pixel decoder as a conditional pixel-space diffusion model, unifying decoding and upsampling into a single generative module. It denoises directly in high-resolution pixel space and produces a super-resolved image in one pass. This repository hosts the released decoder checkpoints, plus the encoder/decoder ("VAE") weights they depend on.
WARNING: the distilled Flux Klein 4b and 9b workflows are experimental, they dont always provide the best results due to the distillation forcing too much detail in the pixel diffusion process. it can sometimes create artifacting as well. both BASE models for Klein handle PiD VERY well though!
To install the ComfyUI-PiD custom node and utilize its automated model downloader, follow these steps specifically tailored for the ComfyUI Windows Portable environment.
1. Custom Node Installation
Do not just drag and drop files. For a portable installation, you must use Git to ensure the node's internal structure and submodules remain intact.
Navigate to your
ComfyUI_windows_portableroot folder.Open a terminal (CMD) in this folder.
Navigate to your
custom_nodesdirectory:DOS
cd ComfyUI\custom_nodesClone the repository:
DOS
git clone https://github.com/Merserk/ComfyUI-PiDReturn to the root folder:
DOS
cd ..\..Install the required dependencies using the embedded Python:
DOS
.\python_embeded\python.exe -m pip install -r .\ComfyUI\custom_nodes\ComfyUI-PiD\requirements.txt
LINK TO Z-Image Base Model Files:
https://civarchive.com/models/2342907/rebels-z-image-base
2. Using the Auto-Download Feature
The PiD nodes are designed to pull models automatically upon the first execution of a prompt.
Restart ComfyUI completely.
Load a workflow that utilizes the PiD Decode or PiD Prepare nodes.
Ensure the
auto_downloadparameter is set toTruein the node properties.Queue your prompt.
Monitor the Terminal: Watch the CMD window. You will see HTTP requests appearing as the node validates and begins downloading the required weights from Hugging Face.
3. Troubleshooting "Stalls"
Because there is no progress bar, a silent CMD window can look like a stall. However, if the download actually hangs (no new INFO lines for 5+ minutes):
Kill the Process: Close the CMD window completely to force the download attempt to terminate.
Restart ComfyUI: Open the terminal and restart ComfyUI to clear the failed request from your GPU/Network cache.
Disable Auto-Download: Before queuing again, go into the
PiD Decodenode settings and setauto_downloadtoFalse.Verify/Retry: With
auto_downloadset toFalse, the node will skip the network request and attempt to load existing files. If you suspect the download partially finished before stalling, checkComfyUI\custom_nodes\ComfyUI-PiD\vendor\PiD\checkpointsto see if a folder has been created. If it is empty or incomplete, remove that partial folder before trying the download again.
Pro-Tip: If the auto-downloader consistently fails, it is usually due to network timeouts on large files. If this happens, you must perform a manual download once to place the .pth file into the vendor directory as described in the repository's documentation. Once the file exists locally, you can keep auto_download set to False permanently.
Description
PiD + Klein 9b BASE
FAQ
Comments (9)
Oh God, don't use these . They are vibecoded trash and teh gains can be done better just by using a better VAE model.
Also, what's with using their stock workflows? These are literally their examples.
what are you talking about? lmfao this is entirely a complete upgrade to any base model. its pixel space generation. its native to comfy now so idk what rock you live under.
buddy not everybody is as versed as you or me, they need the extra help to find this stuff. im just being a good person and providing it. the workflow is standard because thats all it is. literally. if you wanna be a hater, thats fine. but just know my spaces are not for hate. youll have to do that by yourself from a distance because its not permitted anywhere my name is. have a good day and know next time, avoid the obvious mentally strained disrespect. learn to control yourself bud. your grown, act like it.
@realrebelai I respect your work. I'm just telling you from test runs and looking at the code this is garbage.
You put out good stuff. I'm legitimatly telling you this is garbnage.
@lonecatone23 its not though lol im not sure if your transformers are outdated or what but its definately fine and works well. Im not sure how you can see my examples and confidently say this at all. Its gotta be a you thing bro, respectfully.
@realrebelai You're not using the native nodes...bro... That's not how PiD works.
https://huggingface.co/Comfy-Org/PixelDiT/tree/main/diffusion_models
@lonecatone23 i didnt say I was using them. i said theyre native to comfy brother. you can download the nodes. your confused man. idk. im not gonna waste anymore time malding with you.
I mean I have no experience with this. However, you can probably get a similar result with a two-pass workflow with a normal vae or even a faster and distilled flux 2 vae - https://huggingface.co/black-forest-labs/FLUX.2-small-decoder
I respect both you guy's work and I know it's not easy to make. I just wish they have AsymFLUX.2 Klein 9B for the distilled version that would be cool.
@lonecatone23 so i actually ran the nodes through Opus 4.8 last night just to double check that i wasnt crazy and i think you should do the same because the code is 100% sound. Im not sure what happened for you but its actually a step up from the comfy version because it literally auto installs your checkpoint for you based on format and model choice. Of course you should expect some bad gens, its never going to be perfect. New seeds fix any issues i get
@realrebelai He updated the repo a few days ago.
I gave this a shot when the original came out. It bricked my RTX 5090 with 128gb Ram. I ran the code. It was bunk. Plus, the nodes are just vibecoded from a ksampler and vae decoder. Hey, if it works it works though. Not like I don't use off the wall stuff sometimes.
Wasn't trying to start an arguement. Just legitimately giving you a heads up they were bad nodes.
Peace, brother 🙏










