Skip to content

Is it possible to identity the object name with its semantic id? #1052

Answered by hang-yin
shengyin1224 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @shengyin1224 , absolutely! Please refer to the instance segmentation modalities detailed here: https://behavior.stanford.edu/omnigibson/modules/sensors.html#vision

Alongside the observation itself, when you call the get_obs method, you should be also getting a information dictionary. The ID to name mapping should be included in there. One other way to do this by calling the semantic_class_id_to_name or semantic_class_name_to_id in omnigibson/utils/constants.py

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hang-yin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants