summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-01-13 13:15:12 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-01-13 13:15:12 +0800
commit2daa24dd6e5d84d2283275d4b5fac4b0961f1ca6 (patch)
tree451cd2475154a58e84f8b5b47a75399dc75bb793
parentcdf2d2e00ff719e46b0d4bef46dabb1ddfe144dc (diff)
Add server startup script
-rw-r--r--startup19
1 files changed, 19 insertions, 0 deletions
diff --git a/startup b/startup
new file mode 100644
index 0000000..b2a9dca
--- /dev/null
+++ b/startup
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+snap remove lxd
+snap remove core18
+apt -y purge snapd gdm3
+apt -y autoremove
+
+apt update
+apt -y install python3-pip python-is-python3 nvtop zstd rclone
+
+pip3 install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
+pip3 install scikit-learn tqdm tensorborad
+
+git clone https://git.jordangong.com/jordangong/gait-recognition.git
+cd gait-recognition; git checkout python3.8; cd ..
+mkdir -p gait-recognition/data/CASIA-B-MRCNN
+wget https://storage.googleapis.com/gait-dataset/CASIA-B-MRCNN-SEG.tar.zst
+tar -I zstd -xf CASIA-B-MRCNN-SEG.tar.zst -C gait-recognition/data/CASIA-B-MRCNN
+mv gait-recognition/data/CASIA-B-MRCNN/{CASIA-B-MRCNN-SEG,SEG}