train-DeepLab icon indicating copy to clipboard operation
train-DeepLab copied to clipboard

Throwing error when running the "make test" command

Open vismayaps opened this issue 9 years ago • 3 comments

I am getting the below mentioned error when running the "make test" command and "make runtest" is also giving error. What kind of error is this ? I want to train the network with a new set of images actually. I am copying the error I am getting below.

|| (cat .build_release/src/caffe/test/test_memory_data_layer.o.warnings.txt; exit 1) src/caffe/test/test_memory_data_layer.cpp: In instantiation of âvoid caffe::MemoryDataLayerTest_TestForward_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = caffe::DoubleGPU]â: src/caffe/test/test_memory_data_layer.cpp:167:1: required from here src/caffe/test/test_memory_data_layer.cpp:97:3: error: no matching function for call to âcaffe::MemoryDataLayer::Reset(double*, double*, 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<Dtype>::Reset(Dtype*, Dtype*, Dtype*, int) [with Dtype = double] 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 src/caffe/test/test_memory_data_layer.cpp: In instantiation of âvoid caffe::MemoryDataLayerTest_TestForward_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = caffe::FloatGPU]â: src/caffe/test/test_memory_data_layer.cpp:167:1: required from here src/caffe/test/test_memory_data_layer.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<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 ^ ./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<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = caffe::DoubleCPU]â: src/caffe/test/test_memory_data_layer.cpp:167:1: required from here src/caffe/test/test_memory_data_layer.cpp:97:3: error: no matching function for call to âcaffe::MemoryDataLayer::Reset(double*, double*, 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<Dtype>::Reset(Dtype*, Dtype*, Dtype*, int) [with Dtype = double] 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 src/caffe/test/test_memory_data_layer.cpp: In instantiation of âvoid caffe::MemoryDataLayerTest_TestForward_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = caffe::FloatCPU]â: src/caffe/test/test_memory_data_layer.cpp:167:1: required from here src/caffe/test/test_memory_data_layer.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<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 ^ ./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

vismayaps avatar Jan 06 '17 11:01 vismayaps

I can run "make test" and "make runtest" in the original CAFFE. but here throws the same problem

Dr-papaya avatar Mar 04 '17 22:03 Dr-papaya

same for me.

mkiernan avatar Mar 19 '17 10:03 mkiernan

@KunMRI @mkiernan could you solve your problem?

sara-eb avatar Jul 19 '18 08:07 sara-eb