-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquicksetup.sh
More file actions
executable file
·62 lines (47 loc) · 1.69 KB
/
quicksetup.sh
File metadata and controls
executable file
·62 lines (47 loc) · 1.69 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
echo "WARNING: This script is only intended for TUM clusters. Do not run this on your own machine."
echo "Press ENTER to continue or Ctrl+C to cancel."
read
# Exit on error
set -e
# Exit on pipe failure
set -o pipefail
# Enable command tracing
set -x
sudo apt install unzip htop tmux git -y
# 1. First of all, the images
train_list=("2013_05_28_drive_0009_sync")
cam_list=("00" "01")
root_dir=kitti-data
data_2d_dir=data_2d_raw
mkdir -p $root_dir
mkdir -p $root_dir/$data_2d_dir
cd $root_dir
for sequence in ${train_list[@]}; do
for camera in ${cam_list[@]}; do
zip_file=${sequence}_image_${camera}.zip
wget https://s3.eu-central-1.amazonaws.com/avg-projects/KITTI-360/data_2d_raw/${zip_file}
unzip -d ${data_2d_dir} ${zip_file}
rm ${zip_file}
done
done
zip_file=data_timestamps_perspective.zip
wget https://s3.eu-central-1.amazonaws.com/avg-projects/KITTI-360/data_2d_raw/${zip_file}
unzip -d ${data_2d_dir} ${zip_file}
rm $zip_file
# 2. calibration and data poses
wget https://s3.eu-central-1.amazonaws.com/avg-projects/KITTI-360/384509ed5413ccc81328cf8c55cc6af078b8c444/calibration.zip
wget https://s3.eu-central-1.amazonaws.com/avg-projects/KITTI-360/89a6bae3c8a6f789e12de4807fc1e8fdcf182cf4/data_poses.zip
unzip calibration.zip
unzip -d data_poses data_poses.zip
rm calibration.zip
rm data_poses.zip
# 3. point clouds
wget https://s3.eu-central-1.amazonaws.com/avg-projects/KITTI-360/6489aabd632d115c4280b978b2dcf72cb0142ad9/data_3d_semantics.zip
unzip data_3d_semantics.zip
rm data_3d_semantics.zip
sudo rm -rf /usr/local/lib/python3.10/dist-packages/nerfstudio
cd ./nerfstudio
python3 -m pip install -e .
cd ..
echo "export PATH=/home/$(whoami)/.local/bin:\$PATH" >> ~/.bashrc