Skip to content

Commit

Permalink
Avoid unnecessary work
Browse files Browse the repository at this point in the history
  • Loading branch information
SeargeDP committed Aug 3, 2023
1 parent 2c99c4d commit 4dc1c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searge_sdxl_sampler_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def sample(self, base_model, base_positive, base_negative, refiner_model, refine
upscale_result = nodes.ImageScale().upscale(scaled_image, "bicubic", scaled_width, scaled_height, "center")
scaled_image = upscale_result[0]

if use_upscale_model:
if use_upscale_model and softness > 0.0001:
upscale_result = nodes.ImageScale().upscale(image, "bicubic", scaled_width, scaled_height, "center")
scaled_original = upscale_result[0]

Expand Down

0 comments on commit 4dc1c52

Please sign in to comment.