mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-15 08:36:41 +00:00
Update accel_sdxl_gen_img.py
This commit is contained in:
@@ -2843,9 +2843,9 @@ def main(args):
|
||||
logger.info(f"batch_list:")
|
||||
for i in range(len(batch_list[0])):
|
||||
logger.info(f"Prompt {i+1}: {batch_list[0][i].base.prompt}")
|
||||
prev_image = process_batch(batch_list[0], highres_fix)[0]
|
||||
distributed_state.wait_for_everyone()
|
||||
prev_image = process_batch(batch_list[0], highres_fix)[0]
|
||||
batch_data.clear()
|
||||
distributed_state.wait_for_everyone()
|
||||
|
||||
batch_data.append(b1)
|
||||
if len(batch_data) == args.batch_size*distributed_state.num_processes:
|
||||
@@ -2876,8 +2876,9 @@ def main(args):
|
||||
for i in range(len(batch_list[0])):
|
||||
logger.info(f"Prompt {i+1}: {batch_list[0][i].base.prompt}")
|
||||
prev_image = process_batch(batch_list[0], highres_fix)[0]
|
||||
distributed_state.wait_for_everyone()
|
||||
batch_data.clear()
|
||||
distributed_state.wait_for_everyone()
|
||||
|
||||
|
||||
global_step += 1
|
||||
|
||||
@@ -2899,8 +2900,9 @@ def main(args):
|
||||
for i in range(len(batch_list[0])):
|
||||
logger.info(f"Prompt {i+1}: {batch_list[0][i].base.prompt}")
|
||||
prev_image = process_batch(batch_list[0], highres_fix)[0]
|
||||
distributed_state.wait_for_everyone()
|
||||
batch_data.clear()
|
||||
distributed_state.wait_for_everyone()
|
||||
|
||||
|
||||
logger.info("done!")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user