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

Error tutorials while preprocessing data: normalize all three channels locally #22

Open
vvaquero opened this issue Jun 13, 2015 · 0 comments

Comments

@vvaquero
Copy link

Hi!, first of all saying that I'm new using torch and itorch, but I have been trying a couple of afternoons to make this tutorial work and I am still getting an error.
In tutorial 2 part 1, when loading the data I have no problems doing it from console...but when I try to do it from the itorch notebook to visualize the data, I am getting the following error:

Out[1]:

==> processing options
==> downloading dataset
==> using reduced training data, for fast experiments
==> loading dataset

Out[1]:

==> preprocessing data

Out[1]:

==> preprocessing data: colorspace RGB -> YUV

Out[1]:

==> preprocessing data: normalize each feature (channel) globally

Out[1]:

==> preprocessing data: normalize all three channels locally

expected arguments: [Generator] [double] [double] | DoubleTensor [Generator] [double] [double]
stack traceback:
[C]: at 0x7fcf1f980750
[C]: in function 'uniform'
...torch/install/share/lua/5.1/nn/SpatialConvolutionMap.lua:103: in function 'reset'
...torch/install/share/lua/5.1/nn/SpatialConvolutionMap.lua:73: in function '__init'
/home/vvaq/torch/install/share/lua/5.1/torch/init.lua:51: in function </home/vvaq/torch/install/share/lua/5.1/torch/init.lua:47>
[C]: in function 'SpatialConvolutionMap'
...all/share/lua/5.1/nn/SpatialSubtractiveNormalization.lua:35: in function '__init'
/home/vvaq/torch/install/share/lua/5.1/torch/init.lua:51: in function </home/vvaq/torch/install/share/lua/5.1/torch/init.lua:47>
[C]: in function 'SpatialSubtractiveNormalization'
...all/share/lua/5.1/nn/SpatialContrastiveNormalization.lua:23: in function '__init'
/home/vvaq/torch/install/share/lua/5.1/torch/init.lua:51: in function </home/vvaq/torch/install/share/lua/5.1/torch/init.lua:47>
...
[string "local f = function() return dofile '1_data.lu..."]:1: in main chunk
[C]: in function 'xpcall'
/home/vvaq/torch/install/share/lua/5.1/itorch/main.lua:177: in function </home/vvaq/torch/install/share/lua/5.1/itorch/main.lua:143>
/home/vvaq/torch/install/share/lua/5.1/lzmq/poller.lua:75: in function 'poll'
.../vvaq/torch/install/share/lua/5.1/lzmq/impl/loop.lua:307: in function 'poll'
.../vvaq/torch/install/share/lua/5.1/lzmq/impl/loop.lua:325: in function 'sleep_ex'
.../vvaq/torch/install/share/lua/5.1/lzmq/impl/loop.lua:370: in function 'start'
/home/vvaq/torch/install/share/lua/5.1/itorch/main.lua:344: in main chunk
[C]: in function 'require'
[string "arg={'/home/vvaq/.ipython/profile_default..."]:1: in main chunk

Did anyone have a similar problem?.
I have checked and reinstall components... everything seems OK. More details:

  • Ubuntu 14.04
  • python version is 2.7.6
  • ipython version is 3.1.0

Thank you for the help!

@vvaquero vvaquero changed the title Error using in iTorch Error tutorials while preprocessing data: normalize all three channels locally Jun 13, 2015
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

1 participant