Skip to content

[G-API] Implement async infer#19425

Merged
alalek merged 2 commits intoopencv:masterfrom
TolyaTalamanov:at/async-infer
Feb 12, 2021
Merged

[G-API] Implement async infer#19425
alalek merged 2 commits intoopencv:masterfrom
TolyaTalamanov:at/async-infer

Conversation

@TolyaTalamanov
Copy link
Copy Markdown
Contributor

Pull Request Readiness Checklist

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

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake
Xforce_builders_only=linux,docs
force_builders=Custom,Custom Win,Custom Mac
build_gapi_standalone:Linux x64=ade-0.1.1f
build_gapi_standalone:Win64=ade-0.1.1f
build_gapi_standalone:Mac=ade-0.1.1f
build_gapi_standalone:Linux x64 Debug=ade-0.1.1f

Xbuild_image:Custom=centos:7
Xbuildworker:Custom=linux-1
build_gapi_standalone:Custom=ade-0.1.1f

build_image:Custom=ubuntu-openvino-2021.1.0:20.04
build_image:Custom Win=openvino-2021.1.0
build_image:Custom Mac=openvino-2021.1.0

test_modules:Custom=gapi
test_modules:Custom Win=gapi
test_modules:Custom Mac=gapi

buildworker:Custom=linux-1
# disabled due high memory usage: test_opencl:Custom=ON
test_opencl:Custom=OFF
test_bigdata:Custom=1
test_filter:Custom=*

@TolyaTalamanov TolyaTalamanov changed the title [WIP] Implement async infer [WIP] [G-API] Implement async infer Jan 29, 2021
@alalek
Copy link
Copy Markdown
Member

alalek commented Jan 30, 2021

whitespace opencv failed

I believe it is a time to configure git hooks: https://github.com/opencv/opencv/wiki/How_to_contribute

@TolyaTalamanov TolyaTalamanov force-pushed the at/async-infer branch 4 times, most recently from ee439d4 to 1b0200d Compare January 31, 2021 17:23
@TolyaTalamanov TolyaTalamanov changed the title [WIP] [G-API] Implement async infer [G-API] Implement async infer Jan 31, 2021
validate();
}

TEST(Infer, TestStreamingInfer)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again huge code duplication, should it be solved in separate task ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed a task.

@TolyaTalamanov TolyaTalamanov force-pushed the at/async-infer branch 2 times, most recently from 2d38880 to dd6c8e3 Compare January 31, 2021 20:25
@TolyaTalamanov
Copy link
Copy Markdown
Contributor Author

@AsyaPronina @smirnov-alexey Could you have a look ?

@smirnov-alexey smirnov-alexey self-requested a review February 4, 2021 12:24
Copy link
Copy Markdown
Contributor

@smirnov-alexey smirnov-alexey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@TolyaTalamanov
Copy link
Copy Markdown
Contributor Author

@AsyaPronina could you have a look ?

Copy link
Copy Markdown
Contributor

@dmatveev dmatveev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No clear change overview given in the description :(

Copy link
Copy Markdown
Contributor

@dmatveev dmatveev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, let's merge this!
Waiting for nireq to come!

@TolyaTalamanov
Copy link
Copy Markdown
Contributor Author

@alalek

@alalek alalek merged commit ba8d20e into opencv:master Feb 12, 2021
inline IE::Blob::Ptr extractBlob(IECallContext& ctx, std::size_t i, Views& views) {
switch (ctx.in_shapes[i]) {
inline IE::Blob::Ptr extractBlob(IECallContext& ctx, std::size_t i) {
switch (ctx.inShape(i)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TolyaTalamanov
There are several warnings in Windows builds with IE.
Please take a look.

C:\build\precommit_custom_windows\opencv\modules\gapi\src\backends\ie\giebackend.cpp(467): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [C:\build\precommit_custom_windows\build\modules\gapi\opencv_gapi.vcxproj]
C:\build\precommit_custom_windows\opencv\modules\gapi\src\backends\ie\giebackend.cpp(631): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [C:\build\precommit_custom_windows\build\modules\gapi\opencv_gapi.vcxproj]
C:\build\precommit_custom_windows\opencv\modules\gapi\src\backends\ie\giebackend.cpp(660): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [C:\build\precommit_custom_windows\build\modules\gapi\opencv_gapi.vcxproj]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! Will be fixed in there: #19533

@alalek alalek mentioned this pull request Apr 9, 2021
a-sajjad72 pushed a commit to a-sajjad72/opencv that referenced this pull request Mar 30, 2023
[G-API] Implement async infer

* Implement async infer

* Fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants