facebookresearch / habitat-sim

A flexible, high-performance 3D simulator for Embodied AI research.
https://aihabitat.org/
MIT License
2.64k stars 424 forks source link

Error in generation of semantic datasets #2372

Open zhai-create opened 6 months ago

zhai-create commented 6 months ago

When I generated semantic data for gibson using the gen_gibson_semantics.sh file, I found that there were some scenarios where the following errors occurred:

terminate called after throwing an instance of 'std::length_error' what(): cannot create std::vector larger than max_size() Aborted (core dumped)

How should I solve this problem? Do I need to modify the Datatool.cpp file again?(I have generated .ids files, .obj files, and datatool for each scene)

❓ Questions and Help

iyeon915 commented 5 months ago

I got a similar issue. Did you solved this issue? I obtained build foler using "python setup.py build --build-datatool" at here (https://github.com/facebookresearch/habitat-sim/issues/1948). Then the datatool file in build foler was build/utils/datatool/Datatool not build/utils/datatool/datatool. (Capital D) So, I modified gen_gibson_semantic.sh file, then run using "tools/gen_gibson_semantics.sh /path/to/3DSceneGraph_medium/automated_graph /path/to/GibsonDataset /path/to/output ".

(I use headless server) There are 3 folders in scene datasets folder, 1) 3DSceneGraph_medium (includes npz) 2) gibson (includes scene_dataset_config.json and scene folder. Each scene folder has obj files) 3) out folder (.ids and .scn files were generated. but .ply is not)

Finally the error is below. (habitat) user@server90:~/habitat/habitat-sim$ tools/gen_gibson_semantics.sh data/scene_datasets/3DSceneGraph_medium/automated_graph/ data/scene_datasets/gibson/ data/scene_datasets/out/ Adairsville wrote 2528538 bytes wrote 33569 bytes ESP_CHECK failed: esp::logging::LoggingContext: No current logging context. tools/gen_gibson_semantics.sh: line 17: 22515 Aborted (core dumped) "${TOOLS_DIR}"/../build/utils/datatool/datatool create_gibson_semantic_mesh "${OBJ_PATH}"/"${scene}"/mesh.obj "${OUT_PATH}"/"${scene}".ids "${OUT_PATH}"/"${scene}"_semantic.ply

iranroman commented 4 months ago

Also having the exact same issue. Was any of you able to solve it?

yuanxuanS commented 1 month ago

Same error. Any solutions please?

yuanxuanS commented 1 month ago

I followed this steps: https://github.com/ybgdgh/L3MVN/issues/22#issuecomment-2057438619 and succeed finally.