itayhubara / BinaryNet

Training Deep Neural Networks with Weights and Activations Constrained to +1 or -1
298 stars 96 forks source link

Troubleshoot in running your code #3

Closed shanlior closed 8 years ago

shanlior commented 8 years ago

Hi Itay,

I run your example code (after some database debug), and I get

/home/ehoffer/torch/install/bin/luajit: Main_BinaryNet_Cifar10.lua:216: Invalid index in scatter at /tmp/luarocks_torch-scm-1-1732/torch7/lib/TH/generic/THTensorMath.c:370
stack traceback:
    [C]: in function 'scatter'
    Main_BinaryNet_Cifar10.lua:216: in function 'Train'
    Main_BinaryNet_Cifar10.lua:270: in main chunk
    [C]: in function 'dofile'
    ...ffer/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
    [C]: at 0x00406670

Do you have any suggestions?

Lior

itayhubara commented 8 years ago

I think you have some problem with your data. Please check that the true labels values are between 1-10.

Best, Itay

shanlior commented 8 years ago

Thanks - it worked!