-
Notifications
You must be signed in to change notification settings - Fork 35
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
gradient tests for inn.ROIPooling, nnf.ROIPooling; also comparison of their outputs #13
Conversation
…ion we also compare the output of both methods
…ion we also compare the output of both methods
Conflicts: test/test_jacobian.lua
Conflicts: test/test_jacobian.lua
Hi @0wu, Also I liked your subclassing to use the standard jacobian tests. The only small problem is that we can't evaluate the error wrt the bboxes, but I think that's ok. We are aware of the failing It's great that both |
@0wu I'm a bit in a hurry lately, I'll review it this weekend at most. |
I figure out the failing gradient test above, it was because the the added "delta" for finite difference changed the maximum element in the maxpooling function. One quick fix is to generate test input carefully such that the elements in each pool are different enough that their order is preserved even with the added "delta". @fmassa , do you want me re-submit a fixed pull-request for this ? Also, may be I should also test for ROI out of image boundary which is allowed in certain ROIPooling implementation. |
@0wu Sorry for the late reply, things were crazy here with CVPR deadline. Indeed, there is a difference between Regarding resubmitting the pull request with the fixes, I think you can add the new commits here, no need to create a new PR for that. Thanks again ! |
v2 fixes the issue in the backprop, fixed by #17 |
my crude implementation of the Jacobian check for nnf.ROIPooling and inn.ROIPooling.
I made the following not so comfortable choices but not sure if there were any better solutions.
Some observations running test_jacobian.lua