-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap.sh
41 lines (35 loc) · 2.16 KB
/
bootstrap.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
# timeslide bootstrap
# de-oldify repo
git clone /~https://github.com/jantic/DeOldify.git deoldify_repo
ln -s deoldify_repo/deoldify deoldify
# brew install libpng, cmake, wget
brew install libpng cmake wget
# de-oldify models
mkdir models
wget https://data.deepai.org/deoldify/ColorizeArtistic_gen.pth -O ./models/ColorizeArtistic_gen.pth
wget https://www.dropbox.com/s/usf7uifrctqw9rl/ColorizeStable_gen.pth -O ./models/ColorizeStable_gen.pth
# opencv2 models
#wget /~https://github.com/Saafke/EDSR_Tensorflow/raw/master/models/EDSR_x2.pb -O ./models/EDSR_x2.pb
#wget /~https://github.com/Saafke/EDSR_Tensorflow/raw/master/models/EDSR_x3.pb -O ./models/EDSR_x3.pb
#wget /~https://github.com/Saafke/EDSR_Tensorflow/raw/master/models/EDSR_x4.pb -O ./models/EDSR_x4.pb
#wget /~https://github.com/fannymonori/TF-ESPCN/raw/master/export/ESPCN_x2.pb -O ./models/ESPCN_x2.pb
#wget /~https://github.com/fannymonori/TF-ESPCN/raw/master/export/ESPCN_x3.pb -O ./models/ESPCN_x3.pb
#wget /~https://github.com/fannymonori/TF-ESPCN/raw/master/export/ESPCN_x4.pb -O ./models/ESPCN_x4.pb
#wget /~https://github.com/Saafke/FSRCNN_Tensorflow/raw/master/models/FSRCNN_x2.pb -O ./models/FSRCNN_x2.pb
#wget /~https://github.com/Saafke/FSRCNN_Tensorflow/raw/master/models/FSRCNN_x3.pb -O ./models/FSRCNN_x3.pb
#wget /~https://github.com/Saafke/FSRCNN_Tensorflow/raw/master/models/FSRCNN_x4.pb -O ./models/FSRCNN_x4.pb
#wget /~https://github.com/fannymonori/TF-LapSRN/raw/master/export/LapSRN_x2.pb -O ./models/LapSRN_x2.pb
#wget /~https://github.com/fannymonori/TF-LapSRN/raw/master/export/LapSRN_x4.pb -O ./models/LapSRN_x4.pb
#wget /~https://github.com/fannymonori/TF-LapSRN/raw/master/export/LapSRN_x8.pb -O ./models/LapSRN_x8.pb
# torch models
mkdir models/hub
mkdir models/hub/checkpoints
wget https://download.pytorch.org/models/resnet101-63fe2227.pth -O ./models/hub/checkpoints/resnet101-63fe2227.pth
wget https://download.pytorch.org/models/resnet34-b627a593.pth -O ./models/hub/checkpoints/resnet34-b627a593.pth
# python venv
rm -fr venv
python3 -m venv --copies venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
pip uninstall -y typing