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

Enable stream import for COCO data format #1091

Merged

Conversation

vinnamkim
Copy link
Contributor

@vinnamkim vinnamkim commented Jul 11, 2023

Summary

  • ticket no. 114761
  • Implement COCOPageMapper
  • Enable the COCO extractor to generate DatasetItem using COCOPageMapper in the stream manner

How to test

I parametrized the existing tests for this change.

Checklist

  • I have added unit tests to cover my changes.​
  • I have added integration tests to cover my changes.​
  • I have added the description of my changes into CHANGELOG.​
  • I have updated the documentation accordingly

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below).
# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: MIT

vinnamkim added 21 commits July 4, 2023 15:36
Signed-off-by: Kim, Vinnam <[email protected]>
Signed-off-by: Kim, Vinnam <[email protected]>
Signed-off-by: Kim, Vinnam <[email protected]>
Signed-off-by: Kim, Vinnam <[email protected]>
Signed-off-by: Kim, Vinnam <[email protected]>
Signed-off-by: Kim, Vinnam <[email protected]>
Signed-off-by: Kim, Vinnam <[email protected]>
Signed-off-by: Kim, Vinnam <[email protected]>
Signed-off-by: Kim, Vinnam <[email protected]>
Signed-off-by: Kim, Vinnam <[email protected]>
 - Specify encoding type (utf-8)

Signed-off-by: Vinnam Kim <[email protected]>
Signed-off-by: Kim, Vinnam <[email protected]>
@vinnamkim vinnamkim added this to the 1.4.0 milestone Jul 11, 2023
@vinnamkim vinnamkim added the FEATURE New feature & functionality label Jul 11, 2023
Signed-off-by: Kim, Vinnam <[email protected]>
@vinnamkim vinnamkim marked this pull request as ready for review July 11, 2023 10:00
@vinnamkim vinnamkim requested review from a team as code owners July 11, 2023 10:00
@vinnamkim vinnamkim requested review from jihyeonyi and removed request for a team July 11, 2023 10:00
@@ -2,12 +2,15 @@
#
# SPDX-License-Identifier: MIT

from typing import Any, Dict, Optional, Type

Choose a reason for hiding this comment

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

Type is imported but not used. Doesn't the commit-hook apply to the test code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The "tests" directory is excluded during the ruff check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Anyway I'll revert it with fixing the errors on Windows

Signed-off-by: Kim, Vinnam <[email protected]>
end: int = -1

def reset(self):
self.flush = 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor comment: self.flush = False for reset

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 3a8af6d

Copy link
Contributor

@wonjuleee wonjuleee left a comment

Choose a reason for hiding this comment

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

Looks great!

Signed-off-by: Kim, Vinnam <[email protected]>
@vinnamkim vinnamkim merged commit 3c7364d into openvinotoolkit:releases/1.4.0 Jul 12, 2023
@vinnamkim vinnamkim deleted the feature/stream-importer-coco branch July 12, 2023 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEATURE New feature & functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants