Update accel_sdxl_gen_img.py

This commit is contained in:
DKnight54
2025-02-01 12:04:49 +08:00
committed by GitHub
parent eb7c0b563d
commit e607dc45ff

View File

@@ -2874,6 +2874,7 @@ def main(args):
global_step += 1
prompt_index += 1
batch_data = gather_object(batch_data)
batch_separated_list = []
if distributed_state.is_main_process and len(batch_data) > 0:
unique_extinfo = list(set(extinfo))
@@ -2908,7 +2909,7 @@ def main(args):
logger.info(f"batch_separated_list: {len(batch_separated_list)}")
distributed_state.wait_for_everyone()
batch_data = gather_object(batch_separated_list)
logger.info(f"batch_data: {len(batch_data)}")
logger.info(f"batch_data line 2912: {len(batch_data)}")
del extinfo
if len(batch_data) > 0: