Fix caption loading.

This commit is contained in:
Hameer Abbasi
2025-06-11 14:47:26 +02:00
parent ffb5fe0667
commit c5d6b74fea

View File

@@ -315,7 +315,7 @@ class CaptionProcessingDTOMixin:
# see if prompt file exists
path_no_ext = os.path.splitext(self.path)[0]
prompt_ext = self.dataset_config.caption_ext
prompt_path = f"{path_no_ext}.{prompt_ext}"
prompt_path = path_no_ext + prompt_ext
short_caption = None
if os.path.exists(prompt_path):