Spaces:
Paused
Paused
Update SwitcherAI/processors/frame/modules/face_swapper.py
Browse files
SwitcherAI/processors/frame/modules/face_swapper.py
CHANGED
|
@@ -23,7 +23,7 @@ NAME = 'FACEFUSION.FRAME_PROCESSOR.FACE_SWAPPER'
|
|
| 23 |
# Model configurations with working public URLs
|
| 24 |
MODEL_CONFIGS = {
|
| 25 |
'inswapper_128': {
|
| 26 |
-
'url': 'https://
|
| 27 |
'path': '../.assets/models/inswapper_128.onnx',
|
| 28 |
'type': 'inswapper',
|
| 29 |
'size': (128, 128),
|
|
@@ -32,7 +32,7 @@ MODEL_CONFIGS = {
|
|
| 32 |
'requires_converter': False
|
| 33 |
},
|
| 34 |
'inswapper_128_fp16': {
|
| 35 |
-
'url': 'https://
|
| 36 |
'path': '../.assets/models/inswapper_128_fp16.onnx',
|
| 37 |
'type': 'inswapper',
|
| 38 |
'size': (128, 128),
|
|
@@ -40,17 +40,6 @@ MODEL_CONFIGS = {
|
|
| 40 |
'standard_deviation': [1.0, 1.0, 1.0],
|
| 41 |
'requires_converter': False
|
| 42 |
},
|
| 43 |
-
'simswap_256': {
|
| 44 |
-
'url': 'https://github.com/facefusion/facefusion-assets/releases/download/models/simswap_256.onnx',
|
| 45 |
-
'path': '../.assets/models/simswap_256.onnx',
|
| 46 |
-
'type': 'simswap',
|
| 47 |
-
'size': (256, 256),
|
| 48 |
-
'mean': [0.485, 0.456, 0.406],
|
| 49 |
-
'standard_deviation': [0.229, 0.224, 0.225],
|
| 50 |
-
'requires_converter': True,
|
| 51 |
-
'converter_url': 'https://github.com/facefusion/facefusion-assets/releases/download/models/arcface_w600k_r50.onnx',
|
| 52 |
-
'converter_path': '../.assets/models/arcface_w600k_r50.onnx'
|
| 53 |
-
}
|
| 54 |
}
|
| 55 |
|
| 56 |
# Default model - can be changed via globals
|
|
|
|
| 23 |
# Model configurations with working public URLs
|
| 24 |
MODEL_CONFIGS = {
|
| 25 |
'inswapper_128': {
|
| 26 |
+
'url': 'https://huggingface.co/ezioruan/inswapper_128.onnx/resolve/main/inswapper_128.onnx',
|
| 27 |
'path': '../.assets/models/inswapper_128.onnx',
|
| 28 |
'type': 'inswapper',
|
| 29 |
'size': (128, 128),
|
|
|
|
| 32 |
'requires_converter': False
|
| 33 |
},
|
| 34 |
'inswapper_128_fp16': {
|
| 35 |
+
'url': 'https://huggingface.co/ninjawick/webui-faceswap-unlocked/resolve/main/inswapper_128_fp16.onnx',
|
| 36 |
'path': '../.assets/models/inswapper_128_fp16.onnx',
|
| 37 |
'type': 'inswapper',
|
| 38 |
'size': (128, 128),
|
|
|
|
| 40 |
'standard_deviation': [1.0, 1.0, 1.0],
|
| 41 |
'requires_converter': False
|
| 42 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
}
|
| 44 |
|
| 45 |
# Default model - can be changed via globals
|