zhaoweicai / cascade-rcnn

Caffe implementation of multiple popular object detection frameworks
1.04k stars 293 forks source link

Error when compile the project about "detection_group_accuracy_layer.cu" #33

Open zhoulukuan opened 6 years ago

zhoulukuan commented 6 years ago

@zhaoweicai Thanks for your great idea and code. It's a nice work. However, when i compile, I got a error as follows:

src/caffe/layers/detection_group_accuracy_layer.cu(147): error: identifier "DetectionGroupAccuracyParameter" is undefined

src/caffe/layers/detection_group_accuracy_layer.cu(148): error: class "caffe::LayerParameter" has no member "detection_group_accuracy_param"
          detected during instantiation of "void caffe::DetectionGroupAccuracyLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=float]"
(233): here

src/caffe/layers/detection_group_accuracy_layer.cu(148): error: class "caffe::LayerParameter" has no member "detection_group_accuracy_param"
          detected during instantiation of "void caffe::DetectionGroupAccuracyLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=double]"
(233): here

3 errors detected in the compilation of "/tmp/tmpxft_00009594_00000000-11_detection_group_accuracy_layer.compute_61.cpp1.ii".
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/detection_group_accuracy_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/detection_group_accuracy_layer.o] Error 1
make: *** 正在等待未完成的任务....

Other files did have this problem. It seems that 'detection_group_accuracy_layer.cu' cannot be make successfully. Did it cause any problem? How to fix it? Could you offer me some help? Thank you very much.

zhaoweicai commented 6 years ago

I think you didn't compile the caffe.proto file well. It shows detection_group_accuracy_param is not found.