Closed tea321000 closed 3 years ago
Hi, It's just my implementation, but in my experiments, I found that our implementation can achieve better results, you can implement or adapt the official implementation for your own tasks. Best, Xiangde.
Got it. Thanks for your quick reply.
Hi Xiangde,
I checked the official implementation of mean teacher and found that consistency loss is calculated on the samples in the entire batch, not just unlabeled samples.
cons_logit
is assigned fromlogit1
orlogit2
according to different settings ofargs.logit_distance_cost
, and they are calculated through different fully connected layers to loosen the link between the classification prediction and the consistency cost.I was wondering if my understanding of the code is biased, or if there is a bug in the implementation.
Sincerely, tea