Merged
Conversation
New sanity data for resize interarea perfomance test.
…erElements_ONNX Merge with opencv/opencv#24092 This pull request serves as an addition to the pull request "GSoC Add ONNX Support for GatherElements #24092", which is submitted to the original OpenCV repository. It contains three tests to the GatherElements operator. The three tests are sourced from: * https://github.com/onnx/onnx/tree/main/onnx/backend/test/data/node/test_gather_elements_0 * https://github.com/onnx/onnx/tree/main/onnx/backend/test/data/node/test_gather_elements_1 * https://github.com/onnx/onnx/tree/main/onnx/backend/test/data/node/test_gather_elements_negative_indices And the models were configured using the code provided by Yuantao Feng at https://github.com/fengyuentau/onnx_utils to confirm output shape in pre-run. --- Reference outputs for `optical_flow_estimation_raft_2023aug.onnx` is generated with the following script: ```python import cv2 as cv import numpy as np img1 = cv.imread("./opencv_extra/testdata/gpu/opticalflow/frame0.png") img2 = cv.imread("./opencv_extra/testdata/gpu/opticalflow/frame1.png") img1_blob = cv.cvtColor(img1, cv.COLOR_BGR2RGB) img1_blob = cv.resize(img1_blob, (480, 360)) # source: (1, 3, 388, 584) # target: 1, 3, 360, 480 img1_blob = cv.dnn.blobFromImage(img1_blob) # source: (1, 3, 388, 584) # target: 1, 3, 360, 480 img2_blob = cv.cvtColor(img2, cv.COLOR_BGR2RGB) img2_blob = cv.resize(img2_blob, (480, 360)) img2_blob = cv.dnn.blobFromImage(img2_blob) print(img1_blob.shape, img2_blob.shape) import onnxruntime as ort net = ort.InferenceSession("optical_flow_estimation_raft_2023aug.onnx", providers=["CPUExecutionProvider"]) output = net.run(["12007", "12006"], {"0": img1_blob, "1": img2_blob}) np.save("output_optical_flow_estimation_raft_2023aug_0.npy", output[0]) np.save("output_optical_flow_estimation_raft_2023aug_1.npy", output[1]) print(output[0].shape) print(output[1].shape) ```
…ce-flag Added test for cumsum exclusive inplace
Test case for Einsum ellipse functionality opencv#1106 This PR contains test case for Einsum Ellipses addition patch [#24322](opencv/opencv#24322)
This was referenced Nov 2, 2023
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#1082 from Aser-Abdelfatah:GSoC_Support_GatherElements_ONNX
#1106 from Abdurrahheem:ash/dev_einsum_ellips
#1108 from asmorkalov:as/resize_interarea_perf
#1110 from alexlyulkov:al/fixed-cumsum-inplace-flag
Previous "Merge 4.x": #1109