-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·48 lines (37 loc) · 1.01 KB
/
setup.sh
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
#!/bin/bash
gpu_cpu=$1
# install tools
pip install pipenv
sudo apt-get install p7zip p7zip-full p7zip-rar -y
# Setup python environment
pip uninstall -y pytest
pipenv install -d
if [ gpu_cpu = 'gpu' ];
then
pipenv run pip install \
torch==1.7.1+cu110 \
torchvision==0.8.2+cu110 \
torchaudio===0.7.2 \
-f https://download.pytorch.org/whl/torch_stable.html
else
pipenv run pip install \
torch==1.7.1+cpu \
torchvision==0.8.2+cpu \
torchaudio==0.7.2 \
-f https://download.pytorch.org/whl/torch_stable.html
fi
# Download data
mkdir -p data-unversioned/
cd data-unversioned/
wget https://zenodo.org/record/3723295/files/annotations.csv
wget https://zenodo.org/record/3723295/files/candidates.csv
wget https://zenodo.org/record/3723295/files/subset0.zip
mkdir -p subset0
7z e subset0.zip -osubset0
#for i in {0..6};
#do
# wget https://zenodo.org/record/3723295/files/subset$i.zip
# mkdir -p subset$i
# 7z e subset$i.zip -osubset$i
#done
cd ../