From 01430d03e00808be7d35c5d4748089afca99c82e Mon Sep 17 00:00:00 2001 From: DKnight54 <126916963+DKnight54@users.noreply.github.com> Date: Sun, 2 Feb 2025 01:08:10 +0800 Subject: [PATCH] Update accel_sdxl_gen_img.py --- accel_sdxl_gen_img.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel_sdxl_gen_img.py b/accel_sdxl_gen_img.py index 15e9ebd2..379e123b 100644 --- a/accel_sdxl_gen_img.py +++ b/accel_sdxl_gen_img.py @@ -2887,7 +2887,7 @@ def main(args): sublist = [] if(len(split_into_batches) % distributed_state.num_processes != 0): #Distributes last round of batches across available processes if last round of batches less than available processes and there is more than one prompt in the last batch - popnum = (len(split_into_batches) % distributed_state.num_processes + popnum = len(split_into_batches) % distributed_state.num_processes else: #force distribution check on last round of batches popnum = distributed_state.num_processes