opencv/modules
alexlyulkov 6af0394cd2
Merge pull request #25458 from alexlyulkov:al/dnn-openvino-int-support
Added int support for OpenVINO dnn backend #25458

Modified dnn OpenVINO integration to support type inference and int operations.

Added OpenVINO support to Cast, CumSum, Expand, Gather, GatherElements, Scatter, ScatterND, Tile layers.
I tried to add Reduce layer, but looks like OpenVINO uses float values inside Reduce operation so it can't pass our int tests.

OpenVINO uses int32 precision for int64 operations, so I've modified input values for int64 tests when backend is OpenVINO.

OpenVINO has a strange behavior with custom layers and int64 values. After model compilation OpenVINO may change types, so the model can have different output type. That's why these tests were disabled:
- Test_ArgMax_Int.random/0, where GetParam() = (4, NGRAPH/CPU)
- Test_ArgMax_Int.random/6, where GetParam() = (11, NGRAPH/CPU)
- Test_Reduce_Int.random/6, where GetParam() = (11, NGRAPH/CPU)
- Test_Reduce_Int.two_axes/6, where GetParam() = (11, NGRAPH/CPU)

Also these tests were temporary disabled, they didn't work on both 4.x and 5.x branches:
- Test_Caffe_layers.layer_prelu_fc/0, where GetParam() = NGRAPH/CPU
- Test_ONNX_layers.LSTM_Activations/0, where GetParam() = NGRAPH/CPU
- Test_ONNX_layers.Quantized_Convolution/0, where GetParam() = NGRAPH/CPU
- Test_ONNX_layers.Quantized_Eltwise_Scalar/0, where GetParam() = NGRAPH/CPU
- Test_TFLite.EfficientDet_int8/0, where GetParam() = NGRAPH/CPU


### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
2024-05-15 11:51:59 +03:00
..
3d Merge pull request #25428 from asmorkalov:as/win32_arm_ci_5.x 2024-04-22 15:56:08 +03:00
calib Merge branch 4.x 2024-04-16 17:28:18 +03:00
core Merge pull request #25487 from Abdurrahheem:ash/01D-additional-fixes 2024-05-15 10:50:03 +03:00
dnn Merge pull request #25458 from alexlyulkov:al/dnn-openvino-int-support 2024-05-15 11:51:59 +03:00
features2d Merge branch 4.x 2024-04-22 11:08:39 +03:00
flann Merge pull request #25024 from vrabaud:neon 2024-02-20 11:29:23 +03:00
gapi Merge branch 4.x 2024-04-10 11:27:47 +03:00
highgui Merge branch 4.x 2024-04-22 11:08:39 +03:00
imgcodecs Merge branch 4.x 2024-04-22 11:08:39 +03:00
imgproc Merge branch 4.x 2024-04-22 11:08:39 +03:00
java Merge branch 4.x 2024-04-02 16:39:54 +03:00
js Merge pull request #25324 from kaingwade:clean_haarcascades_jsbindings 2024-04-27 14:37:40 +03:00
objc Merge branch 4.x 2024-01-19 17:32:22 +03:00
objdetect Merge branch 4.x 2024-04-16 17:28:18 +03:00
photo Merge branch 4.x 2024-04-22 11:08:39 +03:00
python Merge branch 4.x 2024-04-16 17:28:18 +03:00
stereo Merge pull request #25161 from mshabunin:doc-upgrade-5.x 2024-03-06 08:50:31 +03:00
stitching Merge pull request #25075 from mshabunin:cleanup-imgproc-1 2024-03-05 12:18:31 +03:00
ts Merge branch 4.x 2024-04-02 16:39:54 +03:00
video Merge pull request #25503 from WanliZhong:remove_goturn 2024-05-06 11:57:30 +03:00
videoio Merge branch 4.x 2024-04-22 11:08:39 +03:00
world cmake: use /INCREMENTAL:NO with MSVS 2015 2023-12-07 19:46:27 +00:00
CMakeLists.txt Merge pull request #25017 from kaingwade:ml_to_contrib 2024-02-27 15:54:08 +03:00