G-API: ONNX. Support tensor input for CNN with dynamic input #18744
Merged
alalek merged 12 commits intoopencv:masterfrom Nov 16, 2020
Merged
G-API: ONNX. Support tensor input for CNN with dynamic input #18744alalek merged 12 commits intoopencv:masterfrom
alalek merged 12 commits intoopencv:masterfrom
Conversation
Contributor
Author
|
@alalek Please add tinyyolov2-8.onnx for bb custom ONNX. I added it to PR description. One test throws: Can't find required data file: vision/object_detection_segmentation/tiny-yolov2/model/tinyyolov2-8.onnx |
added 2 commits
November 10, 2020 15:39
Contributor
Author
|
@dmatveev Last words about it. |
dmatveev
approved these changes
Nov 16, 2020
Contributor
dmatveev
left a comment
There was a problem hiding this comment.
"Approved with comments" 👍
Please fix the stuff in the follow-up MR.
| const int size = in.total(); | ||
| for (int i = 0; i < size; ++i) { | ||
| optr[i] = inptr[i]; | ||
| } |
Contributor
There was a problem hiding this comment.
Mat::copyTo() is enough, assuming sizes are equal.
Merged
a-sajjad72
pushed a commit
to a-sajjad72/opencv
that referenced
this pull request
Mar 30, 2023
…ut-tensor G-API: ONNX. Support tensor input for CNN with dynamic input * Added support for dynamic input tensor, refactored one input/output tests * Added multiple input/output fixture, test for mobilenet * Removed whitespace * Removed mistake in inferROI * Small fixes * One more fix * Code cleanup * Code cleanup X2 * bb rstrt * Fix review comments * One more fix review comments * Mistake
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.
ONNX. Support tensor input for CNN with dynamic input
Added new tests and refactored olds.
New tests:
Refactored tests:
Tests contain unsupported(OCV bb) models:
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.