Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -56,9 +56,9 @@ def swap_face(source_file, target_file, doFaceEnhancer):
|
|
56 |
many_faces = False
|
57 |
video_encoder = "libx264"
|
58 |
video_quality = 18
|
59 |
-
max_memory = "
|
60 |
execution_providers = ["CUDAExecutionProvider", "CPUExecutionProvider"] # Ưu tiên GPU, sau đó là CPU
|
61 |
-
execution_threads =
|
62 |
reference_face_position = 0
|
63 |
similar_face_distance = 0.6
|
64 |
|
|
|
56 |
many_faces = False
|
57 |
video_encoder = "libx264"
|
58 |
video_quality = 18
|
59 |
+
max_memory = "12G"
|
60 |
execution_providers = ["CUDAExecutionProvider", "CPUExecutionProvider"] # Ưu tiên GPU, sau đó là CPU
|
61 |
+
execution_threads = 2
|
62 |
reference_face_position = 0
|
63 |
similar_face_distance = 0.6
|
64 |
|