Daankular commited on
Commit
13cb6d2
·
1 Parent(s): 385c1a1

Remove hyperswap_1a_256.onnx from _ensure_ckpts: file not publicly hosted

Browse files

load_swapper() already falls back to inswapper_128 when hyperswap is absent.
Downloading a non-existent URL was causing HTTP 404 and blocking face enhance.

Files changed (1) hide show
  1. app.py +1 -1
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
- "hyperswap_1a_256.onnx": "https://huggingface.co/ezioruan/inswapper_128.onnx/resolve/main/hyperswap_1a_256.onnx",
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",