Add dataset flag to cache the raw tensors
This commit is contained in:
@@ -994,6 +994,9 @@ class DatasetConfig:
|
||||
self.cache_latents: bool = kwargs.get('cache_latents', False)
|
||||
# cache latents to disk will store them on disk. If both are true, it will save to disk, but keep in memory
|
||||
self.cache_latents_to_disk: bool = kwargs.get('cache_latents_to_disk', False)
|
||||
# cache tensors to disk. Useful for saving video files tensors to the disk so we have the clean pixelspace versions of video and audio
|
||||
self.cache_tensors_to_disk: bool = kwargs.get('cache_tensors_to_disk', False)
|
||||
|
||||
self.cache_clip_vision_to_disk: bool = kwargs.get('cache_clip_vision_to_disk', False)
|
||||
self.cache_text_embeddings: bool = kwargs.get('cache_text_embeddings', False)
|
||||
self.load_image_when_caching_latents: bool = kwargs.get('load_image_when_caching_latents', False)
|
||||
|
||||
Reference in New Issue
Block a user