Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -32,8 +32,8 @@ def swap_face(source_file, target_file, doFaceEnhancer):
|
|
32 |
target_image = Image.fromarray(target_file)
|
33 |
target_image.save(target_path)
|
34 |
|
35 |
-
print("source_path: ", source_path)
|
36 |
-
print("target_path: ", target_path)
|
37 |
|
38 |
# Check if a face is detected in the source image
|
39 |
source_face = get_one_face(cv2.imread(source_path))
|
@@ -61,8 +61,8 @@ def swap_face(source_file, target_file, doFaceEnhancer):
|
|
61 |
reference_face_position = 0
|
62 |
similar_face_distance = 0.6
|
63 |
|
64 |
-
print("Available providers:", ort.get_available_providers()) # Kiểm tra các provider hiện có
|
65 |
-
print("Configured execution providers:", execution_providers)
|
66 |
|
67 |
for frame_processor in get_frame_processors_modules(frame_processors):
|
68 |
if not frame_processor.pre_check():
|
|
|
32 |
target_image = Image.fromarray(target_file)
|
33 |
target_image.save(target_path)
|
34 |
|
35 |
+
# print("source_path: ", source_path)
|
36 |
+
# print("target_path: ", target_path)
|
37 |
|
38 |
# Check if a face is detected in the source image
|
39 |
source_face = get_one_face(cv2.imread(source_path))
|
|
|
61 |
reference_face_position = 0
|
62 |
similar_face_distance = 0.6
|
63 |
|
64 |
+
# print("Available providers:", ort.get_available_providers()) # Kiểm tra các provider hiện có
|
65 |
+
# print("Configured execution providers:", execution_providers)
|
66 |
|
67 |
for frame_processor in get_frame_processors_modules(frame_processors):
|
68 |
if not frame_processor.pre_check():
|