Control editing vs refinement with refine_strength
mainThe pipeline includes a refine_strength parameter to balance the editing and refinement stages:
- Editing Stage: Occurs during the first
(1 - refine_strength)portion of denoising steps. - Refinement Stage: The remaining
refine_strengthportion uses HiDream-I1-Full for img2img refinement to enhance the result. - Disable Refinement: Set
refine_strengthto0.0to skip the refinement stage.