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

Fix Roboflow format: Disable roboflow_tfrecord when tf is not installed #1130

Merged
merged 12 commits into from
Aug 29, 2023

Conversation

wonjuleee
Copy link
Contributor

@wonjuleee wonjuleee commented Aug 28, 2023

Summary

How to test

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

@wonjuleee wonjuleee requested review from a team as code owners August 28, 2023 01:24
@wonjuleee wonjuleee requested review from jihyeonyi and sooahleex and removed request for a team August 28, 2023 01:24
@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.08% 🎉

Comparison is base (8ffe5f1) 80.08% compared to head (52dc837) 80.16%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1130      +/-   ##
===========================================
+ Coverage    80.08%   80.16%   +0.08%     
===========================================
  Files          259      260       +1     
  Lines        29338    29370      +32     
  Branches      5751     5757       +6     
===========================================
+ Hits         23495    23545      +50     
+ Misses        4498     4484      -14     
+ Partials      1345     1341       -4     
Flag Coverage Δ
macos-11_Python-3.8 79.26% <100.00%> (+0.08%) ⬆️
ubuntu-20.04_Python-3.8 80.14% <100.00%> (+0.08%) ⬆️
windows-2019_Python-3.8 80.07% <100.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/datumaro/plugins/data_formats/roboflow/base.py 89.03% <ø> (+2.72%) ⬆️
...aro/plugins/data_formats/roboflow/base_tfrecord.py 100.00% <100.00%> (ø)
...datumaro/plugins/data_formats/roboflow/importer.py 87.93% <100.00%> (+3.96%) ⬆️
...maro/plugins/data_formats/tf_detection_api/base.py 88.88% <100.00%> (+5.01%) ⬆️
src/datumaro/util/tf_util.py 53.84% <100.00%> (+11.53%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

path=path, ext=".tfrecord", extractor_name="roboflow_tfrecord", filename="cells"
path=path,
ext=".tfrecord",
extractor_name="",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it ok to set extractor_name=""?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it was, but it would be better to specify the extractor_name again. I will fix this.

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 at 95fad54

tests/unit/test_tfrecord_format.py Outdated Show resolved Hide resolved
Copy link
Contributor

@vinnamkim vinnamkim left a comment

Choose a reason for hiding this comment

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

LGTM.

@wonjuleee wonjuleee merged commit d19ec3e into openvinotoolkit:develop Aug 29, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants