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

About the Cifar10 case #2

Closed
airjimmy89 opened this issue Apr 9, 2016 · 2 comments
Closed

About the Cifar10 case #2

airjimmy89 opened this issue Apr 9, 2016 · 2 comments

Comments

@airjimmy89
Copy link

Hi,

I am trying to run the CIFAR-10 case, but it gives me the following error:

/home/xx/Projects/torch/install/bin/luajit: ...e/xx/Projects/torch/install/share/lua/5.1/trepl/init.lua:384: ...ojects/torch/install/share/lua/5.1/dp/preprocess/zca.lua:44: invalid arguments: DoubleTensor FloatTensor
expected arguments: DoubleTensor [DoubleTensor] double | DoubleTensor [DoubleTensor] [double] DoubleTensor
stack traceback:
[C]: in function 'error'
...e/xx/Projects/torch/install/share/lua/5.1/trepl/init.lua:384: in function 'require'
Main_BinaryNet_Cifar10.lua:84: in main chunk
[C]: in function 'dofile'
...ects/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670

When I run the MNIST case, there is no such problem.

Does anyone know how to solve this problem? Thanks in advance!

@itayhubara
Copy link
Owner

Hi,

We used zca whitening to preprocess Cifar10 dataset. It seems that you have some kind of a problem with it. Try deleting line 70 at Main_BinaryNet_Cifar10.lua ("torch.setdefaulttensortype('torch.FloatTensor'")

Best
Itay

@airjimmy89
Copy link
Author

Thanks! @itayhubara It works now :D

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