-
Notifications
You must be signed in to change notification settings - Fork 2.5k
The detection accuracy of the R-50-FPN Faster R-CNN is lower than your report, confusing... #672
Comments
@chenjoya this is probably due to this part maskrcnn-benchmark/maskrcnn_benchmark/modeling/rpn/inference.py Lines 154 to 170 in c5c4d52
In fact, the behavior is not really exactly the same if you have a batch size of 2 per GPU or a batch size of 8 per GPU. This a bug in behavior in Detectron, that has been kept in In order to obtain the same (or similar) results as if you were running on 8 GPUs with batch size of 2 on each GPU, I believe you should increase
What is probably happening is that the output of your RPN, which is fed to the classification head afterwards, is seeing 4x less examples due to that. Can you try changing
If this indeed works (which I expect will be the case), can you maybe send a PR improving a bit the documentation in this part? Thanks! |
Thanks for your reply. Follow your advise, I change the number of proposals after NMS to 8k:
The training will last about 24 hours. I will reply here and report the results after training. |
Hi @fmassa , You are so great !!!
Moreover, I also implement maskrcnn-benchmark/maskrcnn_benchmark/modeling/rpn/inference.py Lines 154 to 170 in c5c4d52
New version:
It also achieves 36.8 AP:
Please help me check whether this implementation is correct and efficient, thank you fmassa ! ^ ^ |
Yes, this looks like it's right. Basically, there should not be any difference in behaviour during training and testing Can you send a PR improving the README in the single-GPU case? |
@chenjoya @fmassa thanks |
@fmassa |
Hi, Do I still need to consider this settings if I use naive faster rcnn without fpn? |
❓ Questions and Help
Hi @fmassa , thanks for your elegant implementation.
But it is confusing that the detection AP is only 32.8 when I re-train R-50-FPN Faster R-CNN, which should be 36.8 in your report:https://github.com/facebookresearch/maskrcnn-benchmark/blob/master/MODEL_ZOO.md
The config is not changed, but I only have 2 V100 GPUS, therefore 8 images are on each device.
Other information:
Thanks for your attention! ^^
The text was updated successfully, but these errors were encountered: