Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
aba3fef
1
Parent(s):
e744170
Update app.py
Browse files
app.py
CHANGED
@@ -17,15 +17,15 @@ from tqdm import tqdm
|
|
17 |
import lpips
|
18 |
from model import *
|
19 |
|
20 |
-
|
|
|
|
|
21 |
from e4e_projection import projection as e4e_projection
|
22 |
|
23 |
from copy import deepcopy
|
24 |
import imageio
|
25 |
|
26 |
-
|
27 |
-
os.system("gdown https://drive.google.com/uc?id=1jtCg8HQ6RlTmLdnbT2PfW1FJ2AYkWqsK")
|
28 |
-
os.system("cp e4e_ffhq_encode.pt models/e4e_ffhq_encode.pt")
|
29 |
|
30 |
os.system("wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2")
|
31 |
os.system("bzip2 -dk shape_predictor_68_face_landmarks.dat.bz2")
|
|
|
17 |
import lpips
|
18 |
from model import *
|
19 |
|
20 |
+
os.makedirs('models', exist_ok=True)
|
21 |
+
os.system("gdown https://drive.google.com/uc?id=1jtCg8HQ6RlTmLdnbT2PfW1FJ2AYkWqsK")
|
22 |
+
os.system("cp e4e_ffhq_encode.pt models/e4e_ffhq_encode.pt")
|
23 |
from e4e_projection import projection as e4e_projection
|
24 |
|
25 |
from copy import deepcopy
|
26 |
import imageio
|
27 |
|
28 |
+
|
|
|
|
|
29 |
|
30 |
os.system("wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2")
|
31 |
os.system("bzip2 -dk shape_predictor_68_face_landmarks.dat.bz2")
|