Skip to content

Edit Anchor Boxes sizes in model config #220

Answered by rwightman
FraPochetti asked this question in Q&A
Discussion options

You must be logged in to vote

The box sizes are computed relative to the feature map sizes w/ the aspect ratios and anchor scale config. I based that on code from the TF impl, which shares most of the impl with Tensorflow Retinanet models, although some variations of that code do alow explicitly setting the sizes...

It's a non-trivial amount of code to wrap ones head around, and have a TODO to simplify and maybe switch to the torchvision approach but it's well off of current priorities and projects....

I think you can tune it fairly easily for datasets where the scales of the objects differ from a typical coco by tuning the anchor scale (which can be specified as one scalar or a sequence per feature level.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FraPochetti
Comment options

Answer selected by FraPochetti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants