Anonymous commited on
Commit
8524bdd
1 Parent(s): c9d9cec

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,11 +18,9 @@ from funcs import (
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
 
@@ -39,6 +37,7 @@ def infer(prompt):
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,6 +49,7 @@ def infer(prompt):
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)
 
18
  from utils.utils import instantiate_from_config
19
 
20
  ckpt_path_1024 = "checkpoints/base_1024_v1/model.ckpt"
 
21
  # hf_hub_download(repo_id="VideoCrafter/Text2Video-1024", filename="model.ckpt", local_dir=ckpt_path_1024)
22
 
23
  ckpt_path_256 = "checkpoints/base_256_v1/model.pth"
 
24
  hf_hub_download(repo_id="MoonQiu/LongerCrafter", filename="model.pth", local_dir=ckpt_path_256)
25
 
26
 
 
37
  if output_size == "576x1024":
38
  width = 1024
39
  height = 576
40
+ config_1024 = "configs/inference_t2v_1024_v1.0_freenoise.yaml"
41
  config_1024 = OmegaConf.load(config_1024)
42
  model_config_1024 = config_1024.pop("model", OmegaConf.create())
43
  model_1024 = instantiate_from_config(model_config_1024)
 
49
  elif output_size == "256x256":
50
  width = 256
51
  height = 256
52
+ config_256 = "configs/inference_t2v_tconv256_v1.0_freenoise.yaml"
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)