Skip to content

YOLO11 models do not operate with the CUDA and CUDA FP16 targets (OpenCV 4.10.0) #26566

@Morozov2012

Description

@Morozov2012

System Information

OpenCV 4.10.0
Windows 11 Pro
JDK 23.0.1
CUDA 12.4
CuDNN cudnn-windows-x86_64-9.0.0.312_cuda12

Detailed description

YOLO11 models do not operate with the CUDA and CUDA FP16 targets. Meanwhile, it operates well with the CPU target.

Steps to reproduce

For instance, the yolo11n.onnx model (https://dropmefiles.com/w332f) throws the following error:

Caused by: CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.10.0-dev) G:\opencv-4.x\modules\dnn\src\net_impl_fuse.cpp:608: error: (-215:Assertion failed) biasLayerData->outputBlobsWrappers.size() == 1 in function 'cv::dnn::dnn4_v20240521::Net::Impl::fuseLayers'
]
at org.opencv.dnn.Net.forward_4(Native Method)
at org.opencv.dnn.Net.forward(Net.java:352)

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

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions