-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add Functions for Visualizing COCO Predictions and Ground Truth #2792
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
Conversation
…e redunant snapshots at the end
n-poulsen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small comments to address, but this looks good! Thank you @xiu-cs!
b2077ee to
1fdd31e
Compare
This reverts commit f670407.
n-poulsen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few last tweaks, but otherwise this looks good to me!
Co-authored-by: n-poulsen <[email protected]>
Co-authored-by: n-poulsen <[email protected]>
Co-authored-by: n-poulsen <[email protected]>
n-poulsen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks @xiu-cs!
Add Functions for Visualizing COCO Predictions and Ground Truth
Summary
This PR introduces two new functions to simplify the visualization of COCO-format predictions and their comparison with ground truth (GT) annotations.
Changes
visualize_coco_predictions:predictions: An object in the same format as returned by evaluate(*).test_file_json: Path to the COCO-format test set JSON file with GT annotations.num_samples: Number of samples to visualize.output_dir: Directory to save visualization outputs.draw_skeleton: Option to draw skeleton connections between keypoints.plot_gt_and_predictionsfunction for visualization.plot_gt_and_predictions:image_path: Path to the imagegt_bodyparts,pred_bodyparts: Keypoint arrays for ground truth and predictions.output_dir: Directory to save the labeled images.dot_size,colormap, and confidence thresholds.bodypartorindividualcoloring).Motivation
Testing
Acknowledgments
Special thanks to @n-poulsen for his valuable guidance and support!