-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·31 lines (23 loc) · 780 Bytes
/
setup.sh
File metadata and controls
executable file
·31 lines (23 loc) · 780 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
echo "Downloading pretrained model"
gdown 'https://drive.google.com/uc?id=1NA1cx4lCssTAlCt9klNgTzhS8eh0Sc4d'
mkdir checkpoints_mlt
unrar x ./Model60k.rar ./checkpoints_mlt
rm -r Model60k.rar
mkdir data/
cd data/
mkdir res/
mkdir demo/
echo "Downloading vgg model"
wget http://download.tensorflow.org/models/vgg_16_2016_08_28.tar.gz
tar -xvf vgg_16_2016_08_28.tar.gz
rm -r /content/DLSProject/data/vgg_16_2016_08_28.tar.gz
echo "Downloading recognition model"
cd ..
gdown 'https://drive.google.com/uc?id=1a-0qujaO461ViSOl4GT6EgwH5uqc6xgO'
mv ./BestMoran.pth ./checkpoints_mlt/
echo "Downloading minuses checker model"
gdown 'https://drive.google.com/uc?id=1jUOTdKgOnUX87s7F_BYogBi20QBxLMf3'
mv ./minus_checker.pth ./checkpoints_mlt/
cd ./data/
mkdir cropped
echo "All done"