chenjoya / sampling-free

IEEE TIP: Is heuristic sampling necessary in training deep object detectors? Try sampling-free object detectors!
293 stars 25 forks source link

for two-stage detector, bias init only apply in rpn? #5

Closed hust-kevin closed 4 years ago

hust-kevin commented 4 years ago

❓ Questions and Help

for two-stage detector, bias init only apply in rpn while bbox head not need?

chenjoya commented 4 years ago

Yeah, it's a good question!

In fact, there is an extreme fg-bg imbalance in RPN, so the optimal bias initialization should be adopted.

However, we find that in RoI-stage, the imbalance has been greatly alleviated, and it is no problem to use only guided loss. This has been illustrated in our appendix.

Thank you for your attention to our work!

hust-kevin commented 4 years ago

one more question, in sampling_free.py, to get the score_thr, we need know the prior, for two stage, how to compute prior in roi-stage, in AdaptiveInitializer only support one-stage and rpn?

chenjoya commented 4 years ago

Here we empirically set the threshold as 0.001 for roi-stage.

The pos:neg ≈ 1:10 in that stage.

For softmax classifier the score_thr could be computed by prior / num_classes = 0.1 / 80 ≈ 0.001.

But there is no obvious difference for the enough lower score_thr value while computing AP.