tuan2308 commited on
Commit
67bad33
1 Parent(s): cc21c96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -58,7 +58,6 @@ def swap_face(source_file, target_file, doFaceEnhancer):
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
 
@@ -81,9 +80,7 @@ def swap_face(source_file, target_file, doFaceEnhancer):
81
  roop.globals.many_faces = many_faces
82
  roop.globals.video_encoder = video_encoder
83
  roop.globals.video_quality = video_quality
84
- roop.globals.max_memory = max_memory
85
  roop.globals.execution_providers = execution_providers
86
- roop.globals.execution_threads = execution_threads
87
  roop.globals.reference_face_position = reference_face_position
88
  roop.globals.similar_face_distance = similar_face_distance
89
 
 
58
  video_quality = 18
59
  max_memory = "12G"
60
  execution_providers = ["CUDAExecutionProvider", "CPUExecutionProvider"] # Ưu tiên GPU, sau đó là CPU
 
61
  reference_face_position = 0
62
  similar_face_distance = 0.6
63
 
 
80
  roop.globals.many_faces = many_faces
81
  roop.globals.video_encoder = video_encoder
82
  roop.globals.video_quality = video_quality
 
83
  roop.globals.execution_providers = execution_providers
 
84
  roop.globals.reference_face_position = reference_face_position
85
  roop.globals.similar_face_distance = similar_face_distance
86