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

fc9_1 weights is increase with the train iterations from 0.0x to 40.x #53

Open
zhouyongxiu opened this issue Oct 17, 2017 · 1 comment

Comments

@zhouyongxiu
Copy link

zhouyongxiu commented Oct 17, 2017

@luhaofang Hi, when I use the code to train the fc9_1, I find that the fc9_1 weights is increase with the train iterations, after train 40000, it increase from 0.0x to 40.x, do you know what to lead this problem, and how to deal it.

@zhouyongxiu zhouyongxiu changed the title fc9 fc9_1 weights is increase with the train iterations from 0.0x to 40.x Oct 17, 2017
@gombru
Copy link

gombru commented Dec 5, 2017

Hi,
I had a similar problem. Weights increased while the net was learning until at some point I got NaNs. I solved it using a smaller margin.

Though still I haven't analyzed it deeply, I think that the reason is that when the margin is too big compared to the magnitudes of the vectors you are comparing (in my case they were L2 normalized) the net cannot achieve to produce those big distances and weights keep going up.

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