torrvision / crfasrnn

This repository contains the source code for the semantic image segmentation method described in the ICCV 2015 paper: Conditional Random Fields as Recurrent Neural Networks. http://crfasrnn.torr.vision/
Other
1.34k stars 462 forks source link

Error when making multi_stage_meanfield.cpp #111

Closed s0rdan closed 7 years ago

s0rdan commented 7 years ago

Not sure if anybody is looking a this, just encountered an error when trying to make src/caffe/layers/multi_stage_meanfield.cpp, namely

src/caffe/layers/multi_stage_meanfield.cpp:72:13: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 3 has type ‘float*’ [-Wformat=]
       fscanf(pFile, "%lf", &this->blobs_[0]->mutable_cpu_data()[i * channels_ + i]);

Now I need this because the last layer in the TVG_CRFRNN_new_deploy.prototxt uses it. In newer versions of caffe, this layer cannot be found in /src/caffe/layers...

Thanks

s0rdan commented 7 years ago

Didn't read the ReadMe closely enough, sorry!