Skip to content

DNN test failures with CuDNN support #22623

@asenyaev

Description

@asenyaev

System Information

OpenCV version: 4.6.0
Operating System / Platform: Ubuntu 20.04
Compiler & compiler version: GCC 9.4.0

Detailed description

There are several failed DNN tests if to build OpenCV with CuDNN (8.6.0 version) support.

The pipeline log is here.

Failed tests:

[  FAILED  ] 40 tests, listed below:
[  FAILED  ] Test_Model.TextRecognition/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_Model.TextRecognition/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_Model.TextRecognitionWithCTCPrefixBeamSearch/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_Model.TextRecognitionWithCTCPrefixBeamSearch/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Convolution3D/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Convolution3D_bias/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Shape/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.Shape/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Power/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.Power/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Elementwise_Log/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.Elementwise_Log/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Elementwise_not/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.Elementwise_not/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Compare_EQ/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.Compare_EQ/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Compare_GT/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.Compare_GT/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Compare_LT/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.Compare_LT/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Compare_GTorEQ/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.Compare_GTorEQ/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Compare_LEorEQ/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.Compare_LEorEQ/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Eltwise3D/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.Eltwise3D/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.PoolConv3D/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Div/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.Div/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.Split/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.Split/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_layers.LSTM_Activations/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.SubFromConst/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_layers.SubFromConst/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_nets.LResNet100E_IR/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_nets.Emotion_ferplus/0, where GetParam() = CUDA/CUDA
[  FAILED  ] Test_ONNX_nets.Emotion_ferplus/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_ONNX_nets.Resnet34_kinetics/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_TensorFlow_layers.Convolution3D/1, where GetParam() = CUDA/CUDA_FP16
[  FAILED  ] Test_TensorFlow_layers.concat_3d/1, where GetParam() = CUDA/CUDA_FP16
More details about each of them:

[ RUN      ] Test_Model.TextRecognition/0, where GetParam() = CUDA/CUDA
/home/ci/opencv/modules/dnn/test/test_model.cpp:148: Failure
Expected equality of these values:
  results[0]
    Which is: ""
  seq
    Which is: "welcome"
ROI[0]: /home/ci/opencv_extra/testdata/dnn/text_rec_test.png
/home/ci/opencv/modules/dnn/test/test_model.cpp:149: Failure
Expected equality of these values:
  results[1]
    Which is: ""
  seq
    Which is: "welcome"
ROI[1]: /home/ci/opencv_extra/testdata/dnn/text_rec_test.png
[  FAILED  ] Test_Model.TextRecognition/0, where GetParam() = CUDA/CUDA (120 ms)

---

[ RUN      ] Test_Model.TextRecognition/1, where GetParam() = CUDA/CUDA_FP16
/home/ci/opencv/modules/dnn/test/test_model.cpp:140: Failure
Expected equality of these values:
  result
    Which is: ""
  seq
    Which is: "welcome"
Full frame: /home/ci/opencv_extra/testdata/dnn/text_rec_test.png
/home/ci/opencv/modules/dnn/test/test_model.cpp:148: Failure
Expected equality of these values:
  results[0]
    Which is: ""
  seq
    Which is: "welcome"
ROI[0]: /home/ci/opencv_extra/testdata/dnn/text_rec_test.png
/home/ci/opencv/modules/dnn/test/test_model.cpp:149: Failure
Expected equality of these values:
  results[1]
    Which is: ""
  seq
    Which is: "welcome"
ROI[1]: /home/ci/opencv_extra/testdata/dnn/text_rec_test.png
[  FAILED  ] Test_Model.TextRecognition/1, where GetParam() = CUDA/CUDA_FP16 (701 ms)

---

[ RUN      ] Test_Model.TextRecognitionWithCTCPrefixBeamSearch/0, where GetParam() = CUDA/CUDA
/home/ci/opencv/modules/dnn/test/test_model.cpp:140: Failure
Expected equality of these values:
  result
    Which is: ""
  seq
    Which is: "welcome"
Full frame: /home/ci/opencv_extra/testdata/dnn/text_rec_test.png
/home/ci/opencv/modules/dnn/test/test_model.cpp:148: Failure
Expected equality of these values:
  results[0]
    Which is: ""
  seq
    Which is: "welcome"
ROI[0]: /home/ci/opencv_extra/testdata/dnn/text_rec_test.png
/home/ci/opencv/modules/dnn/test/test_model.cpp:149: Failure
Expected equality of these values:
  results[1]
    Which is: ""
  seq
    Which is: "welcome"
ROI[1]: /home/ci/opencv_extra/testdata/dnn/text_rec_test.png
[  FAILED  ] Test_Model.TextRecognitionWithCTCPrefixBeamSearch/0, where GetParam() = CUDA/CUDA (89 ms)

---

[ RUN      ] Test_Model.TextRecognitionWithCTCPrefixBeamSearch/1, where GetParam() = CUDA/CUDA_FP16
/home/ci/opencv/modules/dnn/test/test_model.cpp:140: Failure
Expected equality of these values:
  result
    Which is: ""
  seq
    Which is: "welcome"
Full frame: /home/ci/opencv_extra/testdata/dnn/text_rec_test.png
/home/ci/opencv/modules/dnn/test/test_model.cpp:148: Failure
Expected equality of these values:
  results[0]
    Which is: ""
  seq
    Which is: "welcome"
ROI[0]: /home/ci/opencv_extra/testdata/dnn/text_rec_test.png
/home/ci/opencv/modules/dnn/test/test_model.cpp:149: Failure
Expected equality of these values:
  results[1]
    Which is: ""
  seq
    Which is: "welcome"
ROI[1]: /home/ci/opencv_extra/testdata/dnn/text_rec_test.png
[  FAILED  ] Test_Model.TextRecognitionWithCTCPrefixBeamSearch/1, where GetParam() = CUDA/CUDA_FP16 (710 ms)

---

[ RUN      ] Test_ONNX_layers.Convolution3D/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/convolution.hpp:303: error: (-217:Gpu API call) cuDNN did not return a suitable algorithm for convolution. in function 'ConvolutionAlgorithm'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Convolution3D/1, where GetParam() = CUDA/CUDA_FP16 (3 ms)

---

[ RUN      ] Test_ONNX_layers.Convolution3D_bias/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/convolution.hpp:303: error: (-217:Gpu API call) cuDNN did not return a suitable algorithm for convolution. in function 'ConvolutionAlgorithm'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Convolution3D_bias/1, where GetParam() = CUDA/CUDA_FP16 (3 ms)

---

[ RUN      ] Test_ONNX_layers.Shape/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Shape/0, where GetParam() = CUDA/CUDA (4 ms)

---

[ RUN      ] Test_ONNX_layers.Shape/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Shape/1, where GetParam() = CUDA/CUDA_FP16 (4 ms)

---

[ RUN      ] Test_ONNX_layers.Power/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Power/0, where GetParam() = CUDA/CUDA (4 ms)

---

[ RUN      ] Test_ONNX_layers.Power/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Power/1, where GetParam() = CUDA/CUDA_FP16 (3 ms)

---

[ RUN      ] Test_ONNX_layers.Elementwise_Log/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Elementwise_Log/0, where GetParam() = CUDA/CUDA (3 ms)

---

[ RUN      ] Test_ONNX_layers.Elementwise_Log/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Elementwise_Log/1, where GetParam() = CUDA/CUDA_FP16 (4 ms)

---

[ RUN      ] Test_ONNX_layers.Elementwise_not/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Elementwise_not/0, where GetParam() = CUDA/CUDA (4 ms)

---

[ RUN      ] Test_ONNX_layers.Elementwise_not/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Elementwise_not/1, where GetParam() = CUDA/CUDA_FP16 (3 ms)

---

[ RUN      ] Test_ONNX_layers.Compare_EQ/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Compare_EQ/0, where GetParam() = CUDA/CUDA (4 ms)

---

[ RUN      ] Test_ONNX_layers.Compare_EQ/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Compare_EQ/1, where GetParam() = CUDA/CUDA_FP16 (4 ms)

---

[ RUN      ] Test_ONNX_layers.Compare_GT/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Compare_GT/0, where GetParam() = CUDA/CUDA (4 ms)

---

[ RUN      ] Test_ONNX_layers.Compare_GT/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Compare_GT/1, where GetParam() = CUDA/CUDA_FP16 (4 ms)

---

[ RUN      ] Test_ONNX_layers.Compare_LT/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Compare_LT/0, where GetParam() = CUDA/CUDA (4 ms)

---

[ RUN      ] Test_ONNX_layers.Compare_LT/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Compare_LT/1, where GetParam() = CUDA/CUDA_FP16 (3 ms)

---

[ RUN      ] Test_ONNX_layers.Compare_GTorEQ/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Compare_GTorEQ/0, where GetParam() = CUDA/CUDA (4 ms)

---

[ RUN      ] Test_ONNX_layers.Compare_GTorEQ/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Compare_GTorEQ/1, where GetParam() = CUDA/CUDA_FP16 (4 ms)

---

[ RUN      ] Test_ONNX_layers.Compare_LEorEQ/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Compare_LEorEQ/0, where GetParam() = CUDA/CUDA (4 ms)

---

[ RUN      ] Test_ONNX_layers.Compare_LEorEQ/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Compare_LEorEQ/1, where GetParam() = CUDA/CUDA_FP16 (4 ms)

---

[ RUN      ] Test_ONNX_layers.Eltwise3D/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Eltwise3D/0, where GetParam() = CUDA/CUDA (4 ms)

---

[ RUN      ] Test_ONNX_layers.Eltwise3D/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Eltwise3D/1, where GetParam() = CUDA/CUDA_FP16 (3 ms)

---

[ RUN      ] Test_ONNX_layers.PoolConv3D/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/convolution.hpp:303: error: (-217:Gpu API call) cuDNN did not return a suitable algorithm for convolution. in function 'ConvolutionAlgorithm'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.PoolConv3D/1, where GetParam() = CUDA/CUDA_FP16 (3 ms)

---

[ RUN      ] Test_ONNX_layers.Div/0, where GetParam() = CUDA/CUDA
FALLBACK: Layer [NaryEltwise]:[onnx_node_output_0!2] is expected to has backend implementation
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/test/test_common.hpp:214: error: (-213:The function/feature is not implemented) Implementation fallbacks are not expected in this test in function 'expectNoFallbacks'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Div/0, where GetParam() = CUDA/CUDA (3 ms)

---

[ RUN      ] Test_ONNX_layers.Div/1, where GetParam() = CUDA/CUDA_FP16
FALLBACK: Layer [NaryEltwise]:[onnx_node_output_0!2] is expected to has backend implementation
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/test/test_common.hpp:214: error: (-213:The function/feature is not implemented) Implementation fallbacks are not expected in this test in function 'expectNoFallbacks'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Div/1, where GetParam() = CUDA/CUDA_FP16 (4 ms)

---

[ RUN      ] Test_ONNX_layers.Split/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Split/0, where GetParam() = CUDA/CUDA (16 ms)

---

[ RUN      ] Test_ONNX_layers.Split/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.Split/1, where GetParam() = CUDA/CUDA_FP16 (17 ms)

---

[ RUN      ] Test_ONNX_layers.LSTM_Activations/0, where GetParam() = CUDA/CUDA
/home/ci/opencv/modules/dnn/test/test_common.impl.hpp:74: Failure
Expected: (normL1) <= (l1), actual: 0.0435941 vs 1e-05
  |ref| = 0.16841614246368408
/home/ci/opencv/modules/dnn/test/test_common.impl.hpp:77: Failure
Expected: (normInf) <= (lInf), actual: 0.168416 vs 0.0001
  |ref| = 0.16841614246368408
[  FAILED  ] Test_ONNX_layers.LSTM_Activations/0, where GetParam() = CUDA/CUDA (5 ms)

---

[ RUN      ] Test_ONNX_layers.SubFromConst/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.SubFromConst/0, where GetParam() = CUDA/CUDA (3 ms)

---

[ RUN      ] Test_ONNX_layers.SubFromConst/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_layers.SubFromConst/1, where GetParam() = CUDA/CUDA_FP16 (3 ms)

---

[ RUN      ] Test_ONNX_nets.LResNet100E_IR/1, where GetParam() = CUDA/CUDA_FP16
/home/ci/opencv/modules/dnn/test/test_common.impl.hpp:74: Failure
Expected: (normL1) <= (l1), actual: 0.00869873 vs 0.008
  |ref| = 3.3252670764923096
[  FAILED  ] Test_ONNX_nets.LResNet100E_IR/1, where GetParam() = CUDA/CUDA_FP16 (1887 ms)

---

[ RUN      ] Test_ONNX_nets.Emotion_ferplus/0, where GetParam() = CUDA/CUDA
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_nets.Emotion_ferplus/0, where GetParam() = CUDA/CUDA (76 ms)

---

[ RUN      ] Test_ONNX_nets.Emotion_ferplus/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:43: error: (-215:Assertion failed) is_shape_same(dest, src) in function 'copy'
" thrown in the test body.
[  FAILED  ] Test_ONNX_nets.Emotion_ferplus/1, where GetParam() = CUDA/CUDA_FP16 (72 ms)

---

[ RUN      ] Test_ONNX_nets.Resnet34_kinetics/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/convolution.hpp:303: error: (-217:Gpu API call) cuDNN did not return a suitable algorithm for convolution. in function 'ConvolutionAlgorithm'
" thrown in the test body.
[  FAILED  ] Test_ONNX_nets.Resnet34_kinetics/1, where GetParam() = CUDA/CUDA_FP16 (522 ms)

---

[ RUN      ] Test_TensorFlow_layers.Convolution3D/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/convolution.hpp:303: error: (-217:Gpu API call) cuDNN did not return a suitable algorithm for convolution. in function 'ConvolutionAlgorithm'
" thrown in the test body.
[  FAILED  ] Test_TensorFlow_layers.Convolution3D/1, where GetParam() = CUDA/CUDA_FP16 (3 ms)

---

[ RUN      ] Test_TensorFlow_layers.concat_3d/1, where GetParam() = CUDA/CUDA_FP16
unknown file: Failure
C++ exception with description "OpenCV(4.6.0-dev) /home/ci/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/convolution.hpp:303: error: (-217:Gpu API call) cuDNN did not return a suitable algorithm for convolution. in function 'ConvolutionAlgorithm'
" thrown in the test body.
[  FAILED  ] Test_TensorFlow_layers.concat_3d/1, where GetParam() = CUDA/CUDA_FP16 (4 ms)

Steps to reproduce

Build OpenCV with CUDA and CuDNN:

  1. Clone OpenCV
git clone --branch 4.x https://github.com/opencv/opencv.git
  1. Clone OpenCV Contrib
git clone --branch 4.x https://github.com/opencv/opencv_contrib.git
  1. Clone OpenCV Extra for tests
git clone --branch 4.x https://github.com/opencv/opencv_extra.git
  1. Generate OpenCV with flags
cmake -B build -DBUILD_DOCS=ON -DPYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 -DBUILD_EXAMPLES=ON -DOPENCV_ENABLE_NONFREE=ON -DWITH_CUDA=ON -DBUILD_LIST=dnn,cudev,ts -DCUDA_ARCH_BIN=6.1 -DWITH_VA=OFF -DOPENCV_EXTRA_MODULES_PATH=opencv_contrib/modules opencv
  1. Build OpenCV
cmake --build build --target install -j $(nproc)
  1. Set OPENCV_TEST_DATA_PATH env variable:
export OPENCV_TEST_DATA_PATH=$(pwd)/opencv_extra/testdata
  1. Run DNN tests
cd build && ./bin/opencv_test_dnn

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions