facebookresearch / habitat-matterport3d-dataset

This repository contains code to reproduce experimental results from our HM3D paper in NeurIPS 2021.
MIT License
136 stars 10 forks source link

Unable to get HM3D house information #10

Open YYDreamzure opened 1 year ago

YYDreamzure commented 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

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?