Spaces:
Running
Running
Update run.py
Browse files
run.py
CHANGED
|
@@ -31,7 +31,7 @@ with open(os.environ['FONTCONFIG_FILE'], 'w') as f:
|
|
| 31 |
os.environ['INSIGHTFACE_ROOT'] = '/tmp/.insightface'
|
| 32 |
os.environ["ORT_DISABLE_CUDA"] = "1" # Désactiver CUDA si GPU indisponible
|
| 33 |
|
| 34 |
-
# ===== Fonction de swap =====
|
| 35 |
|
| 36 |
def swap_face(source_face, target_face, frame):
|
| 37 |
src_emb = source_face.normed_embedding
|
|
|
|
| 31 |
os.environ['INSIGHTFACE_ROOT'] = '/tmp/.insightface'
|
| 32 |
os.environ["ORT_DISABLE_CUDA"] = "1" # Désactiver CUDA si GPU indisponible
|
| 33 |
|
| 34 |
+
# ===== Fonction de swap de visage =====
|
| 35 |
|
| 36 |
def swap_face(source_face, target_face, frame):
|
| 37 |
src_emb = source_face.normed_embedding
|