Home Creators Posts Import Register Favorites Logout

Downloads

Content

Hey everyone! If you watched the PiD tutorial video https://www.patreon.com/posts/159460744, you saw me walk through how NVIDIA's Pixel Diffusion Decoder works inside ComfyUI.

This is the advanced workflow I was using — ready to download and plug into your own ComfyUI setup.

## What's Inside

*"ZIT+ PiD T2I To 4K - Ver 20260528"*

This is a full Z-Image Turbo + PiD pipeline that takes you from text prompt all the way to a 4K (4096px) output image in one connected workflow. Here's what it includes:

Workflow Sections

*1. Settings & Model Loading*

- Loads Z-Image Turbo model (UNET), text encoder (Qwen 3 4B), and VAE (ae.safetensors)

- PiD decoder model loaded separately with its own text encoder (Gemma 2B) and dedicated VAE

- Everything connected via Set/Get nodes so it stays clean and organized

2. LoRA Support

- Dedicated LoRA loading group (Power Lora Loader by rgthree)

- Drop in any compatible LoRA to style your generation before upscaling

- Easy bypass with the Fast Groups Bypasser if you want to run without LoRA

3. Prompt Entrance with Qwen VL

- Includes the *AILab QwenVL PromptEnhancer* node (Qwen3-VL-4B-Instruct-FP8)

- Feed it a reference image and it generates an enhanced text prompt automatically

- Or type your own prompt directly using the multiline text input

- Great for quickly turning Pinterest or reference images into detailed prompts

4. Z-Image Turbo Sampling (2-Pass)

- *Sampling 1:* First pass generates the base image at 1024x1024

- *Sampling 2:* Second pass refines the output for better quality

- Both passes share the same model/conditioning pipeline via Set/Get nodes

- Preview nodes at each stage so you can see progress

5. PiD 4K Upscaling

- Takes the latent from your Z-Image Turbo output

- *PiDConditioning* node processes it with Flux backbone, 4 steps

- Creates a new 4096x4096 latent canvas (EmptyChromaRadianceLatentImage)

- Runs through SamplerCustom with LCM scheduler, 4 steps, CFG 1

- No negative prompt needed — the distillation handles everything

6. Image Comparison

- *Two Image Comparer nodes* (rgthree) built in:

- Compare Sampling 1 vs Sampling 2 (before/after refinement)

- Compare final Z-Image output vs PiD 4K output

- Makes it easy to see exactly what PiD adds to your image

7. Save Output

- *SaveImageExtended* node saves your 4K output with timestamped filenames

- Organized prefix: `img_pi` with custom formatting

What Makes This Advanced

- *Fully connected pipeline* — no manual wiring between stages needed

- *Bypass controls* — use Fast Groups Bypasser to skip LoRA or any section

- *Reference image support* — Qwen VL prompt enhancer turns any image into a prompt

- *2-pass sampling* — gets better base results before PiD upscaling

- *Built-in comparisons* — see the difference at every stage

- *Aspect ratio flexible* — 4096px output that adapts to your input dimensions

How to Use

1. Make sure you have *ComfyUI updated to the latest version* (PiD nodes are native)

2. Download the required PiD model files from HuggingFace:

- PiD text encoder (Gemma 2B — BF16 or FP8)

- PiD diffusion model (Flux-1, 1024→4096, 4-step)

3. Place files in the correct folders as listed on the HuggingFace page

4. Load this workflow JSON into ComfyUI

5. Add your own LoRA to the LoRA group (or bypass it)

6. Type a prompt or feed a reference image to Qwen VL

7. Queue and enjoy your 4K output!

Compatible Models

- *Z-Image Turbo* (primary, tested)

- *Z-Image Base*

- *Flux-1 Dev* (shares the same VAE as Z-Image)

- Any model using Flux-1's 16-channel VAE

Required Custom Nodes

- `rgthree` nodes (Image Comparer, Fast Groups Bypasser, Power Lora Loader, Label)

- `AILab_QwenVL_PromptEnhancer` (optional — for image-to-prompt)

- `SaveImageExtended` (for timestamped output)

- Native ComfyUI PiD nodes (PiDConditioning — requires latest ComfyUI update)

Thanks for supporting the channel! If you have questions about setting this up, drop a message and I'll help out. Enjoy the 4K outputs!

— Benji

Files

Comments

Mohamed Jebari

i got this error even after updating comfyui: This workflow was created with a newer version of ComfyUI (0.22.3). Some nodes may not work correctly. Core nodes from version 0.22.0:PiDConditioning

Innovate Futures @ Benji

as your pasted description, version 0.22.3. As usual, I use git pull , it will get things update to the latest from git repo.

DanO..

Run git pull from the custom nodes directory? That will do it? What about requirements?

Innovate Futures @ Benji

As PiD is native node integration by Comfyui team. You should locate in your main Comfyui folder , CMD > git pull Notice, this is manual installation method. If you use Comfyui Portable, it have an update .BAT file you can double click and it run for you.

Mohamed Jebari

Can u plz mention remote and branch ?: git pull . its safe to upadet with this way ?

Innovate Futures @ Benji

The short answer is yes, running git pull is the standard, official, and generally safe way to update ComfyUI. However, because ComfyUI relies on a vast ecosystem of third-party custom nodes and Python dependencies, there are a few important nuances a users should know to avoid breaking their setup.

Innovate Futures @ Benji

Some little out of topic about the way how actually happen in AI community. It's normal. Here are the main reasons why a long-time user might suddenly ask about git pull remotes and branches: 1. "It broke, and now I'm scared" In the world of Stable Diffusion and ComfyUI, updates move fast. A user might have updated casually for months without a single issue, until one day a git pull broke a custom node they use every day, or threw a strange error about "detached HEAD states" or "local changes." Once a user experiences a broken UI that halts their workflow, they lose confidence. They start asking specific questions about remotes and branches to make sure they aren't accidentally pulling an experimental version or downloading code from the wrong place. 2. They used a "One-Click Installer" and never touched Git Many people use ComfyUI for months using the Windows Portable (.7z) version or automated installers like Stability Matrix. These tools hide Git completely. If that user suddenly wants to install ComfyUI on a new machine (like a Linux server, a Mac, or a cloud service like RunPod), they are forced to use the command line for the first time. They might know how to use ComfyUI perfectly, but they are total beginners when it comes to Git. 3. They ran into a Git error message If they accidentally modified an official ComfyUI file (even just changing a line in a config file by mistake), running git pull will suddenly fail with a scary error like: "error: Your local changes to the following files would be overwritten by merge..." When Git throws these errors, it often suggests checking branches or remotes. A user who doesn't know Git will get confused and ask, "Wait, what remote and branch should I even be using?" 4. Copy-pasting tutorials without understanding Many AI artists follow step-by-step YouTube tutorials. They might have copy-pasted git pull months ago because the video told them to, but they never actually understood what Git was doing. As they get deeper into the hobby, they start wanting to understand the underlying tech so they can troubleshoot on their own.

Dorin P.

Hi, this is the best image quality so far… i experimented with Claude code , using your last workflows create my first automatic pipeline. I just wrote a prompt: Gelatiria Promo (from Italian Icecream Promo) and pipeline give me this result , I only wrote a 2 words, the rest was generated automatically https://youtube.com/shorts/fCVSjmq3YBY?si=GVMdm4fcWEuPEa4O

Mohamed Jebari

I’ve been a motion designer for more than 15 years, with strong experience in video production across all kinds of formats and styles. Creating high-quality visuals has always been at the center of my work. I’ve also been involved in AI since the early days. I started with tools like Forge and Fooocus, then moved deeply into ComfyUI more than a year and a half ago. Since then, ComfyUI has become a major part of my daily workflow, and I consider myself a highly experienced artistic user of the platform. From a technical perspective, I can handle myself quite well. I have a background in IT, so I’ve solved many technical issues over time and I’m comfortable troubleshooting when needed. However, my main focus has always been the artistic side of the process rather than the technical one. I’ve installed and built many workflows that I use daily for client projects. So when an error happens, the issue is usually not whether I can solve it — I can. The real problem is time. When working under deadlines, especially on active client projects, I can’t always afford to spend hours fixing issues caused by updates, broken nodes, or compatibility problems after new versions are released. My priority is the creative side: testing ideas, refining visuals, and pushing for the best possible artistic result. Technically, I prefer to keep things stable and simple so I can stay in a safe production environment and focus on creating rather than constantly maintaining the system.

Innovate Futures @ Benji

Thanks for clarifying! That context changes everything, and your perspective makes 100% perfect sense. As a professional motion designer working on tight client deadlines, your concern isn’t a lack of technical capability—it’s risk management and uptime. In a production environment, an unexpected update that breaks a workflow is a major liability. Since ComfyUI is open-source and updated almost daily, running a raw git pull right before or during an active project is actually a high-risk move. 'Breaking changes' that disrupt third-party custom nodes happen frequently.

Dorin P.

If you want to make a Post about "Hermes" or another Agent integration, this will be very interesting. I try to make a "promo" and "music" videos just by one prompt interesting results.

Innovate Futures @ Benji

yes, I want to do this.like the last one talk about Hermes with Comfyui integrated working pipeline. But I don't know, still a lots of users question, " oh! we can use Comfyui directly, why do we need Agent to do?" So I think a lots of people still don't see the difference of it. But we can discuss this in Patreon page with same mindset of people.

Vicente

Can this be used just as upscaler of an existing image? I have my heavily customized ZIT t2i workflow and not interested in changing it.