递归火山软件开发平台

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 火山 源码 类库

增加CV原生DNN模块的CUDA加速推理依赖它来了

查看数: 6084 | 评论数: 15 | 收藏 1
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2022-10-6 16:09

正文摘要:

本帖最后由 maoxiaosc 于 2022-10-7 10:32 编辑 废话不多说,先上效果: C:\Users\maoxiaosc\Desktop\caffe.png 今日得空,编译了CUDA支持的原生opencv依赖库(非onnx的lite部分),加强了DNN块的使用效率,部分 ...

回复

小星星 发表于 2023-4-22 17:51:48
我也是替换了,也有cuda环境,同样调用不了,楼上哪位朋友有解决了?给小弟指点一下呗这问题怎么这么多人遇到。
a429387333 发表于 2022-11-25 17:22:49
CUDA11.4,CUDNN8.2.2.26都装好了,无法使用

OpenCV(4.6.0) Error: No CUDA support (OpenCV was not built to work with the selected device. Please check CUDA_ARCH_PTX or CUDA_ARCH_BIN in your build configuration.) in cv::dnn::dnn4_v20220524::Net::Impl::initCUDABackend, file F:\opencv4.6\opencv\sources\modules\dnn\src\op_cuda.cpp, line 30
a429387333 发表于 2022-11-25 13:30:14
总是报错
[ INFO:0@1.324] global F:\opencv4.6\opencv\sources\modules\videoio\src\videoio_registry.cpp (223) cv::`anonymous-namespace'::VideoBackendRegistry::VideoBackendRegistry VIDEOIO: Enabled backends(8, sorted by priority): FFMPEG(1000); GSTREAMER(990); INTEL_MFX(980); MSMF(970); DSHOW(960); CV_IMAGES(950); CV_MJPEG(940); UEYE(930)
[ INFO:0@1.365] global F:\opencv4.6\opencv\sources\modules\videoio\src\backend_plugin.cpp (383) cv::impl::getPluginCandidates Found 3 plugin(s) for FFMPEG
[ INFO:0@1.377] global F:\opencv4.6\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl:ynamicLib::libraryLoad load C:\Users\noname\AppData\Roaming\VolDev\??+??\????\???\_sys_sln_tmp\samples\vprj_win\_int\DNN_ObjectDetection\debug\x64\linker\opencv_videoio_ffmpeg460_64d.dll => FAILED
[ INFO:0@1.399] global F:\opencv4.6\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl:ynamicLib::libraryLoad load opencv_videoio_ffmpeg460_64d.dll => FAILED
[ INFO:0@1.414] global F:\opencv4.6\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl:ynamicLib::libraryLoad load opencv_videoio_ffmpeg460_64.dll => OK
[ INFO:0@1.423] global F:\opencv4.6\opencv\sources\modules\videoio\src\backend_plugin.cpp (50) cv::impl:luginBackend::initCaptureAPI Found entry: 'opencv_videoio_capture_plugin_init_v1'
[ INFO:0@1.433] global F:\opencv4.6\opencv\sources\modules\videoio\src\backend_plugin.cpp (169) cv::impl:luginBackend::checkCompatibility Video I/O: initialized 'FFmpeg OpenCV Video I/O Capture plugin': built with OpenCV 4.6 (ABI/API = 1/1), current OpenCV version is '4.6.0' (ABI/API = 1/1)
[ INFO:0@1.447] global F:\opencv4.6\opencv\sources\modules\videoio\src\backend_plugin.cpp (69) cv::impl:luginBackend::initCaptureAPI Video I/O: plugin is ready to use 'FFmpeg OpenCV Video I/O Capture plugin'
[ INFO:0@1.457] global F:\opencv4.6\opencv\sources\modules\videoio\src\backend_plugin.cpp (84) cv::impl:luginBackend::initWriterAPI Found entry: 'opencv_videoio_writer_plugin_init_v1'
[ INFO:0@1.467] global F:\opencv4.6\opencv\sources\modules\videoio\src\backend_plugin.cpp (169) cv::impl:luginBackend::checkCompatibility Video I/O: initialized 'FFmpeg OpenCV Video I/O Writer plugin': built with OpenCV 4.6 (ABI/API = 1/1), current OpenCV version is '4.6.0' (ABI/API = 1/1)
[ INFO:0@1.481] global F:\opencv4.6\opencv\sources\modules\videoio\src\backend_plugin.cpp (103) cv::impl:luginBackend::initWriterAPI Video I/O: plugin is ready to use 'FFmpeg OpenCV Video I/O Writer plugin'
O
a429387333 发表于 2022-11-25 13:16:01
as853749515 发表于 2022-11-15 01:40
为什么我什么都安装好了   也配置好了    运行还是cpu   不是GPU运行呢

我也一样
as853749515 发表于 2022-11-15 01:40:13
为什么我什么都安装好了   也配置好了    运行还是cpu   不是GPU运行呢
as853749515 发表于 2022-11-15 01:39:56
为什么我的都配置好了   运行不是用的GPU   而是cpu呢   
as853749515 发表于 2022-11-15 00:53:24
我的   CUDA11.4,CUDNN8.2.2.6   都安装成功了  dll   lib  也替换了   为啥我运行的时候还是用的CPU呢   设置的英伟达CUDA推理引擎
quary888 发表于 2022-10-9 13:45:19
膜拜大神
阿丘 发表于 2022-10-9 08:11:33
CUDA加速真香

QQ|Archiver|手机版|小黑屋|递归火山软件开发平台 ( 鄂ICP备18029190号 )

GMT+8, 2024-11-24 04:35 , Processed in 0.090628 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表