SRDC-CVPR2020 icon indicating copy to clipboard operation
SRDC-CVPR2020 copied to clipboard

questions of code details

Open dengwanxia1991 opened this issue 4 years ago • 2 comments

Thanks for sharing the code. I have a question. In the TarDisClusterLoss, why is the true label of the target used in the 141 line?

dengwanxia1991 avatar Sep 17 '20 03:09 dengwanxia1991

Hello, glad to hear from you. For your problem, note that the target domain label was pseudo-labeled by K-means clustering in line 145 in main.py. Please check the corresponding function in trainer.py. We do this mainly for initialization at the first epoch and we set all target labels to -1 in line 115 to make sure no use of ground truth target labels.

huitangtang avatar Sep 17 '20 06:09 huitangtang

Hello, glad to hear from you. For your problem, note that the target domain label was pseudo-labeled by K-means clustering in line 145 in main.py. Please check the corresponding function in trainer.py. We do this mainly for initialization at the first epoch and we set all target labels to -1 in line 115 to make sure no use of ground truth target labels.

Thanks for the reply and solving my question.

dengwanxia1991 avatar Sep 17 '20 09:09 dengwanxia1991