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

How to define a bbox in nav_task_relevant_object_bbox or nav_accurate_object_bbox? #1

Open
wsakobe opened this issue Nov 9, 2024 · 1 comment

Comments

@wsakobe
Copy link

wsakobe commented Nov 9, 2024

Hello, I am currently trying to deploy PoliFormer in another simulator, and I have obtained the target object’s bbox in the format of (x, y, w, h). However, I am encountering difficulties when inputting this bbox into the model. I would like to ask how PoliFormer defines its bbox?

Additionally, I have an extra question: what is the difference between nav_task_relevant_object_bbox and nav_accurate_object_bbox, and how are they each obtained?

Thank you for your response.

@KuoHaoZeng
Copy link
Collaborator

Hi!
The bounding box is defined by [x1, y1, x2, y2, area] and those values would be 1000 if no object is detected.
Here is the place we convert box info to the format.

The difference between nav_task_relevant_object_bbox and nav_accurate_object_bbox is that nav_task_relevant_object_bbox gets bounding box from segmentation mask from the environment (get_approx_object_mask), while nav_accurate_object_bbox gets the bounding box directly from the simulation engine.
They should perform similar, but nav_task_relevant_object_bbox should run much quicker!

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

No branches or pull requests

2 participants