show index in caching latents

This commit is contained in:
Kohya S
2023-03-02 21:32:02 +09:00
parent 09f575fd4d
commit 2d2407410e

View File

@@ -1061,7 +1061,8 @@ class DatasetGroup(torch.utils.data.ConcatDataset):
# dataset.make_buckets()
def cache_latents(self, vae):
for dataset in self.datasets:
for i, dataset in enumerate(self.datasets):
print(f"[Dataset {i}]")
dataset.cache_latents(vae)
def is_latent_cacheable(self) -> bool: