first both align well
self.instance_images_path = list(set(possibily_src_images))self.captions = [ x.split("/")[-1].split(".")[0] for x in self.instance_images_path ]
then here is the bug, _self.instance_imagespath is sorted but not self.captionsself.instance_images_path = sorted(self.instance_images_path)
the class define: https://github.com/cloneofsimo/lora/blob/master/lora_diffusion/dataset.py#L119 bug: the _self.instance_imagespath did not align with self.captions
blow is details
first both align well
self.instance_images_path = list(set(possibily_src_images))
self.captions = [ x.split("/")[-1].split(".")[0] for x in self.instance_images_path ]
then here is the bug, _self.instance_imagespath is sorted but not self.captions
self.instance_images_path = sorted(self.instance_images_path)