Spaces:
Sleeping
Sleeping
Merge branch 'main' of https://huggingface.co/spaces/Hyathi/LatentSync
Browse files- app.py +3 -2
- setup_env.sh +1 -1
app.py
CHANGED
@@ -5,12 +5,13 @@ from omegaconf import OmegaConf
|
|
5 |
import argparse
|
6 |
from datetime import datetime
|
7 |
import subprocess
|
|
|
8 |
|
9 |
CONFIG_PATH = Path("configs/unet/second_stage.yaml")
|
10 |
CHECKPOINT_PATH = Path("checkpoints/latentsync_unet.pt")
|
11 |
|
12 |
-
subprocess.run(["huggingface-cli", "download", "
|
13 |
-
|
14 |
|
15 |
def process_video(
|
16 |
video_path,
|
|
|
5 |
import argparse
|
6 |
from datetime import datetime
|
7 |
import subprocess
|
8 |
+
import os
|
9 |
|
10 |
CONFIG_PATH = Path("configs/unet/second_stage.yaml")
|
11 |
CHECKPOINT_PATH = Path("checkpoints/latentsync_unet.pt")
|
12 |
|
13 |
+
# subprocess.run(["huggingface-cli", "download", "Hyathi/LatentSync", "--local-dir", "checkpoints", "--exclude", "*.git*", "README.md"])
|
14 |
+
subprocess.run(["huggingface-cli", "download", "Hyathi/LatentSync", "--local-dir", "checkpoints", "--exclude", "*.git*", "README.md", "--token", os.environ["HF_TOKEN"]])
|
15 |
|
16 |
def process_video(
|
17 |
video_path,
|
setup_env.sh
CHANGED
@@ -14,7 +14,7 @@ pip install -r requirements.txt
|
|
14 |
sudo apt -y install libgl1
|
15 |
|
16 |
# Download all the checkpoints from HuggingFace
|
17 |
-
huggingface-cli download
|
18 |
|
19 |
# Soft links for the auxiliary models
|
20 |
mkdir -p ~/.cache/torch/hub/checkpoints
|
|
|
14 |
sudo apt -y install libgl1
|
15 |
|
16 |
# Download all the checkpoints from HuggingFace
|
17 |
+
huggingface-cli download Hyathi/LatentSync --local-dir checkpoints --exclude "*.git*" "README.md"
|
18 |
|
19 |
# Soft links for the auxiliary models
|
20 |
mkdir -p ~/.cache/torch/hub/checkpoints
|