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

feat: add poseless benchmark #6

Merged
merged 6 commits into from
Mar 3, 2025
Merged

feat: add poseless benchmark #6

merged 6 commits into from
Mar 3, 2025

Conversation

tuanlda78202
Copy link
Contributor

This pull request includes significant updates to the benchmark.py file to add new functionality for processing hand pose images and calculating joint angles. Additionally, a minor change was made to the app.py file to remove an unused import.

New functionality for hand pose processing:

  • benchmark.py: Added a new class HandPoseProcessor that includes methods for initializing the model and processor, parsing angles from XML strings, processing images, inferring angles, calculating mean squared error (MSE), and extracting ground truth angles from conversations.
  • benchmark.py: Introduced a main function that loads a dataset, processes each sample to predict joint angles, calculates the MSE for each sample, and prints the average MSE across all valid samples.

Minor change:

  • app.py: Removed the unused import AutoTokenizer from the list of imports.

@tuanlda78202 tuanlda78202 added the type: feature request A new feature label Mar 3, 2025
@tuanlda78202 tuanlda78202 self-assigned this Mar 3, 2025
@tuanlda78202 tuanlda78202 merged commit b09a9ba into main Mar 3, 2025
1 check passed
@tuanlda78202 tuanlda78202 deleted the feat/benchmark branch March 3, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant