inconsistant anchor reference (may be the cause of the lower accuracy than faster-rcnn)
See original GitHub issueHi,
Please notice you have an inconsistant reference to the order of the anchors (lines 86 and 79)
lets say k is the number of anchors
than in line 79 you are doing softmax after reshape which make anchors: 0:k-1 assosiated with proposal = false k:2k-1 assosiated with proposal = True.
and in line 86 your anchors are arranged in a different way: i mod 2 == 0 associated with proposal = false i mod 2 == 1 associated with proposal = True.
I propose to reshape the score in this way to be consistant. (You will also need to change few other things in proposalLayer for it to work)
rpn_cls_scores.append(rpn_cls_score_reshape.permute(0, 2, 3, 1).contiguous().view(batch_size, -1, 2))
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:22 (3 by maintainers)
Top Results From Across the Web
Faster R-CNN: Towards Real-Time Object Detection with ...
Even such a large stride provides good results, though accuracy may be further improved with a smaller stride. For anchors, we use 3...
Read more >Anchoring Faster RCNN - Cross Validated - Stack Exchange
For each anchor then the RPN predicts the probability of containing an object in general and four correction coordinates to move and resize ......
Read more >A Convolutional Neural Network Combining Discriminative ...
It can be seen from Figure 10a that the proposed method and variants in this paper are better than Faster RCNN. After the...
Read more >Improved Faster RCNN Based on Feature Amplification ...
The detection accuracy of DFPN with the horizontal anchors are comparable with that of FPN with the horizontal anchors. The same problem exists...
Read more >Faster R-CNN: Towards Real-Time Object Detection with ...
simple alternating optimization, RPN and Fast R-CNN can be trained to share ... R-CNNs produce detection accuracy better than the strong baseline of ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, I see here that the indices of the scores/probs must exactly match the indices of the bbox_deltas. I’ve changed the anchor generation minimally such that the enumeration order is (Width x Height x Anchor):
So maybe we could match the order by doing something like:
This would have an enumeration order of (Width x Height x Anchor)