lora icon indicating copy to clipboard operation
lora copied to clipboard

bug with PivotalTuningDatasetCapation

Open psy2013GitHub opened this issue 2 years ago • 0 comments

the class define: https://github.com/cloneofsimo/lora/blob/master/lora_diffusion/dataset.py#L119 bug: the self.instance_images_path 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_images_path is sorted but not self.captions self.instance_images_path = sorted(self.instance_images_path)

psy2013GitHub avatar Feb 23 '23 03:02 psy2013GitHub