mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-28 02:01:29 +00:00
bug fix
This commit is contained in:
@@ -408,7 +408,7 @@ class LatentCachingMixin:
|
|||||||
|
|
||||||
if to_memory:
|
if to_memory:
|
||||||
# keep it in memory
|
# keep it in memory
|
||||||
file_item._encoded_latent = latent.to('cpu', dtype=self.sd.dtype)
|
file_item._encoded_latent = latent.to('cpu', dtype=self.sd.torch_dtype)
|
||||||
|
|
||||||
flush(garbage_collect=False)
|
flush(garbage_collect=False)
|
||||||
file_item.is_latent_cached = True
|
file_item.is_latent_cached = True
|
||||||
|
|||||||
Reference in New Issue
Block a user