Closed jiajinuiuc closed 4 years ago
which line?
Ah look carefully. I haven't used the target labels.
label_tgt
is just the discriminator label which is all ones
for training the encoder or all zeros
for training the discriminator.
Sorry, this line: fit_center( src_model, tgt_model, src_trainloader, tgt_trainloader, tgt_opt, epochs=1) And in your paper: You are using target label to regularize your embedded target feature distribution. Please correct me if I am wrong.
That's a typo yah. In Equation 4, you will see that the labels are not used, and in the code https://github.com/IssamLaradji/M-ADDA/blob/master/losses.py#L27-L57, the labels are not used as well.
I am closing the issue as there is no cheating and the paper is doing proper unsupervised domain adaptation.
You are solving unsupervised domain adaptation, however, I find out you use target label in your training procedure. That is cheating !!