mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-28 18:21:48 +00:00
fix tile-colorfix problems
This will completely solve problems related to tile-colorfix and now tile colorfix/colorfix+sharp give same results to webui-cn
This commit is contained in:
@@ -467,8 +467,11 @@ class ControlNetForForgeOfficial(scripts.Script):
|
||||
params.model.positive_advanced_weighting = soft_weighting.copy()
|
||||
params.model.negative_advanced_weighting = zero_weighting.copy()
|
||||
|
||||
# high-ref fix pass always use softer injections
|
||||
if is_hr_pass or unit.control_mode == external_code.ControlMode.PROMPT.value:
|
||||
if unit.control_mode == external_code.ControlMode.PROMPT.value:
|
||||
params.model.positive_advanced_weighting = soft_weighting.copy()
|
||||
params.model.negative_advanced_weighting = soft_weighting.copy()
|
||||
|
||||
if is_hr_pass and params.preprocessor.use_soft_projection_in_hr_fix:
|
||||
params.model.positive_advanced_weighting = soft_weighting.copy()
|
||||
params.model.negative_advanced_weighting = soft_weighting.copy()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user