[KongchangAI]
· 2 min read· 1,489 words

ComfyUI Two-Stage Sampling in Practice: A Guide to Choosing ControlNet Preprocessors

ComfyUI Two-Stage Sampling in Practice: A Guide to Choosing ControlNet Preprocessors

Use two-stage sampling to decouple structure control from quality, and pick among four ControlNet preprocessors by reference type.

To fix stiff images and lost details when using ControlNet in ComfyUI, the article proposes two-stage sampling: stage one keeps ControlNet with Denoise at 1.0 to lock composition and pose, stage two disconnects ControlNet and uses Denoise 0.7–0.75 to refine details, feeding stage one's Latent into stage two. It also compares four preprocessors — OpenPose, Canny, Soft Edge, and Depth Anything — with a selection mnemonic.

Many people using ControlNet in ComfyUI run into the same dilemma: the structure is locked in, but the image looks stiff, details are lost, and the sense of control is too strong. The root cause is that in single-stage sampling, the control signal "tries too hard." In the sixth episode of his hands-on course, Bilibili creator Teacher Haojian offers a practical solution — two-stage sampling — and along the way thoroughly explains the logic for choosing among four common preprocessors.

Why do you need two sampling passes?

In a single-stage workflow, ControlNet intervenes from the very first step and continuously constrains composition, pose, and contours. The upside is accurate structure; the downside is that the constraints are too rigid — lines look harsh, details get suppressed, and the image lacks a natural feel.

The core idea of two-stage sampling is division of labor: the first stage keeps ControlNet to firmly lock composition, pose, and contours, with Denoise held at 1.0; the second stage removes ControlNet and performs a refinement redraw on the previous result, with Denoise set between 0.7 and 0.75. This preserves the stability of the control net without letting overly strong control make the image rigid. As the creator puts it, "the control signal is always there, and it's easy for it to constrain the image too tightly."

Two-stage sampling workflow diagram

Denoise (denoising strength) is the parameter that determines how much the sampler preserves the input Latent information. At a value of 1.0, the sampler almost entirely ignores the input latent representation and regenerates from pure noise based on the prompt and conditions; the lower the value, the more it tends to make local modifications on top of the existing latent representation. In the default text-to-image pipeline, the initial Latent is pure noise, so Denoise is fixed at 1.0. In image-to-image or second-pass sampling scenarios, however, the input Latent already carries the structure and content information from the previous stage, so Denoise becomes the dial between "preserve the original structure" and "let the model freely improvise" — lower values stay closer to the original image, higher values allow bigger changes. In two-stage sampling, the first stage uses 1.0 to ensure the conditioning signals take full effect, while the second stage uses 0.7–0.75 to leave room for detail redrawing while preserving the overall composition.

How to build the two-stage workflow?

Modify the single-stage workflow from the previous lesson directly — no need to build from scratch.

First stage: keep the original K-Sampler with Denoise at 1.0, and connect the Model input to the ControlNet output (the model with control applied). This stage is responsible for controlling structure.

Second stage: drag in a second K-Sampler and place it on the right. Most parameters match the first stage; change two key things:

  • The Model input no longer connects to the ControlNet output but directly to the original Load Diffusion Model output — this step is "removing control to optimize."
  • Set Denoise to 0.7–0.75; the creator himself usually uses 0.75. Too low a value gives no optimization effect, while too high a value easily washes out the structure controlled in the first stage — 0.75 is a balanced choice.

The Positive and Negative prompts can be shared with the first stage. The most critical step: connect the second sampler's Latent input to the first K-Sampler's Latent output, so the first stage's result is fed directly into the second stage for secondary optimization. The decode and save nodes go after the second sampler and don't need to be changed.

Second-pass sampling parameter adjustment diagram

Run a comparison and you'll see the difference: the structure is still just as accurate, but details, lighting, and naturalness all move up a notch — no more stiff sense of control.

How to choose among the four common preprocessors?

The key to control lies in the preprocessor. The creator breaks down the four most commonly used ones one by one, covering principles, effects, and use cases.

Comparison of four preprocessors

OpenPose: lock the motion

Extracts human skeleton keypoint maps so the generated motion matches the reference image. It's the most direct choice when you want to fix a character's action or replicate a pose. But the creator cautions that Zimage Turbo's control precision over pure skeletal poses isn't as perfect as you might imagine — using pose control alone can easily produce situations where "the action matches but the character's proportions are off or the limbs are wrong." It's recommended to pair it with detailed prompts to fill in proportion and structural information.

Zimage Turbo is the base model mentioned in the article; it belongs to the Turbo family of fast-generation models. These models boost generation speed by drastically reducing sampling steps (typically 4–8), but their training objective favors converging quickly to a reasonable image within very few steps, and their response precision to conditioning signals is often less fine-grained than that of standard-step models. In ControlNet scenarios, this means the model's adherence to sparse structural conditions such as skeletal keypoints may be compromised, making deviations in details like proportions and limb overlap more likely. That's why the article recommends pairing it with detailed prompts, using text conditions to supplement the structural information that ControlNet fails to convey fully.

Canny (line art): pin the contours

Extracts edge lines from the reference image; the model follows the line contours strictly, locking structure very tightly with almost no distortion. Best suited for hand-drawn line art, automatic coloring of anime line art, or scenarios with extremely high contour-fidelity requirements. However, when the image edges are soft, the line-art preprocessor can easily look harsh.

Soft Edge: aim for naturalness

Unlike the line-art preprocessor, it extracts not harsh solid lines but softer, blurred transition contours — the edges are fuzzy and gradual. It suits illustration references with soft lighting and inherently non-sharp edges. When you want to control structure without leaving traces of control, this is the best choice.

Soft Edge preprocessing effect

Depth Anything (depth): play it safe

The creator calls this "the most stable and most broadly applicable option, bar none." It extracts depth information from the reference image: the whiter, the closer to the camera; the blacker, the farther away. The generated image strictly preserves the original's spatial hierarchy and the near-far relationships of objects — great for controlling large-scene composition, object placement, and approximate character poses, with a particularly high tolerance for error. When beginners don't know what to choose, the depth preprocessor is basically never wrong.

The selection mnemonic is worth remembering: use OpenPose to lock motion, Canny to pin contours, Soft Edge for naturalness, and depth maps to play it safe.

Summary

The value of two-stage sampling lies in decoupling "controlling structure" and "improving quality," letting each do its own job and avoiding the rigidity caused by overly strong single-stage control. The key to choosing a preprocessor is to return to the reference image itself: motion, line art, soft-light illustration, spatial scene — each corresponds to a different tool. Combined, the two let you not only get the workflow running but also tune the sampling results to your liking.

Background Notes

Latent (latent representation) is the data space in which Stable Diffusion series models actually operate. Images are not fed directly into the UNet in pixel form; instead, they are first compressed by the VAE encoder into a low-dimensional feature map — the Latent — whose spatial size is typically 1/8 of the original image, with 4 channels. All of the sampler's denoising operations take place in this Latent space, and the result is finally restored to a visible image through the VAE decoder. Therefore, connecting the second sampler's Latent input to the first sampler's Latent output means the second stage continues operating directly on the latent representation generated by the first stage, without the round trip of "decode → re-encode," which preserves information integrity and avoids extra computation and quality loss.

One-line Summary

Use two-stage sampling to decouple structure control from quality improvement, and choose among four ControlNet preprocessors based on the reference image type.

Paragraph Summary

The article addresses the stiffness and detail loss that occur when using ControlNet in ComfyUI by proposing a two-stage sampling scheme: the first stage keeps ControlNet with Denoise at 1.0 to lock composition and pose, while the second stage disconnects ControlNet and uses Denoise of 0.7–0.75 for refinement redrawing, feeding the first stage's Latent output into the second stage — thereby restoring details and naturalness while maintaining structural accuracy. The article also systematically compares four common preprocessors: OpenPose locks motion but needs prompts to fill in proportions, Canny line art pins contours most strictly, Soft Edge suits soft-light illustrations with natural-looking control, and Depth Anything has the highest error tolerance and the broadest applicability. It concludes with a selection mnemonic, emphasizing that preprocessor choice should return to the characteristics of the reference image itself.

#ComfyUI#ControlNet#two-stage sampling#preprocessor#Denoise#OpenPose#Canny#Depth Anything
Share:

Related articles