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

Parameter initialization is wrong. #4

Open
ljpadam opened this issue Jun 19, 2019 · 1 comment
Open

Parameter initialization is wrong. #4

ljpadam opened this issue Jun 19, 2019 · 1 comment

Comments

@ljpadam
Copy link

ljpadam commented Jun 19, 2019

In the network.py:

nn.init.constant_(self.pos_conv.bias, 0)
nn.init.constant_(self.reg_conv.bias, -math.log(0.99/0.01))

This causes a large loss at the beginning.

These two lines should be amended as:

nn.init.constant_(self.pos_conv.bias,  -math.log(0.99/0.01))
nn.init.constant_(self.reg_conv.bias, 0)
@lwpyr
Copy link
Owner

lwpyr commented Sep 30, 2019

yes, you are right. But a very interesting thing is the wrong initialization doesn't harm the result, though the loss is large at the beginning. This is a finding in my experiment, which is a little bit wired.

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