CVLAB-Unibo / Unsupervised-Adaptation-for-Deep-Stereo

Code for "Unsupervised Adaptation for Deep Stereo" - ICCV17
Apache License 2.0
62 stars 22 forks source link

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

Open KengChiLiu opened 6 years ago

KengChiLiu commented 6 years ago

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::LayerSetUp(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&)’: src/caffe/layers/l1loss_layer.cpp:28:5: error: ‘diff_bottomvec’ was not declared in this scope diff_bottomvec.clear(); ^ src/caffe/layers/l1loss_layer.cpp:43:7: error: ‘dot_topvec’ was not declared in this scope dot_topvec.clear(); ^ src/caffe/layers/l1losslayer.cpp:44:31: error: ‘dot’ was not declared in this scope dot_topvec.pushback(&dot); ^ src/caffe/layers/l1loss_layer.cpp:45:7: error: ‘dot_bottomvec’ was not declared in this scope dot_bottomvec.clear(); ^ src/caffe/layers/l1loss_layer.cpp:50:7: error: ‘dotlayer’ was not declared in this scope dotlayer.reset(new EltwiseLayer(dot_param)); ^ src/caffe/layers/l1loss_layer.cpp:53:7: error: ‘dot_topvec’ was not declared in this scope dot_topvec=diff_topvec; ^ src/caffe/layers/l1loss_layer.cpp:70:26: error: ‘dot_topvec’ was not declared in this scope squarelayer->SetUp(dot_topvec, square_topvec); ^ src/caffe/layers/l1loss_layer.cpp: In member function ‘virtual void caffe::L1LossLayer::Reshape(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&)’: src/caffe/layers/l1loss_layer.cpp:103:34: error: ‘dot_topvec’ was not declared in this scope difflayer->Reshape(bottom, dot_topvec); ^ src/caffe/layers/l1loss_layer.cpp:115:28: error: ‘dot_topvec’ was not declared in this scope squarelayer->Reshape(dot_topvec, square_topvec); ^ 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

mattpoggi commented 6 years ago

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

KengChiLiu commented 6 years ago

@mattpoggi I'm using the one you provided