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

Test error on SpatialPyramidPooling and fail on SpatialSameResponseNormalization #33

Open
lim0606 opened this issue Apr 5, 2016 · 3 comments

Comments

@lim0606
Copy link

lim0606 commented Apr 5, 2016

Hi, this is Jaehyun Lim.

I installed the recent version of inn (4c2dc1c), and I tried to run test/test_jacobian.lua.

I got following messages;

1/4 ROIPooling .......................................................... [PASS]
2/4 SpatialPyramidPooling ............................................... [ERROR]
3/4 SpatialStochasticPooling ............................................ [PASS]
4/4 SpatialSameResponseNormalization .................................... [FAIL]
Completed 11 asserts in 4 tests with 1 failure and 1 error
--------------------------------------------------------------------------------
SpatialPyramidPooling
 Function call failed
...hyun/github/torch/install/share/lua/5.1/nn/Container.lua:69: 
In 1 module of inn.SpatialPyramidPooling:
In 3 module of nn.Sequential:
...yun/github/torch/install/share/lua/5.1/nn/Contiguous.lua:13: attempt to index local 'gradOutput' (a nil value)
stack traceback:
        ...yun/github/torch/install/share/lua/5.1/nn/Contiguous.lua:13: in function <...yun/github/torch/install/share/lua/5.1/nn/Contiguous.lua:12>
        [C]: in function 'xpcall'
        ...hyun/github/torch/install/share/lua/5.1/nn/Container.lua:65: in function 'rethrowErrors'
        ...yun/github/torch/install/share/lua/5.1/nn/Sequential.lua:55: in function <...yun/github/torch/install/share/lua/5.1/nn/Sequential.lua:50>
        [C]: in function 'xpcall'
        ...hyun/github/torch/install/share/lua/5.1/nn/Container.lua:65: in function 'rethrowErrors'
        ...jaehyun/github/torch/install/share/lua/5.1/nn/Concat.lua:37: in function 'updateGradInput'
        ...ehyun/github/torch/install/share/lua/5.1/nn/Jacobian.lua:21: in function 'backward'
        ...ehyun/github/torch/install/share/lua/5.1/nn/Jacobian.lua:233: in function 'testJacobian'
        test_jacobian.lua:62: in function <test_jacobian.lua:48>
        [C]: in function 'xpcall'
        ...hyun/github/torch/install/share/lua/5.1/torch/Tester.lua:476: in function '_pcall'
        ...hyun/github/torch/install/share/lua/5.1/torch/Tester.lua:436: in function '_run'
        ...hyun/github/torch/install/share/lua/5.1/torch/Tester.lua:354: in function 'run'
        test_jacobian.lua:157: in main chunk
        [C]: in function 'dofile'
        ...thub/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: at 0x00406670

WARNING: If you see a stack trace below, it doesn't point to the place where this error occured. Please use only the one above.
stack traceback:
        [C]: in function 'error'
        ...hyun/github/torch/install/share/lua/5.1/nn/Container.lua:69: in function 'rethrowErrors'
        ...jaehyun/github/torch/install/share/lua/5.1/nn/Concat.lua:37: in function 'updateGradInput'
        ...ehyun/github/torch/install/share/lua/5.1/nn/Jacobian.lua:21: in function 'backward'
        ...ehyun/github/torch/install/share/lua/5.1/nn/Jacobian.lua:233: in function 'testJacobian'
        test_jacobian.lua:62: in function <test_jacobian.lua:48>
        [C]: in function 'xpcall'
        ...hyun/github/torch/install/share/lua/5.1/torch/Tester.lua:476: in function '_pcall'
        ...hyun/github/torch/install/share/lua/5.1/torch/Tester.lua:436: in function '_run'
        ...hyun/github/torch/install/share/lua/5.1/torch/Tester.lua:354: in function 'run'
        test_jacobian.lua:157: in main chunk
        [C]: in function 'dofile'
        ...thub/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: at 0x00406670

--------------------------------------------------------------------------------
SpatialSameResponseNormalization
error on state 
LT failed: nan >= 0.001
stack traceback:
        test_jacobian.lua:91: in function <test_jacobian.lua:82>
--------------------------------------------------------------------------------
SpatialSameResponseNormalization
error on state (Batch) 
LT failed: nan >= 0.001
stack traceback:
        test_jacobian.lua:99: in function <test_jacobian.lua:82>
--------------------------------------------------------------------------------
/home/jaehyun/github/torch/install/bin/luajit: ...hyun/github/torch/install/share/lua/5.1/torch/Tester.lua:362: An error was found while running tests!
stack traceback:
        [C]: in function 'assert'
        ...hyun/github/torch/install/share/lua/5.1/torch/Tester.lua:362: in function 'run'
        test_jacobian.lua:157: in main chunk
        [C]: in function 'dofile'
        ...thub/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: at 0x00406670

Is there anyone who can help me to solve this problem? :)

Thanks

Best regards,

Jaehyun

@szagoruyko
Copy link
Owner

hi, can't reproduce the error in SPP. The error in same map normalization is due to its high nonlinearity. Both modules are just containers for nn modules and safe to use

@lim0606
Copy link
Author

lim0606 commented Apr 5, 2016

@szagoruyko

Thank you for response!

Then, it might be the problem of the configuration of torch in my system.

I will figure it out. Thank you again :)

Best regards,

Jaehyun

@lim0606
Copy link
Author

lim0606 commented Apr 7, 2016

I reinstalled torch and solved the error in SPP.

However, the error for SpatialSameResponseNormalization is not resolved. I will just leave in this way for a while.

Anyway, thank you for your comment!

Running 4 tests
1/4 ROIPooling .......................................................... [PASS]
2/4 SpatialPyramidPooling ............................................... [PASS]
3/4 SpatialStochasticPooling ............................................ [PASS]
4/4 SpatialSameResponseNormalization .................................... [FAIL]
Completed 17 asserts in 4 tests with 1 failure and 0 errors
--------------------------------------------------------------------------------
SpatialSameResponseNormalization
error on state 
LT failed: nan >= 0.001
stack traceback:
        test_jacobian.lua:91: in function <test_jacobian.lua:82>
--------------------------------------------------------------------------------
SpatialSameResponseNormalization
error on state (Batch) 
LT failed: nan >= 0.001
stack traceback:
        test_jacobian.lua:99: in function <test_jacobian.lua:82>
--------------------------------------------------------------------------------
/home/jaehyun/github/torch/install/bin/luajit: ...hyun/github/torch/install/share/lua/5.1/torch/Tester.lua:360: An error was found while running tests!
stack traceback:
        [C]: in function 'assert'
        ...hyun/github/torch/install/share/lua/5.1/torch/Tester.lua:360: in function 'run'
        test_jacobian.lua:157: in main chunk
        [C]: in function 'dofile'
        ...thub/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: at 0x00406670

Best regards,

Jaehyun

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