Skip to content

Commit

Permalink
fix to work caching latents #1696
Browse files Browse the repository at this point in the history
  • Loading branch information
kohya-ss committed Oct 18, 2024
1 parent 2500f5a commit d8d7142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdxl_train_control_net_lllite.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def train(args):
vae.requires_grad_(False)
vae.eval()

train_dataset_group.new_cache_latents(vae, accelerator.is_main_process)
train_dataset_group.new_cache_latents(vae, accelerator)

vae.to("cpu")
clean_memory_on_device(accelerator.device)
Expand Down

0 comments on commit d8d7142

Please sign in to comment.