mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-15 00:32:25 +00:00
Update accel_sdxl_gen_img.py
This commit is contained in:
@@ -2848,7 +2848,7 @@ def main(args):
|
||||
data_loader = get_batches(items=batch_data, batch_size=args.batch_size)
|
||||
with distributed_state.split_between_processes(data_loader) as batch_list:
|
||||
for j in range(len(batch_list)):
|
||||
logger.info(f"Loading batch {j}/{len(batch_list)} of {len(batch_list[j])} prompts onto device {distributed_state.local_process_index}:")
|
||||
logger.info(f"Loading batch {j+1}/{len(batch_list)} of {len(batch_list[j])} prompts onto device {distributed_state.local_process_index}:")
|
||||
logger.info(f"batch_list:")
|
||||
for i in range(len(batch_list[j])):
|
||||
logger.info(f"Device {distributed_state.device}: Prompt {i+1}: {batch_list[j][i].base.prompt}")
|
||||
|
||||
Reference in New Issue
Block a user