facebookresearch / Detectron

FAIR's research platform for object detection research, implementing popular algorithms like Mask R-CNN and RetinaNet.
Apache License 2.0
26.22k stars 5.45k forks source link

Custom ops Error: no caffe2_library and caffe2_gpu_library in the current version of Caffe2 CMakeLists.txt #934

Open kfeng123 opened 5 years ago

kfeng123 commented 5 years ago

When make ops, there is a problem for the current version of Caffe2 (which is in pytorch now): In the CMakeLists.txt, the following two lines: target_link_library(caffe2_detectron_custom_ops caffe2_library) target_link_library(caffe2_detectron_custom_ops_gpu caffe2_gpu_library)

But there is no caffe2_library and caffe2_gpu_library in the CMakeLists.txt of the current version of Caffe2, which cause an error. How to solve it? Thank you!

nQuant commented 4 years ago

You may try every relevant solution proposed from BLOG: Installing DensePose/Detectron Don't forget to delete the build folder, then make and make ops again and again until every problem are solved.