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

[OpenPifPaf] ONNX Evaluation Pipeline #915

Merged
merged 18 commits into from
Mar 2, 2023

Conversation

dbogunowicz
Copy link
Contributor

@dbogunowicz dbogunowicz commented Feb 20, 2023

Feature Preview:

python3 -m openpifpaf.export_onnx --input-width 641 --input-height 641
deepsparse.pose_estimation.eval --model-path openpifpaf-resnet50.onnx  --dataset cocokp --image_size 641

Results in:

...
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets= 20 ] = 0.502
 Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets= 20 ] = 0.732
 Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets= 20 ] = 0.523
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets= 20 ] = 0.429
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets= 20 ] = 0.605
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 20 ] = 0.534
 Average Recall     (AR) @[ IoU=0.50      | area=   all | maxDets= 20 ] = 0.744
 Average Recall     (AR) @[ IoU=0.75      | area=   all | maxDets= 20 ] = 0.554
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets= 20 ] = 0.457
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets= 20 ] = 0.643
...

For more information please refer to the updated README.md

Manual Testing

Compare the output above to the original openpifpaf eval:

python3 -m openpifpaf.eval --dataset cocokp --checkpoint shufflenetv2k16

Outputs:

 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets= 20 ] = 0.501
 Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets= 20 ] = 0.732
 Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets= 20 ] = 0.515
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets= 20 ] = 0.428
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets= 20 ] = 0.604
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 20 ] = 0.532
 Average Recall     (AR) @[ IoU=0.50      | area=   all | maxDets= 20 ] = 0.742
 Average Recall     (AR) @[ IoU=0.75      | area=   all | maxDets= 20 ] = 0.549
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets= 20 ] = 0.454
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets= 20 ] = 0.643

setup.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
@dbogunowicz dbogunowicz changed the base branch from main to feature/damian/openpifpaf_field_output February 21, 2023 14:28
@dbogunowicz dbogunowicz marked this pull request as ready for review February 21, 2023 16:01
@dbogunowicz dbogunowicz changed the title Feature/damian/openpifpaf val [OpenPifPaf] ONNX Evaluation Pipeline Feb 21, 2023
setup.py Show resolved Hide resolved
bfineran
bfineran previously approved these changes Feb 27, 2023
rahul-tuli
rahul-tuli previously approved these changes Feb 28, 2023
Base automatically changed from feature/damian/openpifpaf_field_output to main February 28, 2023 14:16
bfineran
bfineran previously approved these changes Feb 28, 2023
@dbogunowicz dbogunowicz dismissed stale reviews from bfineran and rahul-tuli via 4d05bc0 March 2, 2023 11:22
Copy link
Contributor

@corey-nm corey-nm left a comment

Choose a reason for hiding this comment

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

📈

@dbogunowicz dbogunowicz merged commit ffbd351 into main Mar 2, 2023
@dbogunowicz dbogunowicz deleted the feature/damian/openpifpaf_val branch March 2, 2023 14:54
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.

None yet

5 participants