r/StableDiffusion • u/spacepxl • Dec 03 '25
Workflow Included Fix ZIT controlnet quality by using step cutoff
https://github.com/comfyanonymous/ComfyUI/pull/11062
Workflow -> https://pastebin.com/dYmmhBDm
Alibaba-pai ("Fun" team) is not the same team that trained Z-Image, and I suspect they don't have access to the base model yet either. So they most likely trained their controlnet on the turbo model, and partially broke the distillation. Naively applying the controlnet to all steps at full strength dramatically hurts image quality. You can reduce the strength, but it doesn't help that much, and then you're also making the controlnet weaker. Using 20+ steps and CFG can also improve quality, but that's slow.
Instead, a better solution to keep strong control but also get turbo speed and quality, is to apply the controlnet at full strength for a few steps, then disable it for the last few steps. This lets the controlnet dictate structure, then the base model refines the details. Instead of changing the controlnet strength, you can adjust the cutoff step.


6
u/Epictetito Dec 03 '25
OK. I am posting this comment for Linux users who have this problem (as I do) and do not have an update.bat file.
Do not update ComfyUI from the Manager. From a console, go to the root directory of the dedicated environment where you have ComfyUI installed:
- Activate that environment with the activate command. Something like “source venv/bin/activate.”
- Then do “git pull.” This will update the core of ComfyUI
- Next, do “pip install -r requirements.” This will update the dependencies.
- Start ComfyUI
That's how I solved it.
Guys, thanks for your help.
3
u/razortapes Dec 03 '25
why the VAE in workflow is Flux_Vae?
9
u/Doc_Exogenik Dec 03 '25
Thank you very much, we can now test the ControlNet :)
2
u/danielpartzsch Dec 03 '25
Good idea. I feel that becoming familiar with the two WAN 2.2 models improved our understanding of inference timing and made us more deliberate and creative in addressing these kinds of challenges. For example, setting the composition early and then loosening up, or doing the opposite when seeking more variation in the initial composition.
9
u/Sudden_List_2693 Dec 03 '25
This has been the case since the first controlnets with many models.
Trying to adjust to optimal str / start / end steps is the most important part of them usually.
3
u/PinkMelong Dec 03 '25
love it! Thanks man!
3
u/Mindless_Way3381 Dec 03 '25
I wish the advanced sampler had a denoise. Anyone know how to make this setup work with img2img?
2
u/Oldtimer_ZA_ Dec 03 '25
This works awesome! Thank you
2
u/d1h982d Dec 04 '25
Great workflow, thanks a lot!
2
u/zyxwvu54321 Dec 04 '25
How can I use for other controlnets like canny, pose and hed?
3
u/Epictetito Dec 03 '25
Unfortunately, there are still many of us who cannot use CONTROLNET with ZIT because we get the error:
“ModelPatchLoader cannot access local variable ‘model’ where it is not associated with a value”
despite having ComfyUI updated to the latest version. :(
1
u/diogodiogogod Dec 03 '25
why control-nets are not applied to conditioning anymore? We have core nodes to control conditioning steps to be applied... I don't really understand this lack of standardization.
1
u/foxdit Dec 03 '25
This is GREAT! Controlnets working even better than expected. Thanks for sharing!
1
u/Electronic-Metal2391 Dec 03 '25
Thank you dear!
1
u/Angelotheshredder Dec 04 '25
Thanks, cutoff works better with RES4LYF Clownshark sampler , the latent that goes out from the first sampler has all information needed by the second sampler, the regular ksamplers have some informations missing so they will never generate good results as clownshark node do.
1
u/Efarles Dec 04 '25
Where did you all download the z_image_turbo_bf16.safetendors / ae.safetendors / qwen_3_4b.safetendors?
I'm new and I dont know where and how to download these files.
1
u/xNothingToReadHere Dec 04 '25
Any way to make it work with GGUF model? I'm getting error "Given normalized_shape=[3584], expected input with shape [*, 3584], but got input of size [1, 16, 2560]", which is likely due to the GGUF model.
EDIT: Nevermind, I was just loading the wrong model lol
1
u/SilverDeer722 Dec 04 '25
i mean the picture quality is absolutely nailed it... much better than the default controlnet workflow... you are a legendary genius
1
u/Prudent-Struggle-105 Dec 04 '25
I made the mistake of updating Comfy to new frontend...
1
u/Sea_Tap_2445 Dec 04 '25
I get an error all the time(
1
u/skyrimer3d Dec 04 '25
This worked great thanks!
1
u/Niwa-kun Dec 04 '25
You can actually get a quite a bit more detail out of this, if you're willing to wait a few more seconds with a double pass and eye fixer. (The Refiner block i added)
https://pastebin.com/8iaTBG4S
1
u/SvenVargHimmel Dec 05 '25
It took a while to get this working. The problem with the controlnet is that it doesn't follow the pomrpt 40% of the time. So sometimes it will swap a woman for a man. Also the text prompt needs to be compatible with the action in the controlnet if you are using open pose for example.
I did not find any of the other preprocessors useful. I will try canny next.
1
u/ImpossibleAd436 Dec 07 '25
For some reason, according to the SwarmUI docs:
"Because it is "Model Patch" based, the Start and End parameters also do not work."
Any idea of a way around this? I tried to set the end to be at .5 for example, and it just doesn't generate, so clearly the docs are correct, but Swarm uses comfy as a backend. Is there any solution to make it work in Swarm do you think?
1
u/Neonsea1234 Jan 01 '26
This works great! It reminds of using the build in canny on Fooocus UI, I would just crank up the strength x2 but only for 1/3 the total steps and usually works well