Commit ·
9788670
1
Parent(s): 8185e9f
Revert hunyuan checkpoint to .pth (truncated progress bar misled filename)
Browse files
app.py
CHANGED
|
@@ -57,12 +57,7 @@ HUNYUAN_MODEL_DIR = Path(CACHE_DIR) / "HunyuanFoley"
|
|
| 57 |
HUNYUAN_MODEL_DIR.mkdir(parents=True, exist_ok=True)
|
| 58 |
|
| 59 |
print("Downloading HunyuanVideoFoley checkpoints…")
|
| 60 |
-
|
| 61 |
-
# model_utils.py expects the file named .pth — symlink if needed
|
| 62 |
-
_hf_pth = Path(_hf_raw).parent / "hunyuanvideo_foley.pth"
|
| 63 |
-
if not _hf_pth.exists():
|
| 64 |
-
import shutil as _shutil
|
| 65 |
-
_shutil.copy2(_hf_raw, _hf_pth)
|
| 66 |
hf_hub_download(repo_id=CKPT_REPO_ID, filename="HunyuanVideo-Foley/vae_128d_48k.pth", cache_dir=CACHE_DIR, local_dir=str(HUNYUAN_MODEL_DIR), local_dir_use_symlinks=False)
|
| 67 |
hf_hub_download(repo_id=CKPT_REPO_ID, filename="HunyuanVideo-Foley/synchformer_state_dict.pth", cache_dir=CACHE_DIR, local_dir=str(HUNYUAN_MODEL_DIR), local_dir_use_symlinks=False)
|
| 68 |
print("HunyuanVideoFoley checkpoints downloaded.")
|
|
|
|
| 57 |
HUNYUAN_MODEL_DIR.mkdir(parents=True, exist_ok=True)
|
| 58 |
|
| 59 |
print("Downloading HunyuanVideoFoley checkpoints…")
|
| 60 |
+
hf_hub_download(repo_id=CKPT_REPO_ID, filename="HunyuanVideo-Foley/hunyuanvideo_foley.pth", cache_dir=CACHE_DIR, local_dir=str(HUNYUAN_MODEL_DIR), local_dir_use_symlinks=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
hf_hub_download(repo_id=CKPT_REPO_ID, filename="HunyuanVideo-Foley/vae_128d_48k.pth", cache_dir=CACHE_DIR, local_dir=str(HUNYUAN_MODEL_DIR), local_dir_use_symlinks=False)
|
| 62 |
hf_hub_download(repo_id=CKPT_REPO_ID, filename="HunyuanVideo-Foley/synchformer_state_dict.pth", cache_dir=CACHE_DIR, local_dir=str(HUNYUAN_MODEL_DIR), local_dir_use_symlinks=False)
|
| 63 |
print("HunyuanVideoFoley checkpoints downloaded.")
|