martinkersner / train-DeepLab

Train DeepLab for Semantic Image Segmentation
MIT License
172 stars 76 forks source link

caffe make test and make runtest issues #12

Open ruida opened 8 years ago

ruida commented 8 years ago

I compile caffe code successfully. Encounter issues when I type

make test

/include/caffe/data_layers.hpp:280:8: note: candidate expects 4 arguments, 3 provided src/caffe/test/test_memory_data_layer.cpp: In instantiation of ‘void caffe::MemoryDataLayerTest_TestForward_Test::TestBody() [with gtestTypeParam = caffe::FloatCPU]’: src/caffe/test/test_memory_data_layer.cpp:167:1: required from here src/caffe/test/test_memory_datalayer.cpp:97:3: error: no matching function for call to ‘caffe::MemoryDataLayer::Reset(float, float, int)’ layer->Reset(this->data->mutable_cpu_data(), ^ src/caffe/test/test_memory_data_layer.cpp:97:3: note: candidate is: In file included from src/caffe/test/test_memory_data_layer.cpp:4:0: ./include/caffe/data_layers.hpp:280:8: note: void caffe::MemoryDataLayer::Reset(Dtype, Dtype, Dtype, int) [with Dtype = float] void Reset(Dtype data, Dtype label, Dtype data_dim, int n); // Martin Kersner, 2016/04/19 ^ ./include/caffe/data_layers.hpp:280:8: note: candidate expects 4 arguments, 3 provided make: *** [.build_release/src/caffe/test/test_memory_data_layer.o] Error 1

Will this affect the train-Deeplab running? thanks.

ksnzh commented 7 years ago

Hi @ruida , I have compiled caffe successfully with cmake too and also encounter the same issue when make runtest.

/media/ksnzh/DATA/deeplab/train-DeepLab/code/src/caffe/test/test_memory_data_layer.cpp:97:3: note: candidate is:
In file included from /media/ksnzh/DATA/deeplab/train-DeepLab/code/src/caffe/test/test_memory_data_layer.cpp:4:0:
/media/ksnzh/DATA/deeplab/train-DeepLab/code/include/caffe/data_layers.hpp:280:8: note: void caffe::MemoryDataLayer<Dtype>::Reset(Dtype*, Dtype*, Dtype*, int) [with Dtype = float]
   void Reset(Dtype* data, Dtype* label, Dtype* data_dim, int n); // Martin Kersner, 2016/04/19
        ^
/media/ksnzh/DATA/deeplab/train-DeepLab/code/include/caffe/data_layers.hpp:280:8: note:   candidate expects 4 arguments, 3 provided
Scanning dependencies of target test_stochastic_pooling.testbin.obj
[ 25%] Building CXX object src/caffe/test/CMakeFiles/test_stochastic_pooling.testbin.obj.dir/test_stochastic_pooling.cpp.o
make[3]: *** [src/caffe/test/CMakeFiles/test_memory_data_layer.testbin.obj.dir/test_memory_data_layer.cpp.o] 错误 1
make[2]: *** [src/caffe/test/CMakeFiles/test_memory_data_layer.testbin.obj.dir/all] 错误 2
make[2]: *** 正在等待未完成的任务....

Another question, what is your cuDNN version?

ABadCandy commented 7 years ago

Hi~ I execute "make all" successfully but "make pycaffe" failed. Here is the error:

find: matlab/+caffe/private': No such file or directory make: *** No rule to make targetinclude/caffe/layers/python_layer.hpp', needed by `python/c affe/_caffe.so'. Stop.

It seems that there is not file in path "include/caffe/layers" compared to the original caffe version, how should i do? Thanks!