fix: correctly calculate refiner switch when overwrite_switch is > 0 (#2165)

When using custom steps, the calculation of switching timing is wrong. Now it is modified to calculate "steps x timing" after custom steps are used.
By @xhoxye
This commit is contained in:
Manuel Schmid 2024-02-11 15:12:41 +01:00
parent 074b655dff
commit f4a8bf24cf
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
1 changed files with 2 additions and 2 deletions

View File

@ -335,11 +335,11 @@ def worker():
ip_adapter.load_ip_adapter(clip_vision_path, ip_negative_path, ip_adapter_path)
ip_adapter.load_ip_adapter(clip_vision_path, ip_negative_path, ip_adapter_face_path)
switch = int(round(steps * refiner_switch))
if advanced_parameters.overwrite_step > 0:
steps = advanced_parameters.overwrite_step
switch = int(round(steps * refiner_switch))
if advanced_parameters.overwrite_switch > 0:
switch = advanced_parameters.overwrite_switch