Spaces:
Sleeping
Sleeping
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峄僲 tra c谩c provider hi峄噉 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峄僲 tra c谩c provider hi峄噉 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():
|