train_temp.append([train_image_item,self.annotation[line][idx]])
val_temp.append([val_image_item,self.annotation[line][idx]])
is train_image_item and self.annotation[line][idx]] need to be of the same image like Folder-1_image1.jpg, Folder-1_image1_annotation.png, or just random pairs as long as they are from the same folder. And what about for the validation
train_temp.append([train_image_item,self.annotation[line][idx]])
val_temp.append([val_image_item,self.annotation[line][idx]])
is train_image_item and self.annotation[line][idx]] need to be of the same image like Folder-1_image1.jpg, Folder-1_image1_annotation.png, or just random pairs as long as they are from the same folder. And what about for the validation