Răsfoiți Sursa

batch_size does not affect job count

AUTOMATIC 2 ani în urmă
părinte
comite
3d898044e5
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      scripts/outpainting_mk_2.py

+ 1 - 1
scripts/outpainting_mk_2.py

@@ -246,7 +246,7 @@ class Script(scripts.Script):
         batch_count = p.n_iter
         batch_size = p.batch_size
         p.n_iter = 1
-        state.job_count = batch_count * batch_size * ((1 if left > 0 else 0) + (1 if right > 0 else 0) + (1 if up > 0 else 0) + (1 if down > 0 else 0))
+        state.job_count = batch_count * ((1 if left > 0 else 0) + (1 if right > 0 else 0) + (1 if up > 0 else 0) + (1 if down > 0 else 0))
         all_processed_images = []
 
         for i in range(batch_count):