Vignesh455 commited on
Commit
cc1e6ed
·
verified ·
1 Parent(s): 8a075f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def Swap_Face(image1,image2):
12
 
13
  swapper = insightface.model_zoo.get_model("inswapper_128.onnx", download=False,
14
  download_zip=False,providers=onnxruntime.get_available_providers())
15
- face_enhancer = GFPGANer(model_path="GFPGANv1.4.pth", upscale=1)
16
 
17
  # Do the swap
18
  face1 = app.get(image1)[0]
 
12
 
13
  swapper = insightface.model_zoo.get_model("inswapper_128.onnx", download=False,
14
  download_zip=False,providers=onnxruntime.get_available_providers())
15
+ face_enhancer = GFPGANer(model_path="GFPGANv1.4.pth", upscale=1,device="cuda")
16
 
17
  # Do the swap
18
  face1 = app.get(image1)[0]