mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-16 00:49:40 +00:00
Update accel_sdxl_gen_img.py
This commit is contained in:
@@ -2445,7 +2445,7 @@ def main(args):
|
||||
global_step = 0
|
||||
batch_data = []
|
||||
extinfo = []
|
||||
while args.interactive or (prompt_index < len(prompt_list) and (not distributed_state.is_main_process or distributed_state.num_processes == 1)):
|
||||
while args.interactive or (prompt_index < len(prompt_list) and distributed_state.is_main_process):
|
||||
if len(prompt_list) == 0:
|
||||
# interactive
|
||||
valid = False
|
||||
@@ -2873,6 +2873,7 @@ def main(args):
|
||||
|
||||
prompt_index += 1
|
||||
batch_data = gather_object(batch_data)
|
||||
extinfo = gather_object(extinfo)
|
||||
logger.info(f"batch_data line 2878: {len(batch_data)}")
|
||||
batch_separated_list = []
|
||||
logger.info(f"Device {distributed_state.device}, distributed_state.is_main_process 2878: {distributed_state.is_main_process}")
|
||||
|
||||
Reference in New Issue
Block a user