facebookresearch / adaptive_teacher

This repo provides the source code for "Cross-Domain Adaptive Teacher for Object Detection".
Other
183 stars 36 forks source link

Poor performance with registered Coco annotations #18

Open apexx77 opened 2 years ago

apexx77 commented 2 years ago

Need clarification whether Adaptive Teacher is unsupervised or not.

https://github.com/facebookresearch/adaptive_teacher/blob/cba3c59cadfc9f1a3a676a82bf63d76579ab552b/adapteacher/engine/trainer.py#L646-L647 Here are you using the labels of Target dataset? @yujheli

yujheli commented 2 years ago

@apexx77 This line of code is for keeping the weights as default (1) for supervised loss in the source domain. It would be great to have you read through the codes starting from till the end of the function: https://github.com/facebookresearch/adaptive_teacher/blob/main/adapteacher/engine/trainer.py#L495

Then you will better understand how we process the labels for the target (removing labels in target and replacing them with pseudo labels) and train the model with source labels. Thanks!

apexx77 commented 2 years ago

Scenario -1

Scenario-2

@yujheli

yujheli commented 2 years ago

Could you check if you COCO annotations are well-created? Also check if you use the correct register function for detectron2 such as setup correct meta data or so.

apexx77 commented 2 years ago

Yes, I did bbox visualisation and trained supervised models in detectron2 as well. But getting low AP after supervised iterations in Adaptive Teacher

@yujheli