facebookresearch / unbiased-teacher

PyTorch code for ICLR 2021 paper Unbiased Teacher for Semi-Supervised Object Detection
https://arxiv.org/abs/2102.09480
MIT License
409 stars 84 forks source link

Loss rise problem #56

Open Jackson-zhao97 opened 2 years ago

Jackson-zhao97 commented 2 years ago

I use the voc data set for training. First of all, I hope that the teacher can get the pseudo label as accurate as possible at the beginning, so I have done enough training to make the model converge on the labeled data. However, when I started training in the semi-supervised part, I found that the loss continued to rise, and the predicted mAP did not change. Is it because the pseudo label introduces more noise?

Another problem is that in the pseudo label, there are often cases where the prediction is empty. In this case, my processing is to let the classification label be 0 (background class), and the bbox coordinates are [0, 0, 0, 0]. Is this feasible? Or is there another way?

I reproduced it in mm-detection, so some questions appeared. I hope to get your answers.

Jackson-zhao97 commented 2 years ago

I found that setting bbox to [0,0,0,0] will cause the loss to be nan. But how can I deal with this kind of problem? If there is no bbox with a score greater than the threshold, how should the loss be calculated?

OliviaZhang1996 commented 2 years ago

Maybe you can remove the unlabelled images with empty predictions. And just use the unlabelled data with predictions.