mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-09 06:45:09 +00:00
show index in caching latents
This commit is contained in:
@@ -1061,7 +1061,8 @@ class DatasetGroup(torch.utils.data.ConcatDataset):
|
|||||||
# dataset.make_buckets()
|
# dataset.make_buckets()
|
||||||
|
|
||||||
def cache_latents(self, vae):
|
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)
|
dataset.cache_latents(vae)
|
||||||
|
|
||||||
def is_latent_cacheable(self) -> bool:
|
def is_latent_cacheable(self) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user