Skip to content
New issue

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

代码中问题 #12

Open
purse1996 opened this issue Oct 26, 2019 · 1 comment
Open

代码中问题 #12

purse1996 opened this issue Oct 26, 2019 · 1 comment

Comments

@purse1996
Copy link

您好 我们想在您的基础上训练一个分类网络,但细节的地方有两个位置不太理解,能不能麻烦解释一下,万分感谢。
第一个是results为什么后面还要torch.cat一个torch.ones_like
results = torch.cat([torch.sigmoid(results), torch.ones_like(results[:, :1]).float().cuda() * 0.5], 1)
第二个是这里为什么要乘以16
out = self.fc(global_feat) * 16

@earhian
Copy link
Owner

earhian commented Jun 24, 2020

因为我对特征做了一个归一化,值都会比较小,同时也不想让参数的范围过大,所以就乘了一个系数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants