Open apexx77 opened 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!
adaptive_teacher/adapteacher/data/datasets/builtin.py
@yujheli
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.
Yes, I did bbox visualisation and trained supervised models in detectron2 as well. But getting low AP after supervised iterations in Adaptive Teacher
@yujheli
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