Update App/faceswap_img.py
Browse files- 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('
|
| 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)
|