Spaces:
Runtime error
Runtime error
artificialguybr
commited on
Commit
β’
476d7fb
1
Parent(s):
bea60dd
Create install.sh
Browse files- install.sh +29 -0
install.sh
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
# Clone necessary repositories
|
4 |
+
git clone https://github.com/vinthony/video-retalking.git
|
5 |
+
git clone https://github.com/davisking/dlib.git
|
6 |
+
|
7 |
+
# Install dlib
|
8 |
+
cd dlib && python setup.py install
|
9 |
+
cd ..
|
10 |
+
|
11 |
+
# Create checkpoints directory in video-retalking
|
12 |
+
mkdir -p ./video-retalking/checkpoints
|
13 |
+
|
14 |
+
# Download model checkpoints and other files
|
15 |
+
wget -P ./video-retalking/checkpoints https://github.com/vinthony/video-retalking/releases/download/v0.0.1/30_net_gen.pth
|
16 |
+
wget -P ./video-retalking/checkpoints https://github.com/vinthony/video-retalking/releases/download/v0.0.1/BFM.zip
|
17 |
+
wget -P ./video-retalking/checkpoints https://github.com/vinthony/video-retalking/releases/download/v0.0.1/DNet.pt
|
18 |
+
wget -P ./video-retalking/checkpoints https://github.com/vinthony/video-retalking/releases/download/v0.0.1/ENet.pth
|
19 |
+
wget -P ./video-retalking/checkpoints https://github.com/vinthony/video-retalking/releases/download/v0.0.1/expression.mat
|
20 |
+
wget -P ./video-retalking/checkpoints https://github.com/vinthony/video-retalking/releases/download/v0.0.1/face3d_pretrain_epoch_20.pth
|
21 |
+
wget -P ./video-retalking/checkpoints https://github.com/vinthony/video-retalking/releases/download/v0.0.1/GFPGANv1.3.pth
|
22 |
+
wget -P ./video-retalking/checkpoints https://github.com/vinthony/video-retalking/releases/download/v0.0.1/GPEN-BFR-512.pth
|
23 |
+
wget -P ./video-retalking/checkpoints https://github.com/vinthony/video-retalking/releases/download/v0.0.1/LNet.pth
|
24 |
+
wget -P ./video-retalking/checkpoints https://github.com/vinthony/video-retalking/releases/download/v0.0.1/ParseNet-latest.pth
|
25 |
+
wget -P ./video-retalking/checkpoints https://github.com/vinthony/video-retalking/releases/download/v0.0.1/RetinaFace-R50.pth
|
26 |
+
wget -P ./video-retalking/checkpoints https://github.com/vinthony/video-retalking/releases/download/v0.0.1/shape_predictor_68_face_landmarks.dat
|
27 |
+
|
28 |
+
# Unzip files
|
29 |
+
unzip -d ./video-retalking/checkpoints ./video-retalking/checkpoints/BFM.zip
|