File tree Expand file tree Collapse file tree 3 files changed +40
-1
lines changed
.github/unittest/linux_libs/scripts_habitat Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+ set -v
5+
6+ eval " $( ./conda/bin/conda shell.bash hook) "
7+ conda activate ./env
8+
9+ # Create data directory structure
10+ mkdir -p data/scene_datasets
11+ mkdir -p data/datasets
12+
13+ # Set environment variables for Habitat data paths
14+ export HABITAT_DATA_PATH=" $( pwd) /data"
15+
16+ echo " Downloading Habitat test scenes..."
17+ python -m habitat_sim.utils.datasets_download --uids habitat_test_scenes --data-path data/
18+
19+ echo " Downloading ReplicaCAD scenes..."
20+ python -m habitat_sim.utils.datasets_download --uids replica_cad --data-path data/
21+
22+ echo " Downloading rearrange pick dataset..."
23+ cd data/datasets
24+ wget -O rearrange_pick_replica_cad_v0.zip https://dl.fbaipublicfiles.com/habitat/data/datasets/rearrange_pick/replica_cad/v0/rearrange_pick_replica_cad_v0.zip
25+ unzip -o rearrange_pick_replica_cad_v0.zip
26+ rm rearrange_pick_replica_cad_v0.zip
27+ cd ../..
28+
29+ echo " Downloading point-goal navigation episodes for test scenes..."
30+ python -m habitat_sim.utils.datasets_download --uids habitat_test_pointnav_dataset --data-path data/
31+
32+ echo " Datasets downloaded successfully!"
33+ ls -la data/
Original file line number Diff line number Diff line change 55
66
77apt-get update && apt-get upgrade -y
8- apt-get install -y vim git wget cmake
8+ apt-get install -y vim git wget cmake unzip
99
1010apt-get install -y libglfw3 libgl1-mesa-glx libosmesa6 libglew-dev
1111apt-get install -y libglvnd0 libgl1 libglx0 libegl1 libgles2
@@ -22,6 +22,9 @@ cp $this_dir/10_nvidia.json /usr/share/glvnd/egl_vendor.d/10_nvidia.json
2222bash ${this_dir} /setup_env.sh
2323bash ${this_dir} /install.sh
2424
25+ # Download required Habitat datasets
26+ bash ${this_dir} /download_datasets.sh
27+
2528# apt-get install -y freeglut3 freeglut3-dev
2629bash ${this_dir} /run_test.sh
2730bash ${this_dir} /post_process.sh
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ python -c "import habitat;import habitat.gym"
3333# solves ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found
3434export LD_LIBRARY_PATH=$LD_LIBRARY_PATH :$lib_dir
3535export MKL_THREADING_LAYER=GNU
36+
37+ # Set Habitat data path
38+ export HABITAT_DATA_PATH=" $( pwd) /data"
3639# more logging
3740
3841# wget https://github.com/openai/mujoco-py/blob/master/vendor/10_nvidia.json
You can’t perform that action at this time.
0 commit comments