Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ref][Core][Opset13] NMSRotated-13 core shell and reference implementation #19907

Merged
merged 72 commits into from
Sep 29, 2023

Conversation

mitruska
Copy link
Contributor

@mitruska mitruska commented Sep 18, 2023

Details:

  • NMSRotated-13 core shell and reference implementation
  • The base code and logic for v9 non_max_suppresion reference is almost the same (potential unification can be applied later), the main differences are:
    -- box representation as rotated box (x_ctr, y_ctr, width, height, angle_radians)
    -- calculation of intersection over union for rotated boxes (area of convex polygon needed)
    -- clockwise attribute for rotation direction
  • PR with spec: [Spec][Opset13] NMSRotated-13 specification #19574
  • ONNX FE NMSRotated import (preview)

Tickets:

  • 115301, 115306, 115302, 118945

@mitruska mitruska added the WIP work in progress label Sep 18, 2023
@github-actions github-actions bot added category: Core OpenVINO Core (aka ngraph) category: TEMPLATE OpenVINO Template plugin category: ONNX FE OpenVINO ONNX FrontEnd category: CPP API OpenVINO CPP API bindings labels Sep 18, 2023
@mitruska mitruska self-assigned this Sep 18, 2023
@mitruska mitruska added the category: Opset OpenVINO Opset label Sep 18, 2023
@mitruska mitruska requested a review from a team as a code owner September 25, 2023 14:15
@github-actions github-actions bot removed the category: Python API OpenVINO Python bindings label Sep 25, 2023
@mitruska mitruska requested review from praasz and mlukasze September 25, 2023 14:17
Copy link
Contributor

@praasz praasz left a comment

Choose a reason for hiding this comment

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

Fix CIs, please.

@mitruska mitruska requested review from a team as code owners September 26, 2023 12:25
@github-actions github-actions bot added the category: IE Tests OpenVINO Test: plugins and common label Sep 26, 2023
@mitruska
Copy link
Contributor Author

Waiting for legal approval (cc: @mlukasze)

@mlukasze mlukasze enabled auto-merge (squash) September 27, 2023 05:27
@mlukasze mlukasze merged commit 86bf038 into openvinotoolkit:master Sep 29, 2023
alvoron pushed a commit to alvoron/openvino that referenced this pull request Nov 6, 2023
…ation (openvinotoolkit#19907)

* nms_r_init

* Add tests

* Update nms refs

* Update onnx import

* Add nms rotated utils

* Remove soft sigma and align constructors

* Fix typo

* Style apply

* Add namespace for iou

* Update opset comment

* Revert cpu changes

* onnx test cleanup

* Update input types validation

* Align shape_infer boxes

* Test update

* Fix warning

* Temporary evaluate support for tests

* Add counterclockwise support

* Remove box_encoding attr

* Fix clockwise box idx

* More tests

* Update opset test

* Update boxes shape validation

* Type prop tests

* HostTensor to ov Tensor migration

* Update output_type set get output_type_attr

* Move setters and getters to cpp

* Add visitor test

* Cleanup

* Remove temp eval

* Headers adjustment

* use float for division

* Fix ref tests run

* Tests and style code refactor

* Move type check into box_last_dim

* Update visitor test namespace

* Check input type loop

* Remove nms_rotated namespace and rename ref function

* avoid copies in filling output tensor

* Update shape var name

* remove static from riou func

* Update nms_rot utils

* Move nms rot util to ov reference namespace

* use std::cos and std:::sin

* Update struct name

* Explain usage of postprocessing

* Update element type desc in error message

* Add more comments

* Adjust rotated util float types

* Fix name conflicts and warnings

* Update opset test ops number

* Move int input check to the loop

* Short box_def_size init

* Move remove static_output from shape_infer params

* Align float zero

* Update third-party-programs

* Fix TensorIt for CI

* Add op check test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Core OpenVINO Core (aka ngraph) category: CPP API OpenVINO CPP API bindings category: IE Tests OpenVINO Test: plugins and common category: ONNX FE OpenVINO ONNX FrontEnd category: Opset OpenVINO Opset category: TEMPLATE OpenVINO Template plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants