Skip to content

Using Yolov8 onnx model for target detection throughC++ and OPENCV-CUDA version (GPU) can't not get the right result,all results is 0 0 0 0, #24635

@CV-AI-WORLD

Description

@CV-AI-WORLD

System Information

OpenCV version: 4.8.0
Operating System / Platform: Windows 11
CUDA:11.8
the graphics card model : NVIDIA GeForce GTX 4070 Ti NVIDIA GeForce GTX 2070 Ti

Detailed description

I debug,find the Yolov8 Layer"onnx_node!/model.22/Sub" and Layer "onnx_node!/model.22/Sub_1" don't support "DNN_BACKEND_CUDA"
屏幕截图 2023-12-03 145442
屏幕截图 2023-12-03 145529

Steps to reproduce

if(!layer->supportBackend(cv::dnn:DNN_BACKEND_CUDA))
{
cout<< "Layer"<<layerNames[i]<<"does not support running on CUDA"
}

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions