G-API: Introduce streaming::desync and infer(ROI)#18673
Merged
opencv-pushbot merged 1 commit intoopencv:masterfrom Oct 29, 2020
Merged
G-API: Introduce streaming::desync and infer(ROI)#18673opencv-pushbot merged 1 commit intoopencv:masterfrom
opencv-pushbot merged 1 commit intoopencv:masterfrom
Conversation
e8a57aa to
47d3275
Compare
Contributor
Author
|
@TolyaTalamanov @rgarnov builds are green. Let's have a look on this one more time and get it merged then |
rgarnov
approved these changes
Oct 28, 2020
TolyaTalamanov
approved these changes
Oct 29, 2020
- desync() is a new (and for now, the only one) intrinsic which splits the graph execution into asynchronous parts when running in Streaming mode; - desync() makes no effect when compiling in Traditional mode; - Added tests on desync() working in various scenarios; - Extended GStreamingExecutor to support desync(); also extended GStreamingCompiled() with a new version of pull() returning a vector of optional values; - Fixed various issues with storing the type information & proper construction callbacks for GArray<> and GOpaque; - Introduced a new infer(Roi,GMat) overload with a sample; - Introduced an internal API for Islands to control fusion procedure (to fuse or not to fuse); - Introduced handleStopStream() callback for island executables; - Added GCompileArgs to metadata of the graph (required for other features).
47d3275 to
ca8bb8d
Compare
Contributor
Author
|
@alalek @mshabunin review complete, required builds passed. Can you please merge it? We need to have this in our baseline before next Wed. Thanks! |
dmatveev
commented
Oct 29, 2020
| auto ext = model_path.substr(sz - EXT_LEN); | ||
| std::transform(ext.begin(), ext.end(), ext.begin(), [](unsigned char c){ | ||
| return static_cast<unsigned char>(std::tolower(c)); | ||
| }); |
Contributor
Author
There was a problem hiding this comment.
so I know about cv::toLowerCase but let's address this in another MR (with a test on InferROI)
Contributor
Author
|
Fantastic! Thanks! |
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.
This patch is mainly upstreaming of a long-live internal branch.
The functionality has been tested already in the "real world" scenarios.
desync() is a new (and for now, the only one) intrinsic
which splits the graph execution into asynchronous parts
when running in Streaming mode;
desync() makes no effect when compiling in Traditional mode;
Added tests on desync() working in various scenarios;
Extended GStreamingExecutor to support desync(); also extended
GStreamingCompiled() with a new version of pull() returning a
vector of optional values;
Fixed various issues with storing the type information & proper
construction callbacks for GArray<> and GOpaque;
Introduced a new infer(Roi,GMat) overload with a sample;
Introduced an internal API for Islands to control fusion
procedure (to fuse or not to fuse);
Introduced handleStopStream() callback for island executables;
Added GCompileArgs to metadata of the graph (required for other
features).
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.