mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
move releasing cache outside of the loop
This commit is contained in:
@@ -2165,8 +2165,9 @@ def cache_batch_latents(
|
||||
info.latents = latent
|
||||
if flip_aug:
|
||||
info.latents_flipped = flipped_latent
|
||||
if torch.cuda.is_available():
|
||||
torch.cuda.empty_cache()
|
||||
|
||||
if torch.cuda.is_available():
|
||||
torch.cuda.empty_cache()
|
||||
|
||||
|
||||
def cache_batch_text_encoder_outputs(
|
||||
|
||||
Reference in New Issue
Block a user