Closed ashlaban closed 5 years ago
I suspect that, while triplets are regenerated here, they are not updated in the dataset. Looking at how this case is handled initially https://github.com/DIVA-DIA/DeepDIVA/blob/4dccf3b5fab5d45abd09977f37079f1803520988/datasets/image_folder_triplet.py#L138 and at the function generate_triplets https://github.com/DIVA-DIA/DeepDIVA/blob/4dccf3b5fab5d45abd09977f37079f1803520988/datasets/image_folder_triplet.py#L145 we see that this function only creates a new set, it never assigns to self.triplets.
generate_triplets
self.triplets
Another idea would be to change the semantics of generate_triplets to modify the underlying instance (or create a helper regenerate_triplets for this purpose).
regenerate_triplets
I suspect that, while triplets are regenerated here, they are not updated in the dataset. Looking at how this case is handled initially https://github.com/DIVA-DIA/DeepDIVA/blob/4dccf3b5fab5d45abd09977f37079f1803520988/datasets/image_folder_triplet.py#L138 and at the function
generate_triplets
https://github.com/DIVA-DIA/DeepDIVA/blob/4dccf3b5fab5d45abd09977f37079f1803520988/datasets/image_folder_triplet.py#L145 we see that this function only creates a new set, it never assigns toself.triplets
.Another idea would be to change the semantics of
generate_triplets
to modify the underlying instance (or create a helperregenerate_triplets
for this purpose).