Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what's the difference between class-aware and agnostic? #107

Open
scut-salmon opened this issue Mar 1, 2018 · 6 comments
Open

what's the difference between class-aware and agnostic? #107

scut-salmon opened this issue Mar 1, 2018 · 6 comments

Comments

@scut-salmon
Copy link

scut-salmon commented Mar 1, 2018

Hello,
I found that the classification is also work for agnostic method, so what's the difference between class-aware and agnostic? Are they produce the same mAP result?
Thanks for your time.

@SunskyF
Copy link

SunskyF commented Mar 2, 2018

agnostic have 8 bbox_pred num_output(for foreground and background). It may have some difference in mAP. agnostic can be faster and use less memory

@xiaohu2015
Copy link

Hi, the background part is not trained, why not use only 4 bbox_pred num_output

@SunskyF
Copy link

SunskyF commented Mar 7, 2018

@xiaohu2015 I think that background part is used in training. In proposal_target_layer.py,

bg_inds = np.where((max_overlaps < cfg.TRAIN.BG_THRESH_HI) &
, we use it to get bbox_inside_weights which used in loss_bbox

@xiaohu2015
Copy link

xiaohu2015 commented Mar 8, 2018

@SunskyF The code you presented is to select the RoI of negative (bg), usually, we only train the class score for RoI of bg, but not train the locations. Hence, I don't understand why use 8 (K^2) bbox_pred num_output. In original paper, it is said that only 4(k^2) outputs are needed

@SunskyF
Copy link

SunskyF commented Mar 10, 2018

@xiaohu2015 I think u are right. The bg roi are not used in training bbox. 4(k^2) is enough. However, I try that training with 4 num_output in pascal_voc. It gets 74.3 mAP, compare with 76.2 mAP which has 8 num_output. Maybe my modify is wrong or random?

@xiaohu2015
Copy link

@SunskyF Maybe some other reasons, but I still think 4 is enough. The author of this git can answer our question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants