BinaryNet
BinaryNet copied to clipboard
An error in BinaryNet_Cifar10_Model.lua
I attempted to excute the Main_BinaryNet_Cifar10.lua. But I got some errors and I do not know how to solve them. When I run the MNIST case, it runs well. SVHN case hase the same errors. Could you please give me some suggestions? Thank you in advance for your cooperation.
[liubaicheng@mesic-dlcad BinaryNet-master_22]$ th Main_BinaryNet_Cifar10.lua -network BinaryNet_Cifar10_Model 0 14033566 14033566 14033566 [program started on Mon Sep 10 15:26:22 2018] [command line arguments] devid 1 threads 8 network ./Models/BinaryNet_Cifar10_Model weightDecay 0 optimization adam nGPU 1 runningVal false LR 0.015625 SBN true augment false epoch -1 stcWeights false stcNeurons true dataset Cifar10 LRDecay 0 batchSize 200 normalization simple load dp_prepro false whiten true type cuda momentum 0 modelsFolder ./Models/ constBatchSize false preProcDir /home/liubaicheng/try_2018_4_26/BinaryNet-master_22/PreProcData/Cifar10 save /home/liubaicheng/try_2018_4_26/BinaryNet-master_22/Results/MonSep1015:25:542018 format rgb visualize 1 [----------------------] ==> Network nn.Sequential { [input -> (1) -> (2) -> (3) -> (4) -> (5) -> (6) -> (7) -> (8) -> (9) -> (10) -> (11) -> (12) -> (13) -> (14) -> (15) -> (16) -> (17) -> (18) -> (19) -> (20) -> (21) -> (22) -> (23) -> (24) -> (25) -> (26) -> (27) -> (28) -> (29) -> (30) -> (31) -> (32) -> (33) -> (34) -> (35) -> (36) -> (37) -> (38) -> output] (1): cudnnBinarySpatialConvolution(3 -> 128, 3x3, 1,1, 1,1) (2): SpatialBatchNormalizationShiftPow2 (3): nn.HardTanh (4): BinarizedNeurons (5): cudnnBinarySpatialConvolution(128 -> 128, 3x3, 1,1, 1,1) (6): cudnn.SpatialMaxPooling(2x2, 2,2) (7): SpatialBatchNormalizationShiftPow2 (8): nn.HardTanh (9): BinarizedNeurons (10): cudnnBinarySpatialConvolution(128 -> 256, 3x3, 1,1, 1,1) (11): SpatialBatchNormalizationShiftPow2 (12): nn.HardTanh (13): BinarizedNeurons (14): cudnnBinarySpatialConvolution(256 -> 256, 3x3, 1,1, 1,1) (15): cudnn.SpatialMaxPooling(2x2, 2,2) (16): SpatialBatchNormalizationShiftPow2 (17): nn.HardTanh (18): BinarizedNeurons (19): cudnnBinarySpatialConvolution(256 -> 512, 3x3, 1,1, 1,1) (20): SpatialBatchNormalizationShiftPow2 (21): nn.HardTanh (22): BinarizedNeurons (23): cudnnBinarySpatialConvolution(512 -> 512, 3x3, 1,1, 1,1) (24): cudnn.SpatialMaxPooling(2x2, 2,2) (25): SpatialBatchNormalizationShiftPow2 (26): nn.HardTanh (27): BinarizedNeurons (28): nn.View(8192) (29): BinaryLinear(8192 -> 1024) (30): BatchNormalizationShiftPow2 (31): nn.HardTanh (32): BinarizedNeurons (33): BinaryLinear(1024 -> 1024) (34): BatchNormalizationShiftPow2 (35): nn.HardTanh (36): BinarizedNeurons (37): BinaryLinear(1024 -> 10) (38): nn.BatchNormalization (2D) (10) } ==>14033566 Parameters ==> Loss SqrtHingeEmbeddingCriterion
==> Starting Training
Epoch 1 /home/liubaicheng/torch/install/bin/lua: ...liubaicheng/torch/install/share/lua/5.2/nn/Container.lua:67: In 1 module of nn.Sequential: ...e/liubaicheng/torch/install/share/lua/5.2/cudnn/init.lua:155: too few arguments stack traceback: [C]: in function '?' ...e/liubaicheng/torch/install/share/lua/5.2/cudnn/init.lua:155: in function 'call' ...e/liubaicheng/torch/install/share/lua/5.2/cudnn/init.lua:159: in function 'errcheck' ...ryNet-master_22/Models/cudnnBinarySpatialConvolution.lua:71: in function 'resetWeightDescriptors' ...torch/install/share/lua/5.2/cudnn/SpatialConvolution.lua:96: in function 'checkInputChanged' ...torch/install/share/lua/5.2/cudnn/SpatialConvolution.lua:120: in function 'createIODescriptors' ...ryNet-master_22/Models/cudnnBinarySpatialConvolution.lua:122: in function 'createIODescriptors' ...torch/install/share/lua/5.2/cudnn/SpatialConvolution.lua:188: in function 'updateOutput' ...ryNet-master_22/Models/cudnnBinarySpatialConvolution.lua:146: in function <...ryNet-master_22/Models/cudnnBinarySpatialConvolution.lua:142> [C]: in function 'xpcall' ...liubaicheng/torch/install/share/lua/5.2/nn/Container.lua:63: in function 'rethrowErrors' ...iubaicheng/torch/install/share/lua/5.2/nn/Sequential.lua:44: in function <...iubaicheng/torch/install/share/lua/5.2/nn/Sequential.lua:41> (...tail calls...) Main_BinaryNet_Cifar10.lua:214: in function <Main_BinaryNet_Cifar10.lua:186> (...tail calls...) Main_BinaryNet_Cifar10.lua:270: in main chunk [C]: in function 'dofile' ...heng/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: in ?
WARNING: If you see a stack trace below, it doesn't point to the place where this error occurred. Please use only the one above. stack traceback: [C]: in function 'error' ...liubaicheng/torch/install/share/lua/5.2/nn/Container.lua:67: in function 'rethrowErrors' ...iubaicheng/torch/install/share/lua/5.2/nn/Sequential.lua:44: in function <...iubaicheng/torch/install/share/lua/5.2/nn/Sequential.lua:41> (...tail calls...) Main_BinaryNet_Cifar10.lua:214: in function <Main_BinaryNet_Cifar10.lua:186> (...tail calls...) Main_BinaryNet_Cifar10.lua:270: in main chunk [C]: in function 'dofile' ...heng/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: in ?