Commit
·
0c287d4
1
Parent(s):
2d64c58
FaceSwapper: add multiple HF resolve mirrors before GitHub to avoid 404
Browse files
DeepFakeAI/processors/frame/modules/face_swapper.py
CHANGED
|
@@ -47,9 +47,12 @@ def get_frame_processor() -> Any:
|
|
| 47 |
model_path = None # keep trying
|
| 48 |
# If HF Hub failed, try public mirrors as a last resort
|
| 49 |
if not model_path:
|
|
|
|
| 50 |
conditional_download(local_dir, [
|
| 51 |
-
'https://
|
| 52 |
-
'https://huggingface.co/
|
|
|
|
|
|
|
| 53 |
])
|
| 54 |
model_path = local_model_path
|
| 55 |
else:
|
|
|
|
| 47 |
model_path = None # keep trying
|
| 48 |
# If HF Hub failed, try public mirrors as a last resort
|
| 49 |
if not model_path:
|
| 50 |
+
# Try multiple mirrors (HF resolve links first, then GitHub)
|
| 51 |
conditional_download(local_dir, [
|
| 52 |
+
'https://huggingface.co/zihaomu/inswapper_128.onnx/resolve/main/inswapper_128.onnx',
|
| 53 |
+
'https://huggingface.co/linyi/inswapper_128.onnx/resolve/main/inswapper_128.onnx',
|
| 54 |
+
'https://huggingface.co/banodoco/inswapper_128.onnx/resolve/main/inswapper_128.onnx',
|
| 55 |
+
'https://github.com/facefusion/facefusion-assets/releases/download/models/inswapper_128.onnx'
|
| 56 |
])
|
| 57 |
model_path = local_model_path
|
| 58 |
else:
|