krumo / Detectron-DA-Faster-RCNN

Domain Adaptive Faster R-CNN in Detectron
Apache License 2.0
50 stars 14 forks source link

Why are the annotations given for target domain dataset for training? #16

Closed sangeetha-95 closed 3 years ago

sangeetha-95 commented 3 years ago

I understand that while training both source and target domain datasets are provided. In the paper it is mentioned that only annotations for source domain is required. But in the experiments, both annotations files are requested while training. Can you explain why?

krumo commented 3 years ago

Hi, thanks for your interest!

As Detectron is designed for supervised learning, it requires to pass an annotation file for each dataset for training and testing. When I implemented the method, I didn' intend to make a huge change to the codebase. Thus, I follow the Detectron's way to create an annotation file with pseudo bboxes and pseudo masks for target domain dataset. You could check convert_cityscapes_to_unlabeled_caronly_coco.py to see how we generate pseudo bboxes and masks.