Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors of making test when Compilation of DeepLab #4

Open
jsdd25 opened this issue Feb 20, 2019 · 1 comment
Open

Errors of making test when Compilation of DeepLab #4

jsdd25 opened this issue Feb 20, 2019 · 1 comment

Comments

@jsdd25
Copy link

jsdd25 commented Feb 20, 2019

Hi yilei0620,
Your work is amazing! I used your deeplab package. It is noticed that the compilation of DeepLab is the same as compiling process as Caffe. I have successfully run 'make all' but I encountered some problems when running 'make test':

src/caffe/test/test_memory_data_layer.cpp:238:3: error: no matching function for call to ‘caffe::MemoryDataLayer::AddMatVector(std::vectorcv::Mat&, std::vector&)’
layer.AddMatVector(mat_vector, label_vector);
^
In file included from src/caffe/test/test_memory_data_layer.cpp:9:0:
./include/caffe/layers/memory_data_layer.hpp:33:16: note: candidate: void caffe::MemoryDataLayer::AddMatVector(const std::vectorcv::Mat&, const std::vector&, const std::vector<std::pair<int, int> >&) [with Dtype = double]
virtual void AddMatVector(const vectorcv::Mat& mat_vector,
^
./include/caffe/layers/memory_data_layer.hpp:33:16: note: candidate expects 3 arguments, 2 provided
src/caffe/test/test_memory_data_layer.cpp:273:3: error: no matching function for call to ‘caffe::MemoryDataLayer::AddMatVector(std::vectorcv::Mat&, std::vector&)’
layer.AddMatVector(mat_vector, label_vector);
^
In file included from src/caffe/test/test_memory_data_layer.cpp:9:0:
./include/caffe/layers/memory_data_layer.hpp:33:16: note: candidate: void caffe::MemoryDataLayer::AddMatVector(const std::vectorcv::Mat&, const std::vector&, const std::vector<std::pair<int, int> >&) [with Dtype = double]
virtual void AddMatVector(const vectorcv::Mat& mat_vector,
^
./include/caffe/layers/memory_data_layer.hpp:33:16: note: candidate expects 3 arguments, 2 provided
src/caffe/test/test_memory_data_layer.cpp: In instantiation of ‘void caffe::MemoryDataLayerTest_AddMatVectorDefaultTransform_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = caffe::CPUDevice]’:
src/caffe/test/test_memory_data_layer.cpp:299:1: required from here
src/caffe/test/test_memory_data_layer.cpp:193:3: error: no matching function for call to ‘caffe::MemoryDataLayer::AddMatVector(std::vectorcv::Mat&, std::vector&)’
layer.AddMatVector(mat_vector, label_vector);
^
In file included from src/caffe/test/test_memory_data_layer.cpp:9:0:
./include/caffe/layers/memory_data_layer.hpp:33:16: note: candidate: void caffe::MemoryDataLayer::AddMatVector(const std::vectorcv::Mat&, const std::vector&, const std::vector<std::pair<int, int> >&) [with Dtype = double]
virtual void AddMatVector(const vectorcv::Mat& mat_vector,
^
./include/caffe/layers/memory_data_layer.hpp:33:16: note: candidate expects 3 arguments, 2 provided
src/caffe/test/test_memory_data_layer.cpp: In instantiation of ‘void caffe::MemoryDataLayerTest_TestForward_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = caffe::CPUDevice]’:
src/caffe/test/test_memory_data_layer.cpp:299:1: required from here
src/caffe/test/test_memory_data_layer.cpp:101:3: error: no matching function for call to ‘caffe::MemoryDataLayer::Reset(double*, double*, int)’
layer->Reset(this->data_->mutable_cpu_data(),
^
In file included from src/caffe/test/test_memory_data_layer.cpp:9:0:
./include/caffe/layers/memory_data_layer.hpp:39:8: note: candidate: void caffe::MemoryDataLayer::Reset(Dtype*, Dtype*, Dtype*, int) [with Dtype = double]
void Reset(Dtype* data, Dtype* label, Dtype* datadims, int n);
^
./include/caffe/layers/memory_data_layer.hpp:39:8: note: candidate expects 4 arguments, 3 provided
src/caffe/test/test_memory_data_layer.cpp: In instantiation of ‘void caffe::MemoryDataLayerTest_TestSetBatchSize_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = caffe::CPUDevice]’:
src/caffe/test/test_memory_data_layer.cpp:299:1: required from here
src/caffe/test/test_memory_data_layer.cpp:238:3: error: no matching function for call to ‘caffe::MemoryDataLayer::AddMatVector(std::vectorcv::Mat&, std::vector&)’
layer.AddMatVector(mat_vector, label_vector);
^
In file included from src/caffe/test/test_memory_data_layer.cpp:9:0:
./include/caffe/layers/memory_data_layer.hpp:33:16: note: candidate: void caffe::MemoryDataLayer::AddMatVector(const std::vectorcv::Mat&, const std::vector&, const std::vector<std::pair<int, int> >&) [with Dtype = float]
virtual void AddMatVector(const vectorcv::Mat& mat_vector,
^
./include/caffe/layers/memory_data_layer.hpp:33:16: note: candidate expects 3 arguments, 2 provided
src/caffe/test/test_memory_data_layer.cpp:273:3: error: no matching function for call to ‘caffe::MemoryDataLayer::AddMatVector(std::vectorcv::Mat&, std::vector&)’
layer.AddMatVector(mat_vector, label_vector);
^
In file included from src/caffe/test/test_memory_data_layer.cpp:9:0:
./include/caffe/layers/memory_data_layer.hpp:33:16: note: candidate: void caffe::MemoryDataLayer::AddMatVector(const std::vectorcv::Mat&, const std::vector&, const std::vector<std::pair<int, int> >&) [with Dtype = float]
virtual void AddMatVector(const vectorcv::Mat& mat_vector,
^
./include/caffe/layers/memory_data_layer.hpp:33:16: note: candidate expects 3 arguments, 2 provided
src/caffe/test/test_memory_data_layer.cpp: In instantiation of ‘void caffe::MemoryDataLayerTest_AddMatVectorDefaultTransform_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = caffe::CPUDevice]’:
src/caffe/test/test_memory_data_layer.cpp:299:1: required from here
src/caffe/test/test_memory_data_layer.cpp:193:3: error: no matching function for call to ‘caffe::MemoryDataLayer::AddMatVector(std::vectorcv::Mat&, std::vector&)’
layer.AddMatVector(mat_vector, label_vector);
^
In file included from src/caffe/test/test_memory_data_layer.cpp:9:0:
./include/caffe/layers/memory_data_layer.hpp:33:16: note: candidate: void caffe::MemoryDataLayer::AddMatVector(const std::vectorcv::Mat&, const std::vector&, const std::vector<std::pair<int, int> >&) [with Dtype = float]
virtual void AddMatVector(const vectorcv::Mat& mat_vector,
^
./include/caffe/layers/memory_data_layer.hpp:33:16: note: candidate expects 3 arguments, 2 provided
src/caffe/test/test_memory_data_layer.cpp: In instantiation of ‘void caffe::MemoryDataLayerTest_TestForward_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = caffe::CPUDevice]’:
src/caffe/test/test_memory_data_layer.cpp:299:1: required from here
src/caffe/test/test_memory_data_layer.cpp:101:3: error: no matching function for call to ‘caffe::MemoryDataLayer::Reset(float*, float*, int)’
layer->Reset(this->data_->mutable_cpu_data(),
^
In file included from src/caffe/test/test_memory_data_layer.cpp:9:0:
./include/caffe/layers/memory_data_layer.hpp:39:8: note: candidate: void caffe::MemoryDataLayer::Reset(Dtype*, Dtype*, Dtype*, int) [with Dtype = float]
void Reset(Dtype* data, Dtype* label, Dtype* datadims, int n);
^
./include/caffe/layers/memory_data_layer.hpp:39:8: note: candidate expects 4 arguments, 3 provided
Makefile:575: recipe for target '.build_release/src/caffe/test/test_memory_data_layer.o' failed
make: *** [.build_release/src/caffe/test/test_memory_data_layer.o] Error 1

Could you help me?
Thank you

@yilei0620
Copy link
Owner

yilei0620 commented Feb 20, 2019

I think you have installed Caffe successfully after running make all.

Can you try running demo without caffe test? Or you can try cmake build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants