Unsupervised-Adaptation-for-Deep-Stereo icon indicating copy to clipboard operation
Unsupervised-Adaptation-for-Deep-Stereo copied to clipboard

src/caffe/layers/l1loss_layer.cpp:28:5: error: ‘diff_bottom_vec_’ was not declared in this scope

Open KengChiLiu opened this issue 6 years ago • 2 comments

Hi @AlessioTonioni ,

After I replace the files in flownet with yours, something wrong while making

src/caffe/layers/l1loss_layer.cpp: In member function ‘virtual void caffe::L1LossLayer<Dtype>::LayerSetUp(const std::vector<caffe::Blob<Dtype>>&, const std::vector<caffe::Blob<Dtype>>&)’: src/caffe/layers/l1loss_layer.cpp:28:5: error: ‘diff_bottom_vec_’ was not declared in this scope diff_bottom_vec_.clear(); ^ src/caffe/layers/l1loss_layer.cpp:43:7: error: ‘dot_top_vec_’ was not declared in this scope dot_top_vec_.clear(); ^ src/caffe/layers/l1loss_layer.cpp:44:31: error: ‘dot_’ was not declared in this scope dot_top_vec_.push_back(&dot_); ^ src/caffe/layers/l1loss_layer.cpp:45:7: error: ‘dot_bottom_vec_’ was not declared in this scope dot_bottom_vec_.clear(); ^ src/caffe/layers/l1loss_layer.cpp:50:7: error: ‘dot_layer_’ was not declared in this scope dot_layer_.reset(new EltwiseLayer<Dtype>(dot_param)); ^ src/caffe/layers/l1loss_layer.cpp:53:7: error: ‘dot_top_vec_’ was not declared in this scope dot_top_vec_=diff_top_vec_; ^ src/caffe/layers/l1loss_layer.cpp:70:26: error: ‘dot_top_vec_’ was not declared in this scope square_layer_->SetUp(dot_top_vec_, square_top_vec_); ^ src/caffe/layers/l1loss_layer.cpp: In member function ‘virtual void caffe::L1LossLayer<Dtype>::Reshape(const std::vector<caffe::Blob<Dtype>>&, const std::vector<caffe::Blob<Dtype>>&)’: src/caffe/layers/l1loss_layer.cpp:103:34: error: ‘dot_top_vec_’ was not declared in this scope diff_layer_->Reshape(bottom, dot_top_vec_); ^ src/caffe/layers/l1loss_layer.cpp:115:28: error: ‘dot_top_vec_’ was not declared in this scope square_layer_->Reshape(dot_top_vec_, square_top_vec_); ^ Makefile:576: recipe for target '.build_release/src/caffe/layers/l1loss_layer.o' failed make: *** [.build_release/src/caffe/layers/l1loss_layer.o] Error 1

KengChiLiu avatar Apr 21 '18 03:04 KengChiLiu

Hi @KengChiLiu, which version of the FlowNet source code did you download?

mattpoggi avatar Apr 22 '18 11:04 mattpoggi

@mattpoggi I'm using the one you provided

KengChiLiu avatar Apr 22 '18 16:04 KengChiLiu