mkrzyzan commited on
Commit
2b1c750
1 Parent(s): 9ff0691

done to value

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,7 +10,7 @@ wellcomingMessage = """
10
 
11
  assert insightface.__version__>='0.7'
12
 
13
- done = 0
14
  app = FaceAnalysis(name='buffalo_l')
15
  app.prepare(ctx_id=0, det_size=(640, 640))
16
  swapper = insightface.model_zoo.get_model('inswapper_128.onnx', download=True, download_zip=True)
@@ -31,8 +31,8 @@ def swap_faces(faceSource, sourceFaceId, faceDestination, destFaceId):
31
 
32
  result = swapper.get(faceDestination, res_face, source_face, paste_back=True)
33
 
34
- done = done + 1
35
- print(f"processed: {done}...")
36
 
37
  # for face in faces:
38
  # res = swapper.get(res, face, source_face, paste_back=True)
 
10
 
11
  assert insightface.__version__>='0.7'
12
 
13
+ value = 0
14
  app = FaceAnalysis(name='buffalo_l')
15
  app.prepare(ctx_id=0, det_size=(640, 640))
16
  swapper = insightface.model_zoo.get_model('inswapper_128.onnx', download=True, download_zip=True)
 
31
 
32
  result = swapper.get(faceDestination, res_face, source_face, paste_back=True)
33
 
34
+ value = value + 1
35
+ print(f"processed: {value}...")
36
 
37
  # for face in faces:
38
  # res = swapper.get(res, face, source_face, paste_back=True)