Spaces:
Running on Zero
Running on Zero
Remove hyperswap_1a_256.onnx from _ensure_ckpts: file not publicly hosted
Browse filesload_swapper() already falls back to inswapper_128 when hyperswap is absent.
Downloading a non-existent URL was causing HTTP 404 and blocking face enhance.
app.py
CHANGED
|
@@ -247,7 +247,7 @@ def _ensure_weight(url: str, dest: Path) -> Path:
|
|
| 247 |
def _ensure_ckpts():
|
| 248 |
"""Download all face-enhancement checkpoints to CKPT_DIR."""
|
| 249 |
weights = {
|
| 250 |
-
|
| 251 |
"inswapper_128.onnx": "https://huggingface.co/ezioruan/inswapper_128.onnx/resolve/main/inswapper_128.onnx",
|
| 252 |
"RealESRGAN_x4plus.pth": "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.1/RealESRGAN_x4plus.pth",
|
| 253 |
"GFPGANv1.4.pth": "https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth",
|
|
|
|
| 247 |
def _ensure_ckpts():
|
| 248 |
"""Download all face-enhancement checkpoints to CKPT_DIR."""
|
| 249 |
weights = {
|
| 250 |
+
# hyperswap_1a_256.onnx is not publicly hosted — load_swapper falls back to inswapper_128
|
| 251 |
"inswapper_128.onnx": "https://huggingface.co/ezioruan/inswapper_128.onnx/resolve/main/inswapper_128.onnx",
|
| 252 |
"RealESRGAN_x4plus.pth": "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.1/RealESRGAN_x4plus.pth",
|
| 253 |
"GFPGANv1.4.pth": "https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth",
|