Skip to content

Commit 7be34f1

Browse files
committed
amend
1 parent 765dfe2 commit 7be34f1

File tree

2 files changed

+31
-10
lines changed

2 files changed

+31
-10
lines changed

.github/unittest/linux_libs/scripts_habitat/download_datasets.sh

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
set -e
44
set -v
55

6+
# Add progress indicators
7+
echo "=== Starting Habitat Dataset Download Process ==="
8+
69
eval "$(./conda/bin/conda shell.bash hook)"
710
conda activate ./env
811

@@ -27,8 +30,9 @@ download_habitat_dataset() {
2730
# Manual download for test scenes
2831
cd data/scene_datasets
2932
if [ ! -d "habitat_test_scenes" ]; then
30-
git clone https://github.com/facebookresearch/habitat-test-scenes.git habitat_test_scenes || {
31-
echo "Manual download failed for $description"
33+
echo "Cloning habitat-test-scenes repository (this may take a few minutes)..."
34+
timeout 600 git clone --depth 1 https://github.com/facebookresearch/habitat-test-scenes.git habitat_test_scenes || {
35+
echo "Manual download failed for $description (timeout or error)"
3236
return 1
3337
}
3438
else
@@ -40,8 +44,9 @@ download_habitat_dataset() {
4044
# Manual download for ReplicaCAD
4145
cd data/scene_datasets
4246
if [ ! -d "replica_cad" ]; then
43-
git clone https://github.com/facebookresearch/replica-cad.git replica_cad || {
44-
echo "Manual download failed for $description"
47+
echo "Cloning replica-cad repository (this may take a few minutes)..."
48+
timeout 600 git clone --depth 1 https://github.com/facebookresearch/replica-cad.git replica_cad || {
49+
echo "Manual download failed for $description (timeout or error)"
4550
return 1
4651
}
4752
else
@@ -53,10 +58,12 @@ download_habitat_dataset() {
5358
# Manual download for pointnav dataset
5459
cd data/datasets
5560
if [ ! -d "habitat_test_pointnav_dataset" ]; then
56-
wget -O habitat_test_pointnav_dataset.zip https://dl.fbaipublicfiles.com/habitat/data/datasets/pointnav/habitat-test-scenes/v1/habitat-test-scenes-v1.zip || {
57-
echo "Manual download failed for $description"
61+
echo "Downloading pointnav dataset..."
62+
timeout 300 wget --progress=bar:force:noscroll -O habitat_test_pointnav_dataset.zip https://dl.fbaipublicfiles.com/habitat/data/datasets/pointnav/habitat-test-scenes/v1/habitat-test-scenes-v1.zip || {
63+
echo "Manual download failed for $description (timeout or error)"
5864
return 1
5965
}
66+
echo "Extracting pointnav dataset..."
6067
unzip -o habitat_test_pointnav_dataset.zip
6168
rm habitat_test_pointnav_dataset.zip
6269
else
@@ -73,13 +80,22 @@ download_habitat_dataset() {
7380
}
7481

7582
# Download datasets with fallback
83+
echo "=== Downloading Scene Datasets ==="
7684
download_habitat_dataset "habitat_test_scenes" "Habitat test scenes"
7785
download_habitat_dataset "replica_cad" "ReplicaCAD scenes"
86+
echo "=== Scene Datasets Download Complete ==="
7887

88+
echo "=== Downloading Task Datasets ==="
7989
echo "Downloading rearrange pick dataset..."
8090
cd data/datasets
8191
if [ ! -d "rearrange_pick_replica_cad_v0" ]; then
82-
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
92+
echo "Downloading rearrange pick dataset (this may take a few minutes)..."
93+
timeout 600 wget --progress=bar:force:noscroll -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 || {
94+
echo "Failed to download rearrange pick dataset (timeout or error)"
95+
cd ../..
96+
return 1
97+
}
98+
echo "Extracting rearrange pick dataset..."
8399
unzip -o rearrange_pick_replica_cad_v0.zip
84100
rm rearrange_pick_replica_cad_v0.zip
85101
else
@@ -88,6 +104,7 @@ fi
88104
cd ../..
89105

90106
download_habitat_dataset "habitat_test_pointnav_dataset" "Point-goal navigation episodes for test scenes"
107+
echo "=== Task Datasets Download Complete ==="
91108

92109
echo "Datasets downloaded successfully!"
93110

@@ -111,8 +128,11 @@ else
111128
fi
112129

113130
if [ $required_scenes -eq 1 ] && [ $required_datasets -eq 1 ]; then
114-
echo "All required datasets are present!"
131+
echo "=== All required datasets are present! ==="
132+
echo "=== Habitat Dataset Download Process Completed Successfully ==="
115133
else
116134
echo "ERROR: Some required datasets are missing!"
135+
echo "Required scenes: $required_scenes"
136+
echo "Required datasets: $required_datasets"
117137
exit 1
118138
fi

.github/unittest/linux_libs/scripts_habitat/run_all.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ bash ${this_dir}/install.sh
2424

2525
# Download required Habitat datasets
2626
echo "Starting Habitat dataset download..."
27-
if bash ${this_dir}/download_datasets.sh; then
27+
echo "Setting timeout of 30 minutes for dataset downloads..."
28+
if timeout 1800 bash ${this_dir}/download_datasets.sh; then
2829
echo "Habitat dataset download completed successfully!"
2930
else
30-
echo "ERROR: Habitat dataset download failed!"
31+
echo "ERROR: Habitat dataset download failed or timed out!"
3132
echo "Checking what was downloaded:"
3233
ls -la data/ 2>/dev/null || echo "No data directory found"
3334
ls -la data/scene_datasets/ 2>/dev/null || echo "No scene_datasets directory found"

0 commit comments

Comments
 (0)