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

Metric compute (1/2): Loader for precomputed YCBV pose tracking result #180

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

horizon-blue
Copy link
Contributor

This PR introduces some utility snippets to load the precomputed YCBV results from FoundationPose so that we can make some comparisons.

To fetch the precomputed results, use the b3d_pull command. e.g.

python -m b3d.bucket_utils.b3d_pull

This should fetch and place the precomputed results under assets/shared_data_bucket/foundation_pose_tracking_results.

Some examples on how to use this loader can be found in the test file in this PR. It can also be used to make sure that the results are fetched correctly:

pytest tests/gen3d/test_metrics.py

I'm going to put together another PR to compute the actual metrics in a bit...

@horizon-blue horizon-blue force-pushed the xyw/load-precomputed-fp-result branch from 7b91998 to 08b555a Compare September 16, 2024 21:56
@horizon-blue horizon-blue merged commit 1a57b09 into gen3d Sep 16, 2024
6 of 7 checks passed
@horizon-blue horizon-blue deleted the xyw/load-precomputed-fp-result branch September 16, 2024 23:10
horizon-blue added a commit that referenced this pull request Sep 17, 2024
… aggregation (#181)

As the title suggests, this PR adds the metrics that are commonly used
in 6DoF pose tracking into our repo.

Note that currently the metrics are computed using numpy/scipy/sklearn,
so they are not compatible with other JAX transformations (e.g. vmap or
jit). This is because many of the methods do not have a ready-to-use JAX
equivalent, and implementing one ourselves might not be worthwhile given
that we likely only need to compute those scores at the very end of the
inference.

I'm also including an example of using these scoring function in the
[test file
here](https://github.com/probcomp/b3d/blob/74c2a50205ec6a90855d3271b22edf571373df75/tests/gen3d/test_metrics.py#L54-L81).
They can also be triggered by

```bash
pytest tests/gen3d/test_metrics.py
```

Check out the earlier PR #180 for
the instruction of obtaining the precomputed FoundationPose tracking
results.
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.

1 participant