Solacex / Domain-Consensus-Clustering

[CVPR2021] Domain Consensus Clustering for Universal Domain Adaptation

Home Page:https://openaccess.thecvf.com/content/CVPR2021/papers/Li_Domain_Consensus_Clustering_for_Universal_Domain_Adaptation_CVPR_2021_paper.pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I think the use of 't_label' is forbidden for unsupervised learning tasks when training.

chihuadelishu opened this issue · comments

Why do you use the labels of target domain (i.e. t_label) to calculate loss during training models?I think the use of 't_label' is forbidden for unsupervised learning tasks.
PS: .\trainer\dcc1_trainer.py:
class Trainer(BaseTrainer):
def iter(self, i_iter):
......
en_loss = self.memory.forward(t_feat, t_label, self.config.t, False)

Hello,
We did not use the ground truth of target samples, the t_label you mentioned is the pseudo label that obtained through clustering. For details, you can refer to

def init_target_dataset(config, plabel_dict, tgt_class_set, length=None, uk_list=None, binary_label=None):

Thanks for your prompt reply. It is my negligence. :)