fix segment delimiter

This commit is contained in:
Vladimir Mandic
2023-05-20 09:35:14 -04:00
parent 0891b30ffe
commit 335ad42fc8
4 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ class VanillaStableDiffusionSampler:
num_steps = shared.opts.uni_pc_order
valid_step = 999 / (1000 // num_steps)
if valid_step == math.floor(valid_step):
return int(valid_step) + 1
return min(int(valid_step) + 1, num_steps)
return num_steps