Spaces:
Running
Running
Commit
·
7bf182f
1
Parent(s):
2b3237a
model update
Browse files- Examples/a_real_one.png +0 -0
- Examples/real3.png +0 -0
- face_cropper.py +9 -5
Examples/a_real_one.png
DELETED
|
Binary file (180 kB)
|
|
|
Examples/real3.png
ADDED
|
face_cropper.py
CHANGED
|
@@ -2,8 +2,9 @@ import cv2
|
|
| 2 |
import mediapipe as mp
|
| 3 |
import os
|
| 4 |
from gradio_client import Client
|
| 5 |
-
from test_image_fusion import Test
|
| 6 |
-
from test_image_fusion import Test
|
|
|
|
| 7 |
import numpy as np
|
| 8 |
|
| 9 |
|
|
@@ -18,9 +19,12 @@ data = 'faceswap'
|
|
| 18 |
dct = 'fft'
|
| 19 |
|
| 20 |
|
| 21 |
-
testet = Test(model_paths = [f"weights/{data}-hh-best_model.pth",
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# Initialize MediaPipe Face Detection
|
| 26 |
mp_face_detection = mp.solutions.face_detection
|
|
|
|
| 2 |
import mediapipe as mp
|
| 3 |
import os
|
| 4 |
from gradio_client import Client
|
| 5 |
+
# from test_image_fusion import Test
|
| 6 |
+
# from test_image_fusion import Test
|
| 7 |
+
from test_image import Test
|
| 8 |
import numpy as np
|
| 9 |
|
| 10 |
|
|
|
|
| 19 |
dct = 'fft'
|
| 20 |
|
| 21 |
|
| 22 |
+
# testet = Test(model_paths = [f"weights/{data}-hh-best_model.pth",
|
| 23 |
+
# f"weights/{data}-fft-best_model.pth"],
|
| 24 |
+
# multi_modal = ['hh', 'fft'])
|
| 25 |
+
|
| 26 |
+
testet = Test(model_path =f"weights/{data}-hh-best_model.pth",
|
| 27 |
+
multi_modal ='hh')
|
| 28 |
|
| 29 |
# Initialize MediaPipe Face Detection
|
| 30 |
mp_face_detection = mp.solutions.face_detection
|