Spaces:
Runtime error
Runtime error
done to value
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ wellcomingMessage = """
|
|
10 |
|
11 |
assert insightface.__version__>='0.7'
|
12 |
|
13 |
-
|
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 |
-
|
35 |
-
print(f"processed: {
|
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)
|