Update train_util.py, bug fix

This commit is contained in:
Nando Metzger
2024-08-30 08:15:05 +02:00
committed by GitHub
parent 25f961bc77
commit 2a3aefb4e4

View File

@@ -1489,7 +1489,7 @@ class DreamBoothDataset(BaseDataset):
def load_dreambooth_dir(subset: DreamBoothSubset):
if not os.path.isdir(subset.image_dir):
logger.warning(f"not directory: {subset.image_dir}")
return [], []
return [], [], []
info_cache_file = os.path.join(subset.image_dir, self.IMAGE_INFO_CACHE_FILE)
use_cached_info_for_subset = subset.cache_info