Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,9 +23,10 @@ import uuid
|
|
| 23 |
import random
|
| 24 |
from huggingface_hub import hf_hub_download
|
| 25 |
|
| 26 |
-
hf_hub_download(repo_id="stabilityai/stable-video-diffusion-img2vid-xt", filename="svd_xt.safetensors", local_dir="checkpoints")
|
|
|
|
| 27 |
|
| 28 |
-
version = "
|
| 29 |
device = "cuda"
|
| 30 |
max_64_bit_int = 2**63 - 1
|
| 31 |
|
|
@@ -58,6 +59,10 @@ if version == "svd_xt":
|
|
| 58 |
num_frames = 25
|
| 59 |
num_steps = 30
|
| 60 |
model_config = "scripts/sampling/configs/svd_xt.yaml"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
else:
|
| 62 |
raise ValueError(f"Version {version} does not exist.")
|
| 63 |
|
|
|
|
| 23 |
import random
|
| 24 |
from huggingface_hub import hf_hub_download
|
| 25 |
|
| 26 |
+
hf_hub_download(repo_id="stabilityai/stable-video-diffusion-img2vid-xt", filename="svd_xt.safetensors", local_dir="/workspace/checkpoints")
|
| 27 |
+
hf_hub_download(repo_id="vdo/stable-video-diffusion-img2vid-xt-1-1", filename="svd_xt_1_1.safetensors", local_dir="/workspace/checkpoints")
|
| 28 |
|
| 29 |
+
version = "svd_xt_1_1"
|
| 30 |
device = "cuda"
|
| 31 |
max_64_bit_int = 2**63 - 1
|
| 32 |
|
|
|
|
| 59 |
num_frames = 25
|
| 60 |
num_steps = 30
|
| 61 |
model_config = "scripts/sampling/configs/svd_xt.yaml"
|
| 62 |
+
elif version == "svd_xt_1_1":
|
| 63 |
+
num_frames = 25
|
| 64 |
+
num_steps = 30
|
| 65 |
+
model_config = "scripts/sampling/configs/svd_xt_1_1.yaml"
|
| 66 |
else:
|
| 67 |
raise ValueError(f"Version {version} does not exist.")
|
| 68 |
|