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

[Feature] Support 300VW Dataset #3005

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

KeqiangSun
Copy link
Contributor

Motivation

Modification

BC-breaking (Optional)

Use cases (Optional)

Checklist

Before PR:

  • I have read and followed the workflow indicated in the CONTRIBUTING.md to create this PR.
  • Pre-commit or linting tools indicated in CONTRIBUTING.md are used to fix the potential lint issues.
  • Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
  • New functionalities are covered by complete unit tests. If not, please add more unit tests to ensure correctness.
  • The documentation has been modified accordingly, including docstring or example tutorials.

After PR:

  • CLA has been signed and all committers have signed the CLA in this PR.

Comment on lines 176 to 182
if __name__ == '__main__':
tester = TestFace300VWDataset()
tester.test_metainfo()
tester.test_topdown()
tester.test_bottomup()
tester.test_exceptions_and_warnings()
tester.test_annotation()
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should remove these test codes.

Comment on lines 168 to 173
img = cv2.imread(instance['img_path'])
visualizer.draw_points(img, instance['keypoints'][0])
save_path = os.path.join(vis_dir,
os.path.basename(instance['img_path']))
assert cv2.imwrite(save_path,
img), 'facial keypoints visualization failed!'
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you want to test the visualizer, you can add test code here https://github.com/open-mmlab/mmpose/blob/main/tests/test_visualization/test_fast_visualizer.py. And use a temporary path instead of a real path.

@xiexinch xiexinch assigned xiexinch and unassigned Ben-Louis Apr 2, 2024
@KeqiangSun KeqiangSun changed the title add Face 300VW Dataset [Feature] Support 300VW Dataset Apr 2, 2024
@xiexinch xiexinch changed the base branch from main to dev-1.x April 2, 2024 02:51
Copy link

codecov bot commented Apr 2, 2024

Codecov Report

Attention: Patch coverage is 58.73016% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 71.64%. Comparing base (5a3be94) to head (cbd943c).
Report is 10 commits behind head on dev-1.x.

Files Patch % Lines
mmpose/visualization/fast_visualizer.py 33.33% 26 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           dev-1.x    #3005      +/-   ##
===========================================
- Coverage    71.74%   71.64%   -0.11%     
===========================================
  Files          293      294       +1     
  Lines        20068    20124      +56     
  Branches      3406     3416      +10     
===========================================
+ Hits         14397    14417      +20     
- Misses        4853     4886      +33     
- Partials       818      821       +3     
Flag Coverage Δ
unittests 71.64% <58.73%> (-0.11%) ⬇️

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

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

@xiexinch xiexinch merged commit f2ec026 into open-mmlab:dev-1.x Apr 2, 2024
14 of 21 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.

3 participants