-
Notifications
You must be signed in to change notification settings - Fork 475
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
[Bug Fix] change the snap point to be attached the largest island id #1371
Conversation
habitat-lab/habitat/datasets/rearrange/samplers/object_sampler.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API suggestion. This should be faster and more accurately capture the largest island.
habitat-lab/habitat/datasets/rearrange/samplers/object_sampler.py
Outdated
Show resolved
Hide resolved
4963e61
to
63d192d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. Small efficiency idea.
habitat-lab/habitat/datasets/rearrange/samplers/object_sampler.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me overall.
My only remaining consideration is that the largest island may not always be the correct one. For example if the scene has a large pool/yard then that may be a larger navmesh than the interior.
Possible improvements:
- Make this configurable. Allow users to turn off this check (maybe already done?)
- Check if the navmesh is outdoors (raycast upwards does not hit a ceiling). This won't work for all scenes, but should work for some.
We should have a way to validate this logic for any scenes we want to use. Maybe a script to highlight the largest navmesh island in a topdown view or map.
Hi @aclegg3! I have added the flag for checking the largest island ID. Please let me know if we want to do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…tached the largest island id (#1371) * allow the users to set if the snapped point in the largest island id * clean-up, document, pass variable through from config --------- Co-authored-by: Jimmy Yang <jimmytyyang@meta.com> Co-authored-by: aclegg3 <alexanderwclegg@gmail.com>
…acebookresearch#1371) * change the snap point to be arrached the largest island id * based on Alex and Aaron suggestion * change it to list format * add back list map trick * cahce * allow the users to set if the snapped point in the largest island id * clean-up, document, pass variable through from config --------- Co-authored-by: Jimmy Yang <jimmytyyang@meta.com> Co-authored-by: aclegg3 <alexanderwclegg@gmail.com>
…acebookresearch#1371) * change the snap point to be arrached the largest island id * based on Alex and Aaron suggestion * change it to list format * add back list map trick * cahce * allow the users to set if the snapped point in the largest island id * clean-up, document, pass variable through from config --------- Co-authored-by: Jimmy Yang <jimmytyyang@meta.com> Co-authored-by: aclegg3 <alexanderwclegg@gmail.com>
Motivation and Context
This PR ensures that the snap point of the object is always in the largest island. Previously it was checked by computing the largest island radius, which is not stable.This is the joint work with Alex!
How Has This Been Tested
Run the script, and it generates the episode.Checklist