Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using your ImageNet21K pretrained ResNet50 model in Detectron2, performance degrades #57

Open
miznchimaki opened this issue Feb 19, 2022 · 1 comment

Comments

@miznchimaki
Copy link

Thanks for your great work!
I have a question when using your ResNet50 model as pretrained weights of Faster R-CNN in Detectron2: your 21K pretrained weights gives 8 point lower mAP than MSRA 1K pretrained one. Before I loaded your 21K pretrained weights into the Faster R-CNN in Detectron2, I noticed that your ResNet50 was trained by input whose value is between 0 and 1 (this is achieved by dividing 255 in pixel-wise manner in your code), but the input in Detectron2 was normalized by substractig pixel mean value and dividing std value in ImageNet, so I set the pixel mean value to 0 and std value to 255 in Detectron2. Although I have done above steps, performance of Faster R-CNN based on your 21K pretrained model still lays far behind MSRA's 1K pretrained one. So I want to know is there some problems I ignored?
Sincerely waiting your response!

@miznchimaki miznchimaki changed the title When using your ResNet50 pretrained model on ImageNet21K in Dtectron2, performance degrades When using your ImageNet21K pretrained ResNet50 model in Dtectron2, performance degrades Feb 19, 2022
@miznchimaki miznchimaki changed the title When using your ImageNet21K pretrained ResNet50 model in Dtectron2, performance degrades When using your ImageNet21K pretrained ResNet50 model in Detectron2, performance degrades Feb 19, 2022
@zhanghang1989
Copy link

Not sure if you've already solved the issue. Detectron2 ResNet is caffe style, which is slightly different architecture from the TorchVision version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants