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 utils to associate 2d bbox and 3d bbox #157

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

jia-sun
Copy link
Contributor

@jia-sun jia-sun commented Oct 2, 2023

This PR adds functions to associate bounding_box_3d of LIDAR to bounding_box_2d for Camera.
One of the use case is to get the distance distribution of objects.

@jia-sun jia-sun force-pushed the assoicate_2d_3d branch 3 times, most recently from 4d9386d to 4350279 Compare October 2, 2023 01:28
@yuta-tsuzuki-woven
Copy link
Collaborator

@jia-sun
Could you explain more about the use case of this function and why you would like to put this function in the DGP repo?
I just thought if the use case is very specific and not useful for other DGP users, it should not be under the DGP repo...

@jia-sun
Copy link
Contributor Author

jia-sun commented Oct 2, 2023

Could you explain more about the use case of this function and why you would like to put this function in the DGP repo?

Those functions can be used to generate ground truth such as distance, yaw, pitch, raw, even 3d bounding for 2d objects (car, pedestrian) by utilizing LIDAR 3D annotations.
For ADADS, it requires sensor redundancy. This enables camera ML model to generate equivalent outputs as LIDAR ML models.
Personally, I think It is a good place to share those functions to avoid duplicated work of individual developers.

@yuta-tsuzuki-woven
Copy link
Collaborator

@jia-sun I added some comments

@chrisochoatri Could you also review this PR?

Copy link
Collaborator

@yuta-tsuzuki-woven yuta-tsuzuki-woven left a comment

Choose a reason for hiding this comment

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

LGTM

dgp/utils/render_3d_to_2d.py Show resolved Hide resolved
dgp/utils/render_3d_to_2d.py Show resolved Hide resolved
dgp/utils/render_3d_to_2d.py Outdated Show resolved Hide resolved
dgp/utils/render_3d_to_2d.py Outdated Show resolved Hide resolved
dgp/utils/render_3d_to_2d.py Outdated Show resolved Hide resolved
dgp/utils/render_3d_to_2d.py Outdated Show resolved Hide resolved
dgp/utils/render_3d_to_2d.py Show resolved Hide resolved
chrisochoatri
chrisochoatri previously approved these changes Oct 5, 2023
Copy link
Collaborator

@chrisochoatri chrisochoatri left a comment

Choose a reason for hiding this comment

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

Thanks jia. I left several comments but as this change seems standalone I won't block this. Please make the appropriate changes before merging.

@jia-sun jia-sun force-pushed the assoicate_2d_3d branch 2 times, most recently from 2b6f68b to 0c06699 Compare October 6, 2023 06:42
This PR adds some functions to associate bounding_box_3d of LIDAR to
bounding_box_2d for Camera.
One use case is to get the distance distribution of objects.
@yuta-tsuzuki-woven yuta-tsuzuki-woven merged commit 82d431f into TRI-ML:master Oct 6, 2023
3 checks passed
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.

4 participants