├── .gitignore ├── LICENSE.txt ├── Notice ├── README.md ├── README_zh.md ├── assets ├── 3dvae.png ├── PenguinVideoBenchmark.csv ├── WECHAT.md ├── backbone.png ├── hunyuanvideo.pdf ├── logo.png ├── overall.png ├── text_encoder.png ├── video_poster.png └── wechat.jpg ├── ckpts └── README.md ├── gradio_server.py ├── hyvideo ├── __init__.py ├── config.py ├── constants.py ├── diffusion │ ├── __init__.py │ ├── pipelines │ │ ├── __init__.py │ │ └── pipeline_hunyuan_video.py │ └── schedulers │ │ ├── __init__.py │ │ └── scheduling_flow_match_discrete.py ├── inference.py ├── modules │ ├── __init__.py │ ├── activation_layers.py │ ├── attenion.py │ ├── embed_layers.py │ ├── fp8_optimization.py │ ├── mlp_layers.py │ ├── models.py │ ├── modulate_layers.py │ ├── norm_layers.py │ ├── posemb_layers.py │ └── token_refiner.py ├── prompt_rewrite.py ├── text_encoder │ └── __init__.py ├── utils │ ├── __init__.py │ ├── data_utils.py │ ├── file_utils.py │ ├── helpers.py │ └── preprocess_text_encoder_tokenizer_utils.py └── vae │ ├── __init__.py │ ├── autoencoder_kl_causal_3d.py │ ├── unet_causal_3d_blocks.py │ └── vae.py ├── requirements.txt ├── sample_video.py ├── scripts ├── run_sample_video.sh ├── run_sample_video_fp8.sh └── run_sample_video_multigpu.sh ├── tests └── test_attention.py └── utils └── collect_env.py /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | /ckpts/**/ -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /Notice: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/Notice -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/README.md -------------------------------------------------------------------------------- /README_zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/README_zh.md -------------------------------------------------------------------------------- /assets/3dvae.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/assets/3dvae.png -------------------------------------------------------------------------------- /assets/PenguinVideoBenchmark.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/assets/PenguinVideoBenchmark.csv -------------------------------------------------------------------------------- /assets/WECHAT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/assets/WECHAT.md -------------------------------------------------------------------------------- /assets/backbone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/assets/backbone.png -------------------------------------------------------------------------------- /assets/hunyuanvideo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/assets/hunyuanvideo.pdf -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/assets/logo.png -------------------------------------------------------------------------------- /assets/overall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/assets/overall.png -------------------------------------------------------------------------------- /assets/text_encoder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/assets/text_encoder.png -------------------------------------------------------------------------------- /assets/video_poster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/assets/video_poster.png -------------------------------------------------------------------------------- /assets/wechat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/assets/wechat.jpg -------------------------------------------------------------------------------- /ckpts/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/ckpts/README.md -------------------------------------------------------------------------------- /gradio_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/gradio_server.py -------------------------------------------------------------------------------- /hyvideo/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /hyvideo/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/config.py -------------------------------------------------------------------------------- /hyvideo/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/constants.py -------------------------------------------------------------------------------- /hyvideo/diffusion/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/diffusion/__init__.py -------------------------------------------------------------------------------- /hyvideo/diffusion/pipelines/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/diffusion/pipelines/__init__.py -------------------------------------------------------------------------------- /hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py -------------------------------------------------------------------------------- /hyvideo/diffusion/schedulers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/diffusion/schedulers/__init__.py -------------------------------------------------------------------------------- /hyvideo/diffusion/schedulers/scheduling_flow_match_discrete.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/diffusion/schedulers/scheduling_flow_match_discrete.py -------------------------------------------------------------------------------- /hyvideo/inference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/inference.py -------------------------------------------------------------------------------- /hyvideo/modules/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/modules/__init__.py -------------------------------------------------------------------------------- /hyvideo/modules/activation_layers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/modules/activation_layers.py -------------------------------------------------------------------------------- /hyvideo/modules/attenion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/modules/attenion.py -------------------------------------------------------------------------------- /hyvideo/modules/embed_layers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/modules/embed_layers.py -------------------------------------------------------------------------------- /hyvideo/modules/fp8_optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/modules/fp8_optimization.py -------------------------------------------------------------------------------- /hyvideo/modules/mlp_layers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/modules/mlp_layers.py -------------------------------------------------------------------------------- /hyvideo/modules/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/modules/models.py -------------------------------------------------------------------------------- /hyvideo/modules/modulate_layers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/modules/modulate_layers.py -------------------------------------------------------------------------------- /hyvideo/modules/norm_layers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/modules/norm_layers.py -------------------------------------------------------------------------------- /hyvideo/modules/posemb_layers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/modules/posemb_layers.py -------------------------------------------------------------------------------- /hyvideo/modules/token_refiner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/modules/token_refiner.py -------------------------------------------------------------------------------- /hyvideo/prompt_rewrite.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/prompt_rewrite.py -------------------------------------------------------------------------------- /hyvideo/text_encoder/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/text_encoder/__init__.py -------------------------------------------------------------------------------- /hyvideo/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /hyvideo/utils/data_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/utils/data_utils.py -------------------------------------------------------------------------------- /hyvideo/utils/file_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/utils/file_utils.py -------------------------------------------------------------------------------- /hyvideo/utils/helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/utils/helpers.py -------------------------------------------------------------------------------- /hyvideo/utils/preprocess_text_encoder_tokenizer_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/utils/preprocess_text_encoder_tokenizer_utils.py -------------------------------------------------------------------------------- /hyvideo/vae/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/vae/__init__.py -------------------------------------------------------------------------------- /hyvideo/vae/autoencoder_kl_causal_3d.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/vae/autoencoder_kl_causal_3d.py -------------------------------------------------------------------------------- /hyvideo/vae/unet_causal_3d_blocks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/vae/unet_causal_3d_blocks.py -------------------------------------------------------------------------------- /hyvideo/vae/vae.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/hyvideo/vae/vae.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/requirements.txt -------------------------------------------------------------------------------- /sample_video.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/sample_video.py -------------------------------------------------------------------------------- /scripts/run_sample_video.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/scripts/run_sample_video.sh -------------------------------------------------------------------------------- /scripts/run_sample_video_fp8.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/scripts/run_sample_video_fp8.sh -------------------------------------------------------------------------------- /scripts/run_sample_video_multigpu.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/scripts/run_sample_video_multigpu.sh -------------------------------------------------------------------------------- /tests/test_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/tests/test_attention.py -------------------------------------------------------------------------------- /utils/collect_env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tencent-Hunyuan/HunyuanVideo/HEAD/utils/collect_env.py --------------------------------------------------------------------------------