We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logits_m = torch.cat([logits_v, logits_i], 0).float() with torch.no_grad(): self.infrared_classifier_.weight.data = self.infrared_classifier_.weight.data * (1 - self.update_rate) + self.infrared_classifier.weight.data * self.update_rate self.visible_classifier_.weight.data = self.visible_classifier_.weight.data * (1 - self.update_rate) + self.visible_classifier.weight.data * self.update_rate
logits_v_ = self.infrared_classifier_(feat[sub == 0]) logits_i_ = self.visible_classifier_(feat[sub == 1]) logits_m_ = torch.cat([logits_v_, logits_i_], 0).float() loss_id += self.ce_loss_fn(logits_m, logits_m_.softmax(dim=1))
作者,你好,请问一下这部分代码在模型里有什么作用?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
logits_m = torch.cat([logits_v, logits_i], 0).float()
with torch.no_grad():
self.infrared_classifier_.weight.data = self.infrared_classifier_.weight.data * (1 - self.update_rate)
+ self.infrared_classifier.weight.data * self.update_rate
self.visible_classifier_.weight.data = self.visible_classifier_.weight.data * (1 - self.update_rate)
+ self.visible_classifier.weight.data * self.update_rate
作者,你好,请问一下这部分代码在模型里有什么作用?
The text was updated successfully, but these errors were encountered: