Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -67,11 +67,11 @@ def swap_face(source_file, target_file, doFaceEnhancer):
|
|
67 |
roop.globals.many_faces = False
|
68 |
roop.globals.video_encoder = "libx264"
|
69 |
roop.globals.video_quality = 18
|
70 |
-
roop.globals.execution_providers = [
|
71 |
roop.globals.reference_face_position = 0
|
72 |
roop.globals.similar_face_distance = 0.6
|
73 |
roop.globals.max_memory = 60
|
74 |
-
roop.globals.execution_threads =
|
75 |
|
76 |
start()
|
77 |
return normalized_output_path
|
|
|
67 |
roop.globals.many_faces = False
|
68 |
roop.globals.video_encoder = "libx264"
|
69 |
roop.globals.video_quality = 18
|
70 |
+
roop.globals.execution_providers = decode_execution_providers(['cpu'])
|
71 |
roop.globals.reference_face_position = 0
|
72 |
roop.globals.similar_face_distance = 0.6
|
73 |
roop.globals.max_memory = 60
|
74 |
+
roop.globals.execution_threads = 8
|
75 |
|
76 |
start()
|
77 |
return normalized_output_path
|