Skip to content

G-API: Expose explicit preprocessing for IE Backend#23786

Merged
asmorkalov merged 8 commits intoopencv:4.xfrom
TolyaTalamanov:at/expose-preprocessing-to-ie-backend
Jun 14, 2023
Merged

G-API: Expose explicit preprocessing for IE Backend#23786
asmorkalov merged 8 commits intoopencv:4.xfrom
TolyaTalamanov:at/expose-preprocessing-to-ie-backend

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 another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the 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

@TolyaTalamanov TolyaTalamanov force-pushed the at/expose-preprocessing-to-ie-backend branch from 8fc145a to 4392782 Compare June 12, 2023 16:01
will be applied to all input layers.
@return reference to this parameter structure.
*/
Params<Net>& cfgInputLayout(std::string layout) {
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.

Won't be exposed to python because IE backend is going to be deprecated soon...

const cv::gapi::ie::TraitAs hint,
const IE::Layout layout) {
const auto &sz = mat.size;
if (sz.dims() == 2 && hint == cv::gapi::ie::TraitAs::IMAGE)
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.

sz.dims() == 2 is not even needed there (Image by design 2d) but it also used from our tests

layer_name,
layout, layer_name,
cv::util::optional<cv::Rect>{});
std::cout << std::endl;
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.

Remove

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.

Done

);
}

static void configureOutputLayout(const IE::OutputsDataMap &outputs_info,
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.

Maybe it's not even worth a separate function...

@TolyaTalamanov
Copy link
Copy Markdown
Contributor Author

@asmorkalov is there any chance to merge it?

@asmorkalov asmorkalov added this to the 4.8.0 milestone Jun 13, 2023
@TolyaTalamanov TolyaTalamanov changed the title G-API: Expose explicit preprocessing for IE Backend WIP: G-API Expose explicit preprocessing for IE Backend Jun 13, 2023
@TolyaTalamanov
Copy link
Copy Markdown
Contributor Author

requires a little fix, moved to WIP so far...

@TolyaTalamanov TolyaTalamanov changed the title WIP: G-API Expose explicit preprocessing for IE Backend G-API Expose explicit preprocessing for IE Backend Jun 13, 2023
@TolyaTalamanov TolyaTalamanov changed the title G-API Expose explicit preprocessing for IE Backend G-API: Expose explicit preprocessing for IE Backend Jun 13, 2023
@TolyaTalamanov
Copy link
Copy Markdown
Contributor Author

requires a little fix, moved to WIP so far...

Done

@dmatveev
Copy link
Copy Markdown
Contributor

dmatveev commented Jun 14, 2023

Yes, please merge

@asmorkalov asmorkalov merged commit b854d4e into opencv:4.x Jun 14, 2023
@asmorkalov asmorkalov mentioned this pull request Jul 12, 2023
thewoz pushed a commit to thewoz/opencv that referenced this pull request Jan 4, 2024
…essing-to-ie-backend

G-API: Expose explicit preprocessing for IE Backend opencv#23786

### 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 another license that is incompatible with OpenCV
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the 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
thewoz pushed a commit to thewoz/opencv that referenced this pull request May 29, 2024
…essing-to-ie-backend

G-API: Expose explicit preprocessing for IE Backend opencv#23786

### 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 another license that is incompatible with OpenCV
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the 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
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.

3 participants