Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/home/die/WorkSpace/EAO-SLAM-FINAL/include/yolo_track/yolov3.h: In constructor ‘ORB_SLAM2::YOLO::YOLO()’: /home/die/WorkSpace/EAO-SLAM-FINAL/include/yolo_track/yolov3.h:240:53: error: ‘DNN_TARGET_CUDA’ is not a member of ‘cv::dnn’ 240 | this->net_yolo.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA); | ^~~~~~~~~~~~~~~ /home/die/WorkSpace/EAO-SLAM-FINAL/include/yolo_track/yolov3.h:241:54: error: ‘DNN_BACKEND_CUDA’ is not a member of ‘cv::dnn’ 241 | this->net_yolo.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA); #5

Open
z2415445508 opened this issue Jan 2, 2024 · 1 comment

Comments

@z2415445508
Copy link

您好,想请问一下这个问题是否遇到过,如何进行修改,
Env:
OpenCV3.4.16
Ubuntu20.04
CUDA11.8

In file included from /home/die/WorkSpace/EAO-SLAM-FINAL/include/Frame.h:33,
from /home/die/WorkSpace/EAO-SLAM-FINAL/src/Frame.cc:13:
/home/die/WorkSpace/EAO-SLAM-FINAL/include/yolo_track/yolov3.h: In constructor ‘ORB_SLAM2::YOLO::YOLO()’:
/home/die/WorkSpace/EAO-SLAM-FINAL/include/yolo_track/yolov3.h:240:53: error: ‘DNN_TARGET_CUDA’ is not a member of ‘cv::dnn’
240 | this->net_yolo.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA);
| ^~~~~~~~~~~~~~~
/home/die/WorkSpace/EAO-SLAM-FINAL/include/yolo_track/yolov3.h:241:54: error: ‘DNN_BACKEND_CUDA’ is not a member of ‘cv::dnn’
241 | this->net_yolo.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA);
| ^~~~~~~~~~~~~~~~
In file included from /home/die/WorkSpace/EAO-SLAM-FINAL/include/Frame.h:33,
from /home/die/WorkSpace/EAO-SLAM-FINAL/include/Tracking.h:18,
from /home/die/WorkSpace/EAO-SLAM-FINAL/include/System.h:29,
from /home/die/WorkSpace/EAO-SLAM-FINAL/src/System.cc:23:
/home/die/WorkSpace/EAO-SLAM-FINAL/include/yolo_track/yolov3.h: In constructor ‘ORB_SLAM2::YOLO::YOLO()’:
/home/die/WorkSpace/EAO-SLAM-FINAL/include/yolo_track/yolov3.h:240:53: error: ‘DNN_TARGET_CUDA’ is not a member of ‘cv::dnn’
240 | this->net_yolo.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA);
| ^~~~~~~~~~~~~~~
/home/die/WorkSpace/EAO-SLAM-FINAL/include/yolo_track/yolov3.h:241:54: error: ‘DNN_BACKEND_CUDA’ is not a member of ‘cv::dnn’
241 | this->net_yolo.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA);
| ^~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:63: CMakeFiles/ORB_SLAM2.dir/src/Frame.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:76: CMakeFiles/ORB_SLAM2.dir/src/System.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:163: CMakeFiles/ORB_SLAM2.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

@Be997398715
Copy link
Owner

Be997398715 commented Feb 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants