Closed JunXieFront closed 2 years ago
Yes, you are right that our implementation is slightly different compared to the original DACS version. Instead of considering a single sample when selecting half of the classes for ClassMix, we consider all classes in a batch. In practice, this means that possibly fewer than half of the classes in a sample are selected for ClassMix. Even though this difference was unintended, it still works well. Therefore, we will keep it in order to provide the source code that is consistent with the results in our paper.
Is classes = torch.unique(labels) should be classes = torch.unique(label)?