tjddus9597 / Proxy-Anchor-CVPR2020

Official PyTorch Implementation of Proxy Anchor Loss for Deep Metric Learning, CVPR 2020
MIT License
314 stars 60 forks source link

fix redundant path join #24

Closed jdhao closed 2 years ago

jdhao commented 2 years ago

each element in ImageFolder.imgs contains two elements, first is the full path to an image, second is the corresponding label. So there is no need to use os.path.join again to get full path of this image.

tjddus9597 commented 2 years ago

I checked the code you mentioned, and 'os.path.join' seems redundant. I will merge the request you suggested. Thank you very much for your interest in Proxy-Anchor loss and contribution to our repository!! :D