Original tutorial
https://www.bilibili.com/video/BV1tsVH6kEBJ/
https://youtu.be/nPt4IJ03Y9Q
RunningHub · mainland China https://www.runninghub.cn/post/2059961777689030657/?inviteCode=rh-v1111
RunningHub · international https://www.runninghub.ai/post/2072998923784200192?inviteCode=rh-v1111
RunningHub invitation links may benefit the author.
Author’s shared Quark collection https://pan.quark.cn/s/20c6f6f8d87b
PiD (Pixel Diffusion Decoder) is not an upscaler. An upscaler starts from a finished image and sharpens it; PiD takes the latent before it becomes an image and decodes it as a 4K picture with a pixel-space diffusion model. The author's framing: generate at ~1 MP, let PiD's 16x factor do the rest. Four graphs ship here - FLUX.1 Dev, FLUX.2 Dev, SD3.5 Large and Z-Image Turbo.
Evidence note: four workflow JSONs ship with this episode; model files, the PiD node chain and the sampler tuples below are read from them. Quality verdicts and VRAM behaviour are the author's, as reported in the video.
When to use it
- You want 2K/4K output but do not want a separate upscale-then-refine chain.
- You want the low-res composition preserved instead of "everything made sharp".
- You can test remotely: the author says 48 GB online instances still OOM sometimes.
What is different in this workflow
-
PiD works inside the latent path:
PiDPrepare->PiDSample->PiDFinalizex, withPiDKSamplerCapturegrabbing the latent from the base sampler andPiDTextPromptcarrying the prompt. - Three-node chain, few knobs: sample, prepare, second-pass enhance.
- Sigma is the only real dial: 0 when you feed the final latent, 0.1-0.5 when you feed a PiD latent, or just wire the PiD sigma directly and let it be automatic.
- It magnifies what it is given: SD3.5's broken limbs stay broken, only larger - PiD does not repair.
Step by step
- Pick the graph for your base model (FLUX.1, FLUX.2, SD3.5, Z-Image Turbo).
- Generate at roughly 1 MP - the author keeps the first pass around a million pixels.
- Set the PiD target size; the default path gives 16x.
- Feed
PiDSampleeither the final latent with sigma 0, or a PiD latent with sigma 0.1-0.5. The safest route is to connect PiD sigma directly and skip the decision. - Run the second-pass enhance and save.
- Judge the base image honestly: if limbs are already wrong, PiD will make them wrong at 4K.
Parameter basis
-
FLUX.1 Dev (
FLUX.1 Dev|PiD直出4K.json, 15 nodes):CheckpointLoaderSimple->flux1-dev-fp8.safetensors;FluxGuidance;EmptySD3LatentImage;PiDKSamplerCaptureraw tuple[seed, 'fixed', 28, 1, 'euler', 'simple', 1, 26](steps 28, CFG 1, euler, simple). -
FLUX.2 Dev (19 nodes):
UNETLoader->flux2_dev_fp8mixed.safetensors;CLIPLoader->mistral_3_small_flux2_fp8.safetensors(typeflux2);VAELoader->flux2-vae.safetensors;PiDKSamplerCapture-> 50 steps, CFG 4,euler,FlowMatchEulerDiscreteScheduler. -
SD3.5 Large (13 nodes):
CheckpointLoaderSimple->sd3.5_large_fp8_scaled.safetensors;PiDKSamplerCapture-> 25 steps, CFG 4.4,euler,sgm_uniform. -
Z Image Turbo (16 nodes):
UNETLoader->z_image_turbo_bf16.safetensors;CLIPLoader->qwen_3_4b.safetensors(typelumina2);VAELoader->ae.safetensors;ModelSamplingAuraFlow;PiDKSamplerCapture-> 9 steps, CFG 1,euler,beta;VAEDecodeTiled.
Limits
- VRAM: the author says even a 48 GB online instance OOMs easily and explicitly advises against local testing; failed online runs cost no credits.
- SD3.5 limbs: PiD faithfully enlarges broken hands instead of fixing them - the author's clearest warning.
- FLUX.2 is heavy: 128 latent channels means more information but more memory.
- Raising sigma invites invention: the author prefers 0 and warns that a high sigma degrades the result for negligible performance gain.
- Z-Image's step/CFG settings can be pushed too far - the author shows an over-processed result from doing exactly that.
Episode resources
- RunningHub - FLUX.1 Dev PiD 4K: https://www.runninghub.ai/post/2059961777689030657/?inviteCode=rh-v1111
- RunningHub - FLUX.2 Dev PiD 4K: https://www.runninghub.ai/post/2059961769686294530/?inviteCode=rh-v1111
- RunningHub - SD3.5 Large PiD 4K: https://www.runninghub.ai/post/2059961785033256961/?inviteCode=rh-v1111
- RunningHub - Z Image Turbo PiD 4K: https://www.runninghub.ai/post/2059961793564471298/?inviteCode=rh-v1111
- YouTube: https://www.youtube.com/watch?v=nPt4IJ03Y9Q
- Bilibili: https://www.bilibili.com/video/BV1tsVH6kEBJ
Optional API platform - 88API (affiliate link)
Explore 88API for access to multiple AI model APIs. Available models, routes and prices are listed on the platform; Alipay top-ups are supported.
https://88api.ai/sign-up?aff=usx3
Disclosure: I may earn a commission from eligible purchases after you register through this referral link.
Top comments (0)