Spaces:
Sleeping
Sleeping
Anonymous
commited on
Commit
•
47446fb
1
Parent(s):
e9a044b
update app
Browse files
app.py
CHANGED
@@ -17,6 +17,15 @@ from funcs import (
|
|
17 |
)
|
18 |
from utils.utils import instantiate_from_config
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
def infer(prompt):
|
21 |
output_size = "256x256"
|
22 |
num_frames = 32
|
@@ -30,9 +39,6 @@ def infer(prompt):
|
|
30 |
if output_size == "576x1024":
|
31 |
width = 1024
|
32 |
height = 576
|
33 |
-
ckpt_path_1024 = "checkpoints/base_1024_v1/model.ckpt"
|
34 |
-
hf_hub_download(repo_id="VideoCrafter/Text2Video-1024", filename="model.ckpt", local_dir=ckpt_path_1024)
|
35 |
-
config_1024 = "configs/inference_t2v_1024_v1.0_freenoise.yaml"
|
36 |
config_1024 = OmegaConf.load(config_1024)
|
37 |
model_config_1024 = config_1024.pop("model", OmegaConf.create())
|
38 |
model_1024 = instantiate_from_config(model_config_1024)
|
@@ -44,9 +50,6 @@ def infer(prompt):
|
|
44 |
elif output_size == "256x256":
|
45 |
width = 256
|
46 |
height = 256
|
47 |
-
ckpt_path_256 = "checkpoints/base_256_v1/model.pth"
|
48 |
-
config_256 = "configs/inference_t2v_tconv256_v1.0_freenoise.yaml"
|
49 |
-
hf_hub_download(repo_id="MoonQiu/LongerCrafter", filename="model.pth", local_dir=model_config_256)
|
50 |
config_256 = OmegaConf.load(config_256)
|
51 |
model_config_256 = config_256.pop("model", OmegaConf.create())
|
52 |
model_256 = instantiate_from_config(model_config_256)
|
|
|
17 |
)
|
18 |
from utils.utils import instantiate_from_config
|
19 |
|
20 |
+
ckpt_path_1024 = "checkpoints/base_1024_v1/model.ckpt"
|
21 |
+
config_1024 = "configs/inference_t2v_1024_v1.0_freenoise.yaml"
|
22 |
+
# hf_hub_download(repo_id="VideoCrafter/Text2Video-1024", filename="model.ckpt", local_dir=ckpt_path_1024)
|
23 |
+
|
24 |
+
ckpt_path_256 = "checkpoints/base_256_v1/model.pth"
|
25 |
+
config_256 = "configs/inference_t2v_tconv256_v1.0_freenoise.yaml"
|
26 |
+
hf_hub_download(repo_id="MoonQiu/LongerCrafter", filename="model.pth", local_dir=ckpt_path_256)
|
27 |
+
|
28 |
+
|
29 |
def infer(prompt):
|
30 |
output_size = "256x256"
|
31 |
num_frames = 32
|
|
|
39 |
if output_size == "576x1024":
|
40 |
width = 1024
|
41 |
height = 576
|
|
|
|
|
|
|
42 |
config_1024 = OmegaConf.load(config_1024)
|
43 |
model_config_1024 = config_1024.pop("model", OmegaConf.create())
|
44 |
model_1024 = instantiate_from_config(model_config_1024)
|
|
|
50 |
elif output_size == "256x256":
|
51 |
width = 256
|
52 |
height = 256
|
|
|
|
|
|
|
53 |
config_256 = OmegaConf.load(config_256)
|
54 |
model_config_256 = config_256.pop("model", OmegaConf.create())
|
55 |
model_256 = instantiate_from_config(model_config_256)
|