mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-14 16:22:28 +00:00
Update accel_sdxl_gen_img.py
This commit is contained in:
@@ -2939,22 +2939,22 @@ def main(args):
|
||||
distributed_state.wait_for_everyone()
|
||||
if distributed_state.is_main_process:
|
||||
batchlogstr = "Running through ext_separated_list_of_batches Before Gather:\n"
|
||||
for x in range(len(ext_separated_list_of_batches)):
|
||||
batchlogstr += f"Batch_ext {x} of {len(ext_separated_list_of_batches)} break:\n"
|
||||
for y in range(len(ext_separated_list_of_batches[x])):
|
||||
batchlogstr += f" Batch {y} of {len(ext_separated_list_of_batches[x])} break:\n"
|
||||
for z in range(len(ext_separated_list_of_batches[x][y])):
|
||||
batchlogstr += f" Image {z} of {len(ext_separated_list_of_batches[x][y])} break: {ext_separated_list_of_batches[x][y][z].global_count}\n"
|
||||
for x in range(len(ext_separated_list_of_batches)):
|
||||
batchlogstr += f"Batch_ext {x} of {len(ext_separated_list_of_batches)} break:\n"
|
||||
for y in range(len(ext_separated_list_of_batches[x])):
|
||||
batchlogstr += f" Batch {y} of {len(ext_separated_list_of_batches[x])} break:\n"
|
||||
for z in range(len(ext_separated_list_of_batches[x][y])):
|
||||
batchlogstr += f" Image {z} of {len(ext_separated_list_of_batches[x][y])} break: {ext_separated_list_of_batches[x][y][z].global_count}\n"
|
||||
logger.info(batchlogstr)
|
||||
ext_separated_list_of_batches = gather_object(ext_separated_list_of_batches)
|
||||
if distributed_state.is_main_process:
|
||||
batchlogstr = "Running through ext_separated_list_of_batches After Gather:\n"
|
||||
for x in range(len(ext_separated_list_of_batches)):
|
||||
batchlogstr += f"Batch_ext {x} of {len(ext_separated_list_of_batches)} break:\n"
|
||||
for y in range(len(ext_separated_list_of_batches[x])):
|
||||
batchlogstr += f" Batch {y} of {len(ext_separated_list_of_batches[x])} break:\n"
|
||||
for z in range(len(ext_separated_list_of_batches[x][y])):
|
||||
batchlogstr += f" Image {z} of {len(ext_separated_list_of_batches[x][y])} break: {ext_separated_list_of_batches[x][y][z].global_count}\n"
|
||||
for x in range(len(ext_separated_list_of_batches)):
|
||||
batchlogstr += f"Batch_ext {x} of {len(ext_separated_list_of_batches)} break:\n"
|
||||
for y in range(len(ext_separated_list_of_batches[x])):
|
||||
batchlogstr += f" Batch {y} of {len(ext_separated_list_of_batches[x])} break:\n"
|
||||
for z in range(len(ext_separated_list_of_batches[x][y])):
|
||||
batchlogstr += f" Image {z} of {len(ext_separated_list_of_batches[x][y])} break: {ext_separated_list_of_batches[x][y][z].global_count}\n"
|
||||
logger.info(batchlogstr)
|
||||
del extinfo
|
||||
#logger.info(f"\nDevice {distributed_state.device}: {ext_separated_list_of_batches}")
|
||||
|
||||
Reference in New Issue
Block a user