SoftTeacher
SoftTeacher copied to clipboard
why unsup_loss is 0.000
It is 0 at the beginning as no pseudo box is generated. However, it should be greater than 0 after several iterations.
box About how many iterations will there be greater than 0
另外,我感觉是不是加载一个预训练模型会加速模型的收敛?感觉很多轮依然是0
box About how many iterations will there be greater than 0
If you are using ms coco, it should increase quickly and be greater than 0 after about 1000~2000 iterations. For other datasets, I am not sure.
另外,我感觉是不是加载一个预训练模型会加速模型的收敛?感觉很多轮依然是0
Yes. adding load_from='{YOUR_MODEL_PATH}'
in your config file should be ok.
谢谢,我尝试一下
Noticed same problem while training on custom dataset even after large number of iterations. Have you figured what was the issue?
Maybe you can try to train a supervised model to see the supervised performance and have an impression of how the predictions look like.
Same I get 0 unsup_loss bbox even though I used load_from
with pretrained model. Sometimes it starts at a small value but eventually goes to zero and during evaluation there are no boxes. I had to set by_prob
to zero false according to #62 to fix the assert len(indices) == len(self)
.
I am not sure what the problem is. Could you try to train a supervised model and test it on your images to see whether the dataset and model are ready?
Yes I trained a model using the a config in config/baseline/ and it seems to do well:
Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=1000 ] = 0.938
Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=1000 ] = 0.843
Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.610
Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.683
Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.797
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.737
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=300 ] = 0.737
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=1000 ] = 0.737
Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.658
Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.732
Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.835
When I try with soft teacher it is all zero (i.e. no boxes)
Is it possible for you to upload the log and the config file here?
Yes I trained a model using the a config in config/baseline/ and it seems to do well:
Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=1000 ] = 0.938 Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=1000 ] = 0.843 Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.610 Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.683 Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.797 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.737 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=300 ] = 0.737 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=1000 ] = 0.737 Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.658 Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.732 Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.835
When I try with soft teacher it is all zero (i.e. no boxes)
do you solve this problem?I've been stuck with the same problem for days.
Yes I trained a model using the a config in config/baseline/ and it seems to do well:
Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=1000 ] = 0.938 Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=1000 ] = 0.843 Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.610 Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.683 Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.797 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.737 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=300 ] = 0.737 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=1000 ] = 0.737 Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.658 Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.732 Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.835
When I try with soft teacher it is all zero (i.e. no boxes)
do you solve this problem?
I also encountered a similar problem, and I find that the bbox score of the teacher model will soon decrease to below the pseudo label threshold within a few iterations, which is strange.
I also encountered a similar problem, and I find that the bbox score of the teacher model will soon decrease to below the pseudo label threshold within a few iterations, which is strange.
Maybe it's because the threshold is set too high. The loss is zero because there's no pseudo label. For different datasets and models, the pseudo label thresholds are different.