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

Why doing criterion.sizeAverage = true makes everything not work? #11

Closed
Amir-Arsalan opened this issue Jun 3, 2016 · 3 comments
Closed

Comments

@Amir-Arsalan
Copy link

Amir-Arsalan commented Jun 3, 2016

After doing criterion.sizeAverage = true I realized the KLD criterion gives an output of ~0 after epoch 2-3 constantly and the reconstructions are identical and do not make sense at all. I tried with very very small learning rates and also bigger learning rates and I still face the same issue. Why is that?

@Amir-Arsalan Amir-Arsalan changed the title Why doing criterion.averageSize = true makes everything not work? Why doing criterion.sizeAverage = true makes everything not work? Jun 3, 2016
@y0ast
Copy link
Owner

y0ast commented Jun 6, 2016

I recommend you check what criterion.sizeAverage does in the original Torch7 code. From that you can infer why the reconstructions are identical. Note that these github issues are for technical problems, not for personal help.

@y0ast y0ast closed this as completed Jun 6, 2016
@Amir-Arsalan
Copy link
Author

@y0ast Sorry maybe I did not ask my question very well. I knew what the sizeAverage does, but what I wanted to know was why averaging the pixel-wise errors hinders learning?

@y0ast
Copy link
Owner

y0ast commented Jun 10, 2016

You scale the reconstruction term of the objective down massively, which means the KLD term will overwhelm the objective. This leads to the network mainly optimizing the KLD and it going to zero, the reconstruction will be bad.

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