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

Numerical gradient doesn't match computed gradient #13

Open
briancheung opened this issue May 5, 2014 · 3 comments
Open

Numerical gradient doesn't match computed gradient #13

briancheung opened this issue May 5, 2014 · 3 comments
Labels

Comments

@briancheung
Copy link
Contributor

figure_1

This is an image of the difference between the numerical and the computed gradient. There seems to be a bug. Strangely, the differences are specific to the bits that are turned on in the image.

Either the scale is all wrong for my epsilon value in the gradient check or the test and/or ExTrain is broken.

@briancheung briancheung added the bug label May 5, 2014
@JesseLivezey
Copy link
Member

Interesting, Maybe there is still a bug. How small was you step?

@briancheung
Copy link
Contributor Author

epsilon was 1e-4. The gradients agree at areas of the image that have no 'on' pixel values.

Maybe we should be calculating the expected flow and then taking the derivative of that rather than calculating the expected derivative of the flow.

@JesseLivezey
Copy link
Member

Maybe we should be calculating the expected flow and then taking the
derivative

That is what we should be doing, although I'm not sure they aren't the same
thing... I'm heading into campus soon.

On Mon, May 5, 2014 at 9:38 AM, Brian Cheung [email protected]:

epsilon was 1e-4. The gradients agree at areas of the image that have no
'on' pixel values.

Maybe we should be calculating the expected flow and then taking the
derivative of that rather than calculating the expected derivative of the
flow.


Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-42208079
.

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

No branches or pull requests

2 participants