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

Optimize quasi-static pushing cost function's Jacobians #36

Open
mhmukadam opened this issue Dec 22, 2021 · 5 comments
Open

Optimize quasi-static pushing cost function's Jacobians #36

mhmukadam opened this issue Dec 22, 2021 · 5 comments
Labels
good first issue Good for newcomers performance Improving efficiency

Comments

@mhmukadam
Copy link
Member

Current implementation uses a few intermediate matrix multiplication that can be removed and the final results just hardcoded using indexing or basic torch operations.

@aymuos15
Copy link

aymuos15 commented Sep 3, 2024

Can I pick this up if still relevant?

@luisenp
Copy link
Contributor

luisenp commented Sep 4, 2024

Hi @aymuos15. Definitely, we welcome contributions. This is the relevant class. It's been a few years, so I don't quite remember which particular matrix products could be simplified, so you may have to look at the math in this paper.

@aymuos15
Copy link

aymuos15 commented Sep 4, 2024

Awesome, thanks! Are these tests enough? (haven't gone through any material yet): https://github.com/facebookresearch/theseus/blob/main/tests/theseus_tests/embodied/motionmodel/test_quasi_static_pushing_planar.py

@luisenp
Copy link
Contributor

luisenp commented Sep 9, 2024

Assuming you only change jacobians computation and not error, the second test should give good coverage. When testing for the first time we can increase the batch size and number of reps just to make sure we get more variety of cases.

@aymuos15
Copy link

aymuos15 commented Sep 9, 2024

Okay, sounds good! I will get to this soon. Going through the math for now.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers performance Improving efficiency
Projects
None yet
Development

No branches or pull requests

3 participants