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
你好,想请教一下 ` elif supervision == 'semi':
outs = net(data) output, rec = outs #target = target - 1 loss = criterion[0](output, target) + net.aux_loss_weight * criterion[1](rec, data)`
这里返回的rec对应的是模型中分类前一步结果送入nn.Linear(self.features_sizes, input_channels)中得到,这里对于模型 criterion = (nn.CrossEntropyLoss(weight=kwargs['weights']), lambda rec, data: F.mse_loss(rec, data[:,:,:,patch_size//2,patch_size//2].squeeze()))这段有什么作用?
criterion = (nn.CrossEntropyLoss(weight=kwargs['weights']), lambda rec, data: F.mse_loss(rec, data[:,:,:,patch_size//2,patch_size//2].squeeze()))
The text was updated successfully, but these errors were encountered:
我也想知道
Sorry, something went wrong.
No branches or pull requests
你好,想请教一下
` elif supervision == 'semi':
这里返回的rec对应的是模型中分类前一步结果送入nn.Linear(self.features_sizes, input_channels)中得到,这里对于模型
criterion = (nn.CrossEntropyLoss(weight=kwargs['weights']), lambda rec, data: F.mse_loss(rec, data[:,:,:,patch_size//2,patch_size//2].squeeze()))
这段有什么作用?The text was updated successfully, but these errors were encountered: