i am trying to compile your caffe branch to test the code but i get the following error, complaining that "SmoothL1LossParameter" is not found.. here is my output:
CXX src/caffe/layers/smooth_l1_loss_layer.cpp
src/caffe/layers/smooth_l1_loss_layer.cpp:10:3: error: unknown type name 'SmoothL1LossParameter'; did you mean 'SmoothL1LossLayer'?
SmoothL1LossParameter loss_param = this->layerparam.smooth_l1_loss_param();
^~~~~
SmoothL1LossLayer
./include/caffe/layers/smooth_l1_loss_layer.hpp:22:7: note: 'SmoothL1LossLayer' declared here
class SmoothL1LossLayer : public LossLayer {
^
src/caffe/layers/smooth_l1_loss_layer.cpp:10:57: error: no member named 'smooth_l1_loss_param' in 'caffe::LayerParameter'
SmoothL1LossParameter loss_param = this->layerparam.smooth_l1_loss_param();
src/caffe/layers/smooth_l1_loss_layer.cpp:62:19: note: in instantiation of member function 'caffe::SmoothL1LossLayer<float>::LayerSetUp' requested here
INSTANTIATE_CLASS(SmoothL1LossLayer);
^
src/caffe/layers/smooth_l1_loss_layer.cpp:10:57: error: no member named 'smooth_l1_loss_param' in 'caffe::LayerParameter'
SmoothL1LossParameter loss_param = this->layer_param_.smooth_l1_loss_param();
~~~~~~~~~~~~~~~~~~ ^
src/caffe/layers/smooth_l1_loss_layer.cpp:62:19: note: in instantiation of member function 'caffe::SmoothL1LossLayer<double>::LayerSetUp' requested here
INSTANTIATE_CLASS(SmoothL1LossLayer);
^
3 errors generated.
make: *** [.build_release/src/caffe/layers/smooth_l1_loss_layer.o] Error 1
do you have any idea what this could be? should i modify the .hpp file to add some new things?
any help is appreciated!
Thanks!!
@richipower no modification is needed. Compile the caffe provided in the SSH file, it works. Just make sure you have your makefile.config set up correctly.
Hi,
i am trying to compile your caffe branch to test the code but i get the following error, complaining that "SmoothL1LossParameter" is not found.. here is my output:
CXX src/caffe/layers/smooth_l1_loss_layer.cpp src/caffe/layers/smooth_l1_loss_layer.cpp:10:3: error: unknown type name 'SmoothL1LossParameter'; did you mean 'SmoothL1LossLayer'? SmoothL1LossParameter loss_param = this->layerparam.smooth_l1_loss_param(); ^ {
^
src/caffe/layers/smooth_l1_loss_layer.cpp:10:57: error: no member named 'smooth_l1_loss_param' in 'caffe::LayerParameter'
SmoothL1LossParameter loss_param = this->layerparam.smooth_l1_loss_param();
~~~~SmoothL1LossLayer ./include/caffe/layers/smooth_l1_loss_layer.hpp:22:7: note: 'SmoothL1LossLayer' declared here class SmoothL1LossLayer : public LossLayer