-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall_data.sh
More file actions
33 lines (27 loc) · 742 Bytes
/
install_data.sh
File metadata and controls
33 lines (27 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
DIR_DATA="data"
DIR_VGG="vgg"
DIR_KITTI="data_road"
echo "Create data directory if not exists..."
if [ ! -d "$DIR_DATA" ]; then
mkdir $DIR_DATA
else
echo " INFO: $DIR_DATA already exists."
fi
cd data
echo "Prepare VGG network..."
if [ ! -d "$DIR_VGG" ]; then
wget https://s3-us-west-1.amazonaws.com/udacity-selfdrivingcar/vgg.zip
unzip vgg.zip
rm vgg.zip
else
echo " ERROR: VGG directory ($DIR_VGG) already exists. Skipped download."
fi
echo "Prepapre KITTI dataset..."
if [ ! -d "$DIR_KITTI" ]; then
wget http://kitti.is.tue.mpg.de/kitti/data_road.zip
unzip data_road.zip
rm data_road.zip
else
echo " ERROR: KITTI dataset directory ($DIR_KITTI) already exists. Skipped download."
fi