tuan2308 commited on
Commit
23dc73c
1 Parent(s): 9bb30ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = ["CUDAExecutionProvider"]
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 = 50
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