sfd.pytorch icon indicating copy to clipboard operation
sfd.pytorch copied to clipboard

Change Anchor Boxes Aspect Ratio

Open ahkarami opened this issue 5 years ago • 5 comments

Dear @louis-she, Thank you for your nice work. As Shifeng Zhang has mentioned in his paper: Our anchors are 1:1 aspect ratio (_i.e.,_ square anchor), the aspect ratios of all anchor boxes are 1:1. However, if one wants to change the aspect ratios of anchor boxes for example, to 1:1.4 (width:height) the network structure must be changed or just the training code & decoding strategy (i.e., utils.py or anchor.py) must be changed? Would you please explain how one can change the aspect ratios of anchor boxes?

ahkarami avatar Jul 09 '18 07:07 ahkarami

Currently the aspect ratio of anchors is hard code to 1:1. But I already have plans to support other object detection(not only for "square" faces) so the aspect ratio of anchors will be necessary. Since then you will be able to change the aspect ratio of anchors. Thanks.

louis-she avatar Jul 09 '18 07:07 louis-she

This issue should be opened until the ANCHOR_RATIO been added to config.py

louis-she avatar Jul 09 '18 07:07 louis-she

@louis-she, Thank you for your time & response.

ahkarami avatar Jul 09 '18 08:07 ahkarami

Dear @louis-she, Do you have any plan for adding ANCHOR_RATIO in near future?

ahkarami avatar Jul 22 '18 06:07 ahkarami

I'm now working on improving the behavior of the model ( mainly about the mAP ). If you are interested in this, a PR is welcomed.

louis-she avatar Jul 22 '18 07:07 louis-she