dxcanh commited on
Commit
c632d00
Β·
verified Β·
1 Parent(s): 31b0a12

Update App/faceswap_img.py

Browse files
Files changed (1) hide show
  1. App/faceswap_img.py +1 -1
App/faceswap_img.py CHANGED
@@ -21,7 +21,7 @@ def face_swap(source_image, destination_image):
21
  # Initialize face analysis and swapper models
22
  app = FaceAnalysis(name='buffalo_l')
23
  app.prepare(ctx_id=0, det_size=(640, 640))
24
- swapper = insightface.model_zoo.get_model('bufallo_l/inswapper_128.onnx')
25
 
26
  # Detect and swap faces
27
  faces_source = app.get(source_image)
 
21
  # Initialize face analysis and swapper models
22
  app = FaceAnalysis(name='buffalo_l')
23
  app.prepare(ctx_id=0, det_size=(640, 640))
24
+ swapper = insightface.model_zoo.get_model('buffalo_l/inswapper_128.onnx')
25
 
26
  # Detect and swap faces
27
  faces_source = app.get(source_image)