Open YYDreamzure opened 1 year ago
Hi,
I would like to retrieve room information such as scene.levels, scene.regions, aabb.center, aabb.sizes etc. However, the result is null:
print(sim.semantic_scene.levels) print(sim.semantic_scene.regions[0].aabb.center) print(sim.semantic_scene.regions[0].aabb.sizes)
output: [] [0. 0. 0.] [-inf -inf -inf]
I suspect that the semantics were not loaded correctly. I have the following file structure:
ls hm3d_annotated_basis.scene_dataset_config.json minival/ ls /minival 00800-TEEsavR23oF/ 00806-tQ5s4ShP627/ 00801-HaxA7YrQdEC/ 00807-rsggHU7g7dh/ 00802-wcojb4TFT35/ 00808-y9hTuugGdiq/ 00803-k1cupFYWXJ6/ 00809-Qpor2mEya8F/ 00804-BHXhpBwSMLh/ hm3d_annotated_minival_basis.scene_dataset_config.json 00805-SUHsP6z2gcJ/ hm3d_minival_basis.scene_dataset_config.json ls /minival/00800-TEEsavR23oF/ TEEsavR23oF.basis.glb TEEsavR23oF.basis.navmesh TEEsavR23oF.semantic.glb TEEsavR23oF.semantic.txt
ls hm3d_annotated_basis.scene_dataset_config.json minival/
ls /minival 00800-TEEsavR23oF/ 00806-tQ5s4ShP627/ 00801-HaxA7YrQdEC/ 00807-rsggHU7g7dh/ 00802-wcojb4TFT35/ 00808-y9hTuugGdiq/ 00803-k1cupFYWXJ6/ 00809-Qpor2mEya8F/ 00804-BHXhpBwSMLh/ hm3d_annotated_minival_basis.scene_dataset_config.json 00805-SUHsP6z2gcJ/ hm3d_minival_basis.scene_dataset_config.json
ls /minival/00800-TEEsavR23oF/ TEEsavR23oF.basis.glb TEEsavR23oF.basis.navmesh TEEsavR23oF.semantic.glb TEEsavR23oF.semantic.txt
I have enabled the semantic sensor and set the scene_dataset_config_file configuration variable in habitat-sim.
May I know how to get the house information?
Hi,
I would like to retrieve room information such as scene.levels, scene.regions, aabb.center, aabb.sizes etc. However, the result is null:
print(sim.semantic_scene.levels) print(sim.semantic_scene.regions[0].aabb.center) print(sim.semantic_scene.regions[0].aabb.sizes)
output: [] [0. 0. 0.] [-inf -inf -inf]
I suspect that the semantics were not loaded correctly. I have the following file structure:
I have enabled the semantic sensor and set the scene_dataset_config_file configuration variable in habitat-sim.
May I know how to get the house information?