Spaces:
Runtime error
Runtime error
Ahsen Khaliq commited on
Commit ·
862debf
1
Parent(s): 101a286
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,9 +9,7 @@ os.system("gdown https://drive.google.com/uc?id=1i873OKcKjvpxiF0UBU4NzxlMMaD9qR5
|
|
| 9 |
os.system("wget https://github.com/kim-ninh/align_face_ffhq/raw/main/shape_predictor_68_face_landmarks.dat -P .")
|
| 10 |
|
| 11 |
def inference(image):
|
| 12 |
-
|
| 13 |
-
os.system("python scripts/test.py --ckpt ./e4e_encode_mobile_cartoon.pt --network e4e --platform torch --size 1024 --images_path "+image.name)
|
| 14 |
-
|
| 15 |
return "out.png"
|
| 16 |
|
| 17 |
title = "Encoder4editing"
|
|
|
|
| 9 |
os.system("wget https://github.com/kim-ninh/align_face_ffhq/raw/main/shape_predictor_68_face_landmarks.dat -P .")
|
| 10 |
|
| 11 |
def inference(image):
|
| 12 |
+
os.system("python scripts/test.py --align --ckpt ./e4e_encode_mobile_cartoon.pt --network e4e --platform torch --size 1024 --images_path "+image.name)
|
|
|
|
|
|
|
| 13 |
return "out.png"
|
| 14 |
|
| 15 |
title = "Encoder4editing"
|