You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/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
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
The text was updated successfully, but these errors were encountered:
------------------ Original ------------------
From: YingChao Zeng ***@***.***>
Date: Tue,Jan 2,2024 10:10 PM
To: Be997398715/EAO-SLAM-Improve ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [Be997398715/EAO-SLAM-Improve] /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); (Issue #5)
您好,想请问一下这个问题是否遇到过,如何进行修改,
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
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
您好,想请问一下这个问题是否遇到过,如何进行修改,
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
The text was updated successfully, but these errors were encountered: