-
Notifications
You must be signed in to change notification settings - Fork 434
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
Object_id to semantic_id mapping in ###_semantic.ply file of matterport #760
Comments
This issue may be helpful for creating the mapping from object ID to label ID: #263 TLDR: instance_id_to_label_id = {int(obj.id.split("_")[-1]): obj.category.index() for obj in sim.semantic_scene.objects} |
I have gone through that issue and I can see that the information for the labels and the associated centeroid coordinates and dimensions can be extracted.
Are these cubical semantic masks? |
I am not sure what a "cubical semantic mask" is, but here is what those are: Each object has an associated 3D bounding box (an oriented bounding box in the case of objects). These are in Habitat's coordinate frame, which is different then the coordinate frame of the mp3d dataset. The mp3d dataset is +Z up while habitat is +Y up. |
Thanks! I ended up working with the raw MP3d ply files and using the mapping that you suggested. |
Couple of questions:
|
My understanding is that Yes, that is the only difference between the two coordinate frames. |
Thanks! I will try to make a pull request for extracting the scene semantic map(groundtruth) if I have the bandwidth. I have it working at my end. |
❓ Questions and Help
Hi,
I am looking to extract the semantic ids of each of the entire scenes. So far I see that there are object_ids and associated vertices in the _semantic.ply files for each scene.
Is there a mapping from the object_ids to the semantic (label) ids I can use?
Or am I just not looking in the right file to extract the semantic labels?
I am looking to create a top down semantic map of the scene that the robot move in at any given simulation.
Edit:
I went through this demo
https://aihabitat.org/docs/habitat-api/habitat-api-demo.html#scene-semantic-annotations
and I believe that gets me closer to the solution.
I am a little confused about what the dimensions represent.
A coordinate level semantic information would be preferable which takes me back to the first question itself, about the coordinate object_id to semantic_id mapping.
The text was updated successfully, but these errors were encountered: