3
3
set -e
4
4
set -v
5
5
6
+ # Add progress indicators
7
+ echo " === Starting Habitat Dataset Download Process ==="
8
+
6
9
eval " $( ./conda/bin/conda shell.bash hook) "
7
10
conda activate ./env
8
11
@@ -27,8 +30,9 @@ download_habitat_dataset() {
27
30
# Manual download for test scenes
28
31
cd data/scene_datasets
29
32
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)"
32
36
return 1
33
37
}
34
38
else
@@ -40,8 +44,9 @@ download_habitat_dataset() {
40
44
# Manual download for ReplicaCAD
41
45
cd data/scene_datasets
42
46
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)"
45
50
return 1
46
51
}
47
52
else
@@ -53,10 +58,12 @@ download_habitat_dataset() {
53
58
# Manual download for pointnav dataset
54
59
cd data/datasets
55
60
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)"
58
64
return 1
59
65
}
66
+ echo " Extracting pointnav dataset..."
60
67
unzip -o habitat_test_pointnav_dataset.zip
61
68
rm habitat_test_pointnav_dataset.zip
62
69
else
@@ -73,13 +80,22 @@ download_habitat_dataset() {
73
80
}
74
81
75
82
# Download datasets with fallback
83
+ echo " === Downloading Scene Datasets ==="
76
84
download_habitat_dataset " habitat_test_scenes" " Habitat test scenes"
77
85
download_habitat_dataset " replica_cad" " ReplicaCAD scenes"
86
+ echo " === Scene Datasets Download Complete ==="
78
87
88
+ echo " === Downloading Task Datasets ==="
79
89
echo " Downloading rearrange pick dataset..."
80
90
cd data/datasets
81
91
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..."
83
99
unzip -o rearrange_pick_replica_cad_v0.zip
84
100
rm rearrange_pick_replica_cad_v0.zip
85
101
else
88
104
cd ../..
89
105
90
106
download_habitat_dataset " habitat_test_pointnav_dataset" " Point-goal navigation episodes for test scenes"
107
+ echo " === Task Datasets Download Complete ==="
91
108
92
109
echo " Datasets downloaded successfully!"
93
110
@@ -111,8 +128,11 @@ else
111
128
fi
112
129
113
130
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 ==="
115
133
else
116
134
echo " ERROR: Some required datasets are missing!"
135
+ echo " Required scenes: $required_scenes "
136
+ echo " Required datasets: $required_datasets "
117
137
exit 1
118
138
fi
0 commit comments