mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-16 08:52:45 +00:00
Update train_util.py
This commit is contained in:
@@ -5566,8 +5566,7 @@ def sample_images_common(
|
||||
for prompt in per_process_prompts:
|
||||
prompts.extend(prompt)
|
||||
distributed_state.wait_for_everyone()
|
||||
per_process_prompts = gather_object(prompts)
|
||||
prompts = []
|
||||
prompts = gather_object(prompts)
|
||||
|
||||
with torch.no_grad():
|
||||
with distributed_state.split_between_processes(prompts) as prompt_dict_lists:
|
||||
|
||||
Reference in New Issue
Block a user