Fabrice-TIERCELIN commited on
Commit
a07ca9d
·
verified ·
1 Parent(s): 6ca755c

tencent_HunyuanVideo

Browse files
Files changed (1) hide show
  1. gradio_server.py +13 -1
gradio_server.py CHANGED
@@ -12,6 +12,18 @@ from hyvideo.config import parse_args
12
  from hyvideo.inference import HunyuanVideoSampler
13
  from hyvideo.constants import NEGATIVE_PROMPT
14
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  def initialize_model(model_path):
16
  args = parse_args()
17
  models_root_path = Path(model_path)
@@ -143,5 +155,5 @@ def create_demo(model_path):
143
 
144
  if __name__ == "__main__":
145
  os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"
146
- demo = create_demo("tencent/HunyuanVideo")
147
  demo.queue(10).launch()
 
12
  from hyvideo.inference import HunyuanVideoSampler
13
  from hyvideo.constants import NEGATIVE_PROMPT
14
 
15
+ from huggingface_hub import hf_hub_download
16
+
17
+ hf_hub_download(repo_id="tencent/HunyuanVideo", filename="LICENSE", local_dir="tencent_HunyuanVideo")
18
+ hf_hub_download(repo_id="tencent/HunyuanVideo", filename="Notice", local_dir="tencent_HunyuanVideo")
19
+ hf_hub_download(repo_id="tencent/HunyuanVideo", filename="README.md", local_dir="tencent_HunyuanVideo")
20
+ hf_hub_download(repo_id="tencent/HunyuanVideo", filename="config.json", local_dir="tencent_HunyuanVideo")
21
+ hf_hub_download(repo_id="tencent/HunyuanVideo", filename="hunyuan-video-t2v-720p/transformers/mp_rank_00_model_states.pt", local_dir="tencent_HunyuanVideo/hunyuan-video-t2v-720p/transformers")
22
+ hf_hub_download(repo_id="tencent/HunyuanVideo", filename="hunyuan-video-t2v-720p/transformers/mp_rank_00_model_states_fp8.pt", local_dir="tencent_HunyuanVideo/hunyuan-video-t2v-720p/transformers")
23
+ hf_hub_download(repo_id="tencent/HunyuanVideo", filename="hunyuan-video-t2v-720p/transformers/mp_rank_00_model_states_fp8_map.pt", local_dir="tencent_HunyuanVideo/hunyuan-video-t2v-720p/transformers")
24
+ hf_hub_download(repo_id="tencent/HunyuanVideo", filename="hunyuan-video-t2v-720p/vae/config.json", local_dir="tencent_HunyuanVideo/hunyuan-video-t2v-720p/vae")
25
+ hf_hub_download(repo_id="tencent/HunyuanVideo", filename="hunyuan-video-t2v-720p/vae/pytorch_model.pt", local_dir="tencent_HunyuanVideo/hunyuan-video-t2v-720p/vae")
26
+
27
  def initialize_model(model_path):
28
  args = parse_args()
29
  models_root_path = Path(model_path)
 
155
 
156
  if __name__ == "__main__":
157
  os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"
158
+ demo = create_demo("tencent_HunyuanVideo")
159
  demo.queue(10).launch()