Open ardiya opened 7 years ago
I tried to train it on imagenet, and the data layer failed to load lmdb. Any idea?
lmdb test fixed by changing random_order in caffe.proto to optional bool random_order = 11 [default = false];
still not sure about the backpropagation error in denseblock layer
Hello @ardiya , for the first question which is failure of unit test about DenseBlock, one strange part is there is the numbers on both sides seem to be large integers, so what is the order of instructions runned? And what is your environment? Thanks.
Hi @Tongcheng, thanks for replying.
one strange part is there is the numbers on both sides seem to be large integers
It is a float number, but there might be some problem when I copied it. Here is the pastebin link for a better viewing https://pastebin.com/Jh8iQeNT
so what is the order of instructions runned?
I clone it, removeCmakeDep.sh
, mkdir build
, cd build
, cmake ..
, make -j8
and make runtest -j8
what is your environment?
I am using Ubuntu 14.04.1 and this is the result of cmake ..
https://pastebin.com/yujC0Ry5
Please tell me if you need more info, because I really have no idea what should I write here.
I encounter same problem when i run make runtest
. Can anyone help me?
thanks
`
[----------] Global test environment tear-down
[==========] 1957 tests from 268 test cases ran. (313258 ms total)
[ PASSED ] 1945 tests.
[ FAILED ] 12 tests, listed below:
[ FAILED ] DenseBlockLayerTest/0.TestDenseBlockBwd, where TypeParam = caffe::CPUDevice
12 FAILED TESTS make[3]: [src/caffe/test/CMakeFiles/runtest] 错误 1 make[2]: [src/caffe/test/CMakeFiles/runtest.dir/all] 错误 2 make[1]: [src/caffe/test/CMakeFiles/runtest.dir/rule] 错误 2 make: [runtest] 错误 2 `
I got the same problem. I think I did the same procedure as ardiya did. I cloned https://github.com/Tongcheng/caffe.git. Then, run removeCmakeDep.sh, mkdir build, cd build, cmake .., make -j4 and make runtest -j4. I am running Ubuntu 16.04, CUDA 8.0, cuDnn v5.1.
Hi, @ardiya I suffer from similar problem, have you solved this? thanks.
Hi, @Tongcheng @ardiya @zhimengfan1990 I meet the same problem while running 'make runtest', have you solved this? thanks.
%% ...... /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 4 Expected: label % batch_size Which is: 3 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 1 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 0 Expected: label % batch_size Which is: 4 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 2 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 2 Expected: label % batch_size Which is: 0 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 0 Expected: label % batch_size Which is: 3 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 0 Expected: label % batch_size Which is: 1 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 2 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 0 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 4 Expected: label % batch_size Which is: 0 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 1 Expected: label % batch_size Which is: 3 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 1 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 1 Expected: label % batch_size Which is: 4 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 2 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 1 Expected: label % batch_size Which is: 0 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 0 Expected: label % batch_size Which is: 3 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 2 Expected: label % batch_size Which is: 1 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 4 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 2 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 1 Expected: label % batch_size Which is: 0 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 0 Expected: label % batch_size Which is: 3 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 4 Expected: label % batch_size Which is: 1 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 2 Expected: label % batch_size Which is: 4 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 4 Expected: label % batch_size Which is: 2 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 1 Expected: label % batch_size Which is: 3 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 4 Expected: label % batch_size Which is: 1 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 2 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 1 Expected: label % batch_size Which is: 0 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 1 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 4 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 2 Expected: label % batch_size Which is: 3 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 4 Expected: label % batch_size Which is: 1 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 1 Expected: label % batch_size Which is: 4 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 2 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 4 Expected: label % batch_size Which is: 0 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 1 Expected: label % batch_size Which is: 3 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 1 Expected: label % batch_size Which is: 4 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 0 Expected: label % batch_size Which is: 2 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 1 Expected: label % batch_size Which is: 0 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 4 Expected: label % batch_size Which is: 3 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 1 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 0 Expected: label % batch_size Which is: 4 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 0 Expected: label % batch_size Which is: 2 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 0 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 4 Expected: label % batch_size Which is: 3 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 0 Expected: label % batch_size Which is: 1 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 4 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 3 Expected: label % batch_size Which is: 2 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 1 Expected: label % batch_size Which is: 3 /home/NAME/桌面/caffe-master-densenet/caffe/src/caffe/test/test_data_layer.cpp:125: Failure Value of: blob_toplabel->cpu_data()[i] Actual: 4 Expected: label % batch_size Which is: 1 .....
%%
Hi, @zhangleiedu, I meet the same problem? have you solve this problem? thanks!
%%
[ FAILED ] 12 tests, listed below:
[ FAILED ] NesterovSolverTest/0.TestNesterovLeastSquaresUpdateWithMomentum, where TypeParam = caffe::CPUDevice
12 FAILED TESTS make[3]: [src/caffe/test/CMakeFiles/runtest] 错误 1 make[2]: [src/caffe/test/CMakeFiles/runtest.dir/all] 错误 2 make[1]: [src/caffe/test/CMakeFiles/runtest.dir/rule] 错误 2 make: [runtest] 错误 2 %%
hello @ardiya @Tongcheng I meet exactly the same problem, have you solved it? Despite the unsettled problem, I still successfully trained my own model based on Dense_Block, but when I tested the model using python interface, it occured that:
WARNING: Logging before InitGoogleLogging() is written to STDERR W0504 11:01:52.860939 8205 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface W0504 11:01:52.860967 8205 _caffe.cpp:140] Use this instead (with the named "weights" parameter): W0504 11:01:52.860972 8205 _caffe.cpp:142] Net('/home/sunyu/caffe-master/data/mydata/deploy.prototxt', 1, weights='/home/sunyu/caffe-master/data/mydata/Dense_EXP_1/my_regression_iter_35000.caffemodel') [libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 56:20: Message type "caffe.LayerParameter" has no field named "denseblock_param". F0504 11:01:52.862316 8205 upgrade_proto.cpp:90] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /home/sunyu/caffe-master/data/mydata/deploy.prototxt
I just cannot figure out that why "caffe.LayerParameter" has no field named "denseblock_param" only during the test phase while trainning is ok?
Hi, I want to post this in your caffe fork but there is no issue tab there.
So, I have tried to compile your latest caffe fork and encounter some failure when running `make runtest' there.
Do you have any suggestion? Perhaps something like revert to the stable commit or your DenseBlock_release1 will do?
The failure happen when testing DenseBlock layer and
and the data layer.