Replies: 2 comments 1 reply
-
Maybe you could get more answers if you opened an issue of type "General Questions"? It sounds like an interesting question! |
Beta Was this translation helpful? Give feedback.
0 replies
-
You should change the FPN outputs too. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've achieved some good detection performance using the Cascade RCNN model. However, I'd like to try tuning the anchors to restrict the range of scales that are considered in order to reflect the fairly tight range of object sizes I'm interested in.
Default anchor settings in config work fine:
anchor_generator=dict(
type='AnchorGenerator',
scales=[8],
ratios=[0.5, 1.0, 2.0],
strides=[4, 8, 16, 32, 64]),
However, if I try, for example:
anchor_generator=dict(
type='AnchorGenerator',
scales=[8],
ratios=[0.5, 1.0, 2.0],
strides=[8, 16, 32]), #this should be more representative of the range of object scales
This causes an AssertionError:
File "/mmdetection/mmdet/models/dense_heads/anchor_head.py", line 448, in loss
assert len(featmap_sizes) == self.anchor_generator.num_levels
Does anyone know if it's possible to change the anchors like this, and if so what else needs to be done? I haven't been able to find any documentation or previous discussions that address this.
Many thanks
Phil
Beta Was this translation helpful? Give feedback.
All reactions