zhmiao / OpenLongTailRecognition-OLTR

Pytorch implementation for "Large-Scale Long-Tailed Recognition in an Open World" (CVPR 2019 ORAL)
BSD 3-Clause "New" or "Revised" License
839 stars 128 forks source link

the use of fc layer #60

Closed cl475143764 closed 3 years ago

cl475143764 commented 4 years ago

thanks for such a great work, but there is a issue for me, when i used the resnet152 as a backbone, it was too large for the centroids,like(1e+8), so the distance between the center and sample feature is too large, finally the net did not converge. could you please give me a help? thanks a lot!

zhmiao commented 4 years ago

Hello @cl475143764 , I am really sorry for the late reply! What do you mean by "too large" ? Is it the dimension or the number of centroids? As the feature dimension for resnet152 is 2048, (128 if using an additional fc layer), it should not be too large. If we are talking about the number of centroids, it should be equal to the number of classes. I don't know how did you get the 1e+8?

zhmiao commented 3 years ago

As it has been over three months, I will close this issue for now. If you have any more questions, you are welcome to reopen it. Thanks.