print(f"SD upscaling will process a total of {len(work)} images tiled as {len(grid.tiles[0][2])}x{len(grid.tiles)} per upscale in a total of {state.job_count} batches.")
print(
f"SD upscaling will process a total of {len(work)} images tiled as {len(grid.tiles[0][2])}x{len(grid.tiles)} per upscale in a total of {state.job_count} batches.")
result_images=[]
result_images=[]
forninrange(upscale_count):
forninrange(upscale_count):
...
@@ -69,7 +73,7 @@ class Script(scripts.Script):
...
@@ -69,7 +73,7 @@ class Script(scripts.Script):
work_results=[]
work_results=[]
foriinrange(batch_count):
foriinrange(batch_count):
p.batch_size=batch_size
p.batch_size=batch_size
p.init_images=work[i*batch_size:(i+1)*batch_size]
p.init_images=work[i*batch_size:(i+1)*batch_size]
state.job=f"Batch {i + 1 + n * batch_count} out of {state.job_count}"
state.job=f"Batch {i + 1 + n * batch_count} out of {state.job_count}"