Commit
·
c5336ef
verified
·
0
Parent(s):
Duplicate from tencent/HunyuanVideo-Foley
Browse filesCo-authored-by: TencentOpen <[email protected]>
- .gitattributes +39 -0
- LICENSE +77 -0
- NOTICE +27 -0
- README.md +473 -0
- assets/data_pipeline.png +3 -0
- assets/logo.png +3 -0
- assets/model_arch.png +3 -0
- assets/pan_chart.png +3 -0
- config.yaml +49 -0
- config_xl.yaml +48 -0
- hunyuanvideo_foley.pth +3 -0
- hunyuanvideo_foley_xl.pth +3 -0
- synchformer_state_dict.pth +3 -0
- vae_128d_48k.pth +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
assets/data_pipeline.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
assets/model_arch.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
assets/pan_chart.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
TENCENT HUNYUAN COMMUNITY LICENSE AGREEMENT
|
| 2 |
+
Tencent HunyuanVideo-Foley Release Date: August 28, 2025
|
| 3 |
+
THIS LICENSE AGREEMENT DOES NOT APPLY IN THE EUROPEAN UNION, UNITED KINGDOM AND SOUTH KOREA AND IS EXPRESSLY LIMITED TO THE TERRITORY, AS DEFINED BELOW.
|
| 4 |
+
By clicking to agree or by using, reproducing, modifying, distributing, performing or displaying any portion or element of the Tencent Hunyuan Works, including via any Hosted Service, You will be deemed to have recognized and accepted the content of this Agreement, which is effective immediately.
|
| 5 |
+
1. DEFINITIONS.
|
| 6 |
+
a. “Acceptable Use Policy” shall mean the policy made available by Tencent as set forth in the Exhibit A.
|
| 7 |
+
b. “Agreement” shall mean the terms and conditions for use, reproduction, distribution, modification, performance and displaying of Tencent Hunyuan Works or any portion or element thereof set forth herein.
|
| 8 |
+
c. “Documentation” shall mean the specifications, manuals and documentation for Tencent Hunyuan made publicly available by Tencent.
|
| 9 |
+
d. “Hosted Service” shall mean a hosted service offered via an application programming interface (API), web access, or any other electronic or remote means.
|
| 10 |
+
e. “Licensee,” “You” or “Your” shall mean a natural person or legal entity exercising the rights granted by this Agreement and/or using the Tencent Hunyuan Works for any purpose and in any field of use.
|
| 11 |
+
f. “Materials” shall mean, collectively, Tencent’s proprietary Tencent Hunyuan and Documentation (and any portion thereof) as made available by Tencent under this Agreement.
|
| 12 |
+
g. “Model Derivatives” shall mean all: (i) modifications to Tencent Hunyuan or any Model Derivative of Tencent Hunyuan; (ii) works based on Tencent Hunyuan or any Model Derivative of Tencent Hunyuan; or (iii) any other machine learning model which is created by transfer of patterns of the weights, parameters, operations, or Output of Tencent Hunyuan or any Model Derivative of Tencent Hunyuan, to that model in order to cause that model to perform similarly to Tencent Hunyuan or a Model Derivative of Tencent Hunyuan, including distillation methods, methods that use intermediate data representations, or methods based on the generation of synthetic data Outputs by Tencent Hunyuan or a Model Derivative of Tencent Hunyuan for training that model. For clarity, Outputs by themselves are not deemed Model Derivatives.
|
| 13 |
+
h. “Output” shall mean the information and/or content output of Tencent Hunyuan or a Model Derivative that results from operating or otherwise using Tencent Hunyuan or a Model Derivative, including via a Hosted Service.
|
| 14 |
+
i. “Tencent,” “We” or “Us” shall mean the applicable entity or entities in the Tencent corporate family that own(s) intellectual property or other rights embodied in or utilized by the Materials.
|
| 15 |
+
j. “Tencent Hunyuan” shall mean the large language models, text/image/video/audio/3D generation models, and multimodal large language models and their software and algorithms, including trained model weights, parameters (including optimizer states), machine-learning model code, inference-enabling code, training-enabling code, fine-tuning enabling code and other elements of the foregoing made publicly available by Us, including, without limitation to, Tencent HunyuanVideo-Foley released at [https://github.com/Tencent-Hunyuan/HunyuanVideo-Foley].
|
| 16 |
+
k. “Tencent Hunyuan Works” shall mean: (i) the Materials; (ii) Model Derivatives; and (iii) all derivative works thereof.
|
| 17 |
+
l. “Territory” shall mean the worldwide territory, excluding the territory of the European Union, United Kingdom and South Korea.
|
| 18 |
+
m. “Third Party” or “Third Parties” shall mean individuals or legal entities that are not under common control with Us or You.
|
| 19 |
+
n. “including” shall mean including but not limited to.
|
| 20 |
+
2. GRANT OF RIGHTS.
|
| 21 |
+
We grant You, for the Territory only, a non-exclusive, non-transferable and royalty-free limited license under Tencent’s intellectual property or other rights owned by Us embodied in or utilized by the Materials to use, reproduce, distribute, create derivative works of (including Model Derivatives), and make modifications to the Materials, only in accordance with the terms of this Agreement and the Acceptable Use Policy, and You must not violate (or encourage or permit anyone else to violate) any term of this Agreement or the Acceptable Use Policy.
|
| 22 |
+
3. DISTRIBUTION.
|
| 23 |
+
You may, subject to Your compliance with this Agreement, distribute or make available to Third Parties the Tencent Hunyuan Works, exclusively in the Territory, provided that You meet all of the following conditions:
|
| 24 |
+
a. You must provide all such Third Party recipients of the Tencent Hunyuan Works or products or services using them a copy of this Agreement;
|
| 25 |
+
b. You must cause any modified files to carry prominent notices stating that You changed the files;
|
| 26 |
+
c. You are encouraged to: (i) publish at least one technology introduction blogpost or one public statement expressing Your experience of using the Tencent Hunyuan Works; and (ii) mark the products or services developed by using the Tencent Hunyuan Works to indicate that the product/service is “Powered by Tencent Hunyuan”; and
|
| 27 |
+
d. All distributions to Third Parties (other than through a Hosted Service) must be accompanied by a “Notice” text file that contains the following notice: “Tencent Hunyuan is licensed under the Tencent Hunyuan Community License Agreement, Copyright © 2025 Tencent. All Rights Reserved. The trademark rights of “Tencent Hunyuan” are owned by Tencent or its affiliate.”
|
| 28 |
+
You may add Your own copyright statement to Your modifications and, except as set forth in this Section and in Section 5, may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Model Derivatives as a whole, provided Your use, reproduction, modification, distribution, performance and display of the work otherwise complies with the terms and conditions of this Agreement (including as regards the Territory). If You receive Tencent Hunyuan Works from a Licensee as part of an integrated end user product, then this Section 3 of this Agreement will not apply to You.
|
| 29 |
+
4. ADDITIONAL COMMERCIAL TERMS.
|
| 30 |
+
If, on the Tencent Hunyuan version release date, the monthly active users of all products or services made available by or for Licensee is greater than 100 million monthly active users in the preceding calendar month, You must request a license from Tencent, which Tencent may grant to You in its sole discretion, and You are not authorized to exercise any of the rights under this Agreement unless or until Tencent otherwise expressly grants You such rights.
|
| 31 |
+
5. RULES OF USE.
|
| 32 |
+
a. Your use of the Tencent Hunyuan Works must comply with applicable laws and regulations (including trade compliance laws and regulations) and adhere to the Acceptable Use Policy for the Tencent Hunyuan Works, which is hereby incorporated by reference into this Agreement. You must include the use restrictions referenced in these Sections 5(a) and 5(b) as an enforceable provision in any agreement (e.g., license agreement, terms of use, etc.) governing the use and/or distribution of Tencent Hunyuan Works and You must provide notice to subsequent users to whom You distribute that Tencent Hunyuan Works are subject to the use restrictions in these Sections 5(a) and 5(b).
|
| 33 |
+
b. You must not use the Tencent Hunyuan Works or any Output or results of the Tencent Hunyuan Works to improve any other AI model (other than Tencent Hunyuan or Model Derivatives thereof).
|
| 34 |
+
c. You must not use, reproduce, modify, distribute, or display the Tencent Hunyuan Works, Output or results of the Tencent Hunyuan Works outside the Territory. Any such use outside the Territory is unlicensed and unauthorized under this Agreement.
|
| 35 |
+
6. INTELLECTUAL PROPERTY.
|
| 36 |
+
a. Subject to Tencent’s ownership of Tencent Hunyuan Works made by or for Tencent and intellectual property rights therein, conditioned upon Your compliance with the terms and conditions of this Agreement, as between You and Tencent, You will be the owner of any derivative works and modifications of the Materials and any Model Derivatives that are made by or for You.
|
| 37 |
+
b. No trademark licenses are granted under this Agreement, and in connection with the Tencent Hunyuan Works, Licensee may not use any name or mark owned by or associated with Tencent or any of its affiliates, except as required for reasonable and customary use in describing and distributing the Tencent Hunyuan Works. Tencent hereby grants You a license to use “Tencent Hunyuan” (the “Mark”) in the Territory solely as required to comply with the provisions of Section 3(c), provided that You comply with any applicable laws related to trademark protection. All goodwill arising out of Your use of the Mark will inure to the benefit of Tencent.
|
| 38 |
+
c. If You commence a lawsuit or other proceedings (including a cross-claim or counterclaim in a lawsuit) against Us or any person or entity alleging that the Materials or any Output, or any portion of any of the foregoing, infringe any intellectual property or other right owned or licensable by You, then all licenses granted to You under this Agreement shall terminate as of the date such lawsuit or other proceeding is filed. You will defend, indemnify and hold harmless Us from and against any claim by any Third Party arising out of or related to Your or the Third Party’s use or distribution of the Tencent Hunyuan Works.
|
| 39 |
+
d. Tencent claims no rights in Outputs You generate. You and Your users are solely responsible for Outputs and their subsequent uses.
|
| 40 |
+
7. DISCLAIMERS OF WARRANTY AND LIMITATIONS OF LIABILITY.
|
| 41 |
+
a. We are not obligated to support, update, provide training for, or develop any further version of the Tencent Hunyuan Works or to grant any license thereto.
|
| 42 |
+
b. UNLESS AND ONLY TO THE EXTENT REQUIRED BY APPLICABLE LAW, THE TENCENT HUNYUAN WORKS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED “AS IS” WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES OF ANY KIND INCLUDING ANY WARRANTIES OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, COURSE OF DEALING, USAGE OF TRADE, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING, REPRODUCING, MODIFYING, PERFORMING, DISPLAYING OR DISTRIBUTING ANY OF THE TENCENT HUNYUAN WORKS OR OUTPUTS AND ASSUME ANY AND ALL RISKS ASSOCIATED WITH YOUR OR A THIRD PARTY’S USE OR DISTRIBUTION OF ANY OF THE TENCENT HUNYUAN WORKS OR OUTPUTS AND YOUR EXERCISE OF RIGHTS AND PERMISSIONS UNDER THIS AGREEMENT.
|
| 43 |
+
c. TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL TENCENT OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, FOR ANY DAMAGES, INCLUDING ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, EXEMPLARY, CONSEQUENTIAL OR PUNITIVE DAMAGES, OR LOST PROFITS OF ANY KIND ARISING FROM THIS AGREEMENT OR RELATED TO ANY OF THE TENCENT HUNYUAN WORKS OR OUTPUTS, EVEN IF TENCENT OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.
|
| 44 |
+
8. SURVIVAL AND TERMINATION.
|
| 45 |
+
a. The term of this Agreement shall commence upon Your acceptance of this Agreement or access to the Materials and will continue in full force and effect until terminated in accordance with the terms and conditions herein.
|
| 46 |
+
b. We may terminate this Agreement if You breach any of the terms or conditions of this Agreement. Upon termination of this Agreement, You must promptly delete and cease use of the Tencent Hunyuan Works. Sections 6(a), 6(c), 7 and 9 shall survive the termination of this Agreement.
|
| 47 |
+
9. GOVERNING LAW AND JURISDICTION.
|
| 48 |
+
a. This Agreement and any dispute arising out of or relating to it will be governed by the laws of the Hong Kong Special Administrative Region of the People’s Republic of China, without regard to conflict of law principles, and the UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement.
|
| 49 |
+
b. Exclusive jurisdiction and venue for any dispute arising out of or relating to this Agreement will be a court of competent jurisdiction in the Hong Kong Special Administrative Region of the People’s Republic of China, and Tencent and Licensee consent to the exclusive jurisdiction of such court with respect to any such dispute.
|
| 50 |
+
|
| 51 |
+
EXHIBIT A
|
| 52 |
+
ACCEPTABLE USE POLICY
|
| 53 |
+
|
| 54 |
+
Tencent reserves the right to update this Acceptable Use Policy from time to time.
|
| 55 |
+
Last modified: November 5, 2024
|
| 56 |
+
|
| 57 |
+
Tencent endeavors to promote safe and fair use of its tools and features, including Tencent Hunyuan. You agree not to use Tencent Hunyuan or Model Derivatives:
|
| 58 |
+
1. Outside the Territory;
|
| 59 |
+
2. In any way that violates any applicable national, federal, state, local, international or any other law or regulation;
|
| 60 |
+
3. To harm Yourself or others;
|
| 61 |
+
4. To repurpose or distribute output from Tencent Hunyuan or any Model Derivatives to harm Yourself or others;
|
| 62 |
+
5. To override or circumvent the safety guardrails and safeguards We have put in place;
|
| 63 |
+
6. For the purpose of exploiting, harming or attempting to exploit or harm minors in any way;
|
| 64 |
+
7. To generate or disseminate verifiably false information and/or content with the purpose of harming others or influencing elections;
|
| 65 |
+
8. To generate or facilitate false online engagement, including fake reviews and other means of fake online engagement;
|
| 66 |
+
9. To intentionally defame, disparage or otherwise harass others;
|
| 67 |
+
10. To generate and/or disseminate malware (including ransomware) or any other content to be used for the purpose of harming electronic systems;
|
| 68 |
+
11. To generate or disseminate personal identifiable information with the purpose of harming others;
|
| 69 |
+
12. To generate or disseminate information (including images, code, posts, articles), and place the information in any public context (including –through the use of bot generated tweets), without expressly and conspicuously identifying that the information and/or content is machine generated;
|
| 70 |
+
13. To impersonate another individual without consent, authorization, or legal right;
|
| 71 |
+
14. To make high-stakes automated decisions in domains that affect an individual’s safety, rights or wellbeing (e.g., law enforcement, migration, medicine/health, management of critical infrastructure, safety components of products, essential services, credit, employment, housing, education, social scoring, or insurance);
|
| 72 |
+
15. In a manner that violates or disrespects the social ethics and moral standards of other countries or regions;
|
| 73 |
+
16. To perform, facilitate, threaten, incite, plan, promote or encourage violent extremism or terrorism;
|
| 74 |
+
17. For any use intended to discriminate against or harm individuals or groups based on protected characteristics or categories, online or offline social behavior or known or predicted personal or personality characteristics;
|
| 75 |
+
18. To intentionally exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;
|
| 76 |
+
19. For military purposes;
|
| 77 |
+
20. To engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or other professional practices.
|
NOTICE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Usage and Legal Notices:
|
| 2 |
+
|
| 3 |
+
Tencent is pleased to support the open source community by making Tencent HunyuanVideo-Foley available.
|
| 4 |
+
|
| 5 |
+
Copyright (C) 2025 Tencent. All rights reserved.
|
| 6 |
+
|
| 7 |
+
Tencent HunyuanVideo-Foley is licensed under TENCENT HUNYUAN COMMUNITY LICENSE AGREEMENT, which can be found in this repository called "LICENSE", except for the third-party components listed below. Tencent HunyuanVideo-Foley does not impose any additional limitations beyond what is outlined in the respective licenses of these third-party components. Users must comply with all terms and conditions of original licenses of these third-party components and must ensure that the usage of the third party components adheres to all relevant laws and regulations.
|
| 8 |
+
|
| 9 |
+
For avoidance of doubts, Tencent HunyuanVideo-Foley means the large language models and their software and algorithms, including trained model weights, parameters (including optimizer states), machine-learning model code, inference-enabling code, training-enabling code, fine-tuning enabling code and other elements of the foregoing made publicly available by Tencent in accordance with the TENCENT HUNYUAN COMMUNITY LICENSE AGREEMENT.
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
Other dependencies and licenses:
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
Open Source Software Licensed under the MIT License:
|
| 16 |
+
--------------------------------------------------------------------
|
| 17 |
+
1. syncformer
|
| 18 |
+
Copyright (c) 2024 Vladimir Iashin
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
Terms of the MIT License:
|
| 22 |
+
--------------------------------------------------------------------
|
| 23 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 24 |
+
|
| 25 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 26 |
+
|
| 27 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABL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tencent-hunyuan-community
|
| 5 |
+
license_link: https://huggingface.co/tencent/HunyuanVideo-Foley/blob/main/LICENSE
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
- zh
|
| 9 |
+
tags:
|
| 10 |
+
- text-to-audio
|
| 11 |
+
- video-to-audio
|
| 12 |
+
- text-video-to-audio
|
| 13 |
+
pipeline_tag: text-to-audio
|
| 14 |
+
extra_gated_eu_disallowed: true
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
<div align="center">
|
| 18 |
+
|
| 19 |
+
<img src="assets/logo.png" alt="HunyuanVideo-Foley Logo" width="400">
|
| 20 |
+
|
| 21 |
+
<h4>Multimodal Diffusion with Representation Alignment for High-Fidelity Foley Audio Generation</h4>
|
| 22 |
+
|
| 23 |
+
<p align="center">
|
| 24 |
+
<strong>Professional-grade AI sound effect generation for video content creators</strong>
|
| 25 |
+
</p>
|
| 26 |
+
|
| 27 |
+
<div align="center" style="margin: 20px 0;">
|
| 28 |
+
<a href=https://github.com/Tencent-Hunyuan/HunyuanVideo-Foley target="_blank"><img src=https://img.shields.io/badge/Code-black.svg?logo=github height=22px></a>
|
| 29 |
+
<a href=https://szczesnys.github.io/hunyuanvideo-foley target="_blank"><img src=https://img.shields.io/badge/Page-bb8a2e.svg?logo=github height=22px></a>
|
| 30 |
+
<a href=https://huggingface.co/tencent/HunyuanVideo-Foley target="_blank"><img src=https://img.shields.io/badge/%F0%9F%A4%97%20Models-d96902.svg height=22px></a>
|
| 31 |
+
<a href=https://huggingface.co/spaces/tencent/HunyuanVideo-Foley target="_blank"><img src=https://img.shields.io/badge/%F0%9F%A4%97%20Demo-276cb4.svg height=22px></a>
|
| 32 |
+
<a href=https://arxiv.org/abs/2508.16930 target="_blank"><img src=https://img.shields.io/badge/Report-b5212f.svg?logo=arxiv height=22px></a>
|
| 33 |
+
<a href=https://x.com/TencentHunyuan target="_blank"><img src=https://img.shields.io/badge/Hunyuan-black.svg?logo=x height=22px></a>
|
| 34 |
+
</div>
|
| 35 |
+
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
<div align="center">
|
| 41 |
+
|
| 42 |
+
### 👥 **Authors**
|
| 43 |
+
|
| 44 |
+
<div style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; border-radius: 15px; margin: 20px 0;">
|
| 45 |
+
|
| 46 |
+
**Sizhe Shan**<sup>1,2*</sup> • **Qiulin Li**<sup>1,3*</sup> • **Yutao Cui**<sup>1</sup> • **Miles Yang**<sup>1</sup> • **Yuehai Wang**<sup>2</sup> • **Qun Yang**<sup>3</sup> • **Jin Zhou**<sup>1†</sup> • **Zhao Zhong**<sup>1</sup>
|
| 47 |
+
|
| 48 |
+
</div>
|
| 49 |
+
|
| 50 |
+
<div style="margin-top: 15px; font-size: 14px; color: #666;">
|
| 51 |
+
|
| 52 |
+
🏢 <sup>1</sup>**Tencent Hunyuan** • 🎓 <sup>2</sup>**Zhejiang University** • ✈️ <sup>3</sup>**Nanjing University of Aeronautics and Astronautics**
|
| 53 |
+
|
| 54 |
+
*Equal contribution • †Project lead
|
| 55 |
+
|
| 56 |
+
</div>
|
| 57 |
+
|
| 58 |
+
</div>
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
## 🔥🔥🔥 **News**
|
| 65 |
+
|
| 66 |
+
<div style="padding: 20px; border-radius: 15px; margin: 20px 0; border-left: 5px solid;">
|
| 67 |
+
|
| 68 |
+
- **[2025.9.29]** 🚀 **HunyuanVideo-Foley-XL Model Release** - Release XL-sized model with offload inference support, significantly reducing VRAM requirements.
|
| 69 |
+
- **[2025.8.28]** 🌟 **HunyuanVideo-Foley Open Source Release** - Inference code and model weights publicly available.
|
| 70 |
+
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
---
|
| 75 |
+
|
| 76 |
+
<!-- ## 🎥 **Demo & Showcase** -->
|
| 77 |
+
<!-- -->
|
| 78 |
+
<!-- <div align="center"> -->
|
| 79 |
+
<!-- -->
|
| 80 |
+
<!-- > **Experience the magic of AI-generated Foley audio in perfect sync with video content!** -->
|
| 81 |
+
<!-- -->
|
| 82 |
+
<!-- <div style="border: 3px solid #4A90E2; border-radius: 15px; padding: 10px; margin: 20px 0; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);"> -->
|
| 83 |
+
<!-- -->
|
| 84 |
+
<!-- <video src="https://github.com/user-attachments/assets/087a4b59-8b22-4b7a-bac3-8f5d5a9972fe" width="80%" controls style="border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.1);"> </video> -->
|
| 85 |
+
<!-- -->
|
| 86 |
+
<!-- <p><em>🎬 Watch how HunyuanVideo-Foley generates immersive sound effects synchronized with video content</em></p> -->
|
| 87 |
+
<!-- -->
|
| 88 |
+
<!-- </div> -->
|
| 89 |
+
|
| 90 |
+
### ✨ **Key Highlights**
|
| 91 |
+
|
| 92 |
+
<table align="center" style="border: none; margin: 20px 0;">
|
| 93 |
+
<tr>
|
| 94 |
+
<td align="center" width="33%">
|
| 95 |
+
|
| 96 |
+
🎭 **Multi-scenario Sync**
|
| 97 |
+
High-quality audio synchronized with complex video scenes
|
| 98 |
+
|
| 99 |
+
</td>
|
| 100 |
+
<td align="center" width="33%">
|
| 101 |
+
|
| 102 |
+
🧠 **Multi-modal Balance**
|
| 103 |
+
Perfect harmony between visual and textual information
|
| 104 |
+
|
| 105 |
+
</td>
|
| 106 |
+
<td align="center" width="33%">
|
| 107 |
+
|
| 108 |
+
🎵 **48kHz Hi-Fi Output**
|
| 109 |
+
Professional-grade audio generation with crystal clarity
|
| 110 |
+
|
| 111 |
+
</td>
|
| 112 |
+
</tr>
|
| 113 |
+
</table>
|
| 114 |
+
|
| 115 |
+
</div>
|
| 116 |
+
|
| 117 |
+
---
|
| 118 |
+
|
| 119 |
+
## 📄 **Abstract**
|
| 120 |
+
|
| 121 |
+
<div align="center" style="background: linear-gradient(135deg, #ffeef8 0%, #f0f8ff 100%); padding: 30px; border-radius: 20px; margin: 20px 0; border-left: 5px solid #ff6b9d; color: #333;">
|
| 122 |
+
|
| 123 |
+
**🚀 Tencent Hunyuan** open-sources **HunyuanVideo-Foley** an end-to-end video sound effect generation model!
|
| 124 |
+
|
| 125 |
+
*A professional-grade AI tool specifically designed for video content creators, widely applicable to diverse scenarios including short video creation, film production, advertising creativity, and game development.*
|
| 126 |
+
|
| 127 |
+
</div>
|
| 128 |
+
|
| 129 |
+
### 🎯 **Core Highlights**
|
| 130 |
+
|
| 131 |
+
<div style="display: grid; grid-template-columns: 1fr; gap: 15px; margin: 20px 0;">
|
| 132 |
+
|
| 133 |
+
<div style="border-left: 4px solid #4CAF50; padding: 15px; background: #f8f9fa; border-radius: 8px; color: #333;">
|
| 134 |
+
|
| 135 |
+
**🎬 Multi-scenario Audio-Visual Synchronization**
|
| 136 |
+
Supports generating high-quality audio that is synchronized and semantically aligned with complex video scenes, enhancing realism and immersive experience for film/TV and gaming applications.
|
| 137 |
+
|
| 138 |
+
</div>
|
| 139 |
+
|
| 140 |
+
<div style="border-left: 4px solid #2196F3; padding: 15px; background: #f8f9fa; border-radius: 8px; color: #333;">
|
| 141 |
+
|
| 142 |
+
**⚖️ Multi-modal Semantic Balance**
|
| 143 |
+
Intelligently balances visual and textual information analysis, comprehensively orchestrates sound effect elements, avoids one-sided generation, and meets personalized dubbing requirements.
|
| 144 |
+
|
| 145 |
+
</div>
|
| 146 |
+
|
| 147 |
+
<div style="border-left: 4px solid #FF9800; padding: 15px; background: #f8f9fa; border-radius: 8px; color: #333;">
|
| 148 |
+
|
| 149 |
+
**🎵 High-fidelity Audio Output**
|
| 150 |
+
Self-developed 48kHz audio VAE perfectly reconstructs sound effects, music, and vocals, achieving professional-grade audio generation quality.
|
| 151 |
+
|
| 152 |
+
</div>
|
| 153 |
+
|
| 154 |
+
</div>
|
| 155 |
+
|
| 156 |
+
<div align="center" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px; border-radius: 15px; margin: 20px 0; color: #333;">
|
| 157 |
+
|
| 158 |
+
**🏆 SOTA Performance Achieved**
|
| 159 |
+
|
| 160 |
+
*HunyuanVideo-Foley comprehensively leads the field across multiple evaluation benchmarks, achieving new state-of-the-art levels in audio fidelity, visual-semantic alignment, temporal alignment, and distribution matching - surpassing all open-source solutions!*
|
| 161 |
+
|
| 162 |
+
</div>
|
| 163 |
+
|
| 164 |
+
<div align="center">
|
| 165 |
+
|
| 166 |
+

|
| 167 |
+
*📊 Performance comparison across different evaluation metrics - HunyuanVideo-Foley leads in all categories*
|
| 168 |
+
|
| 169 |
+
</div>
|
| 170 |
+
|
| 171 |
+
---
|
| 172 |
+
|
| 173 |
+
## 🔧 **Technical Architecture**
|
| 174 |
+
|
| 175 |
+
### 📊 **Data Pipeline Design**
|
| 176 |
+
|
| 177 |
+
<div align="center" style="margin: 20px 0;">
|
| 178 |
+
|
| 179 |
+

|
| 180 |
+
*🔄 Comprehensive data processing pipeline for high-quality text-video-audio datasets*
|
| 181 |
+
|
| 182 |
+
</div>
|
| 183 |
+
|
| 184 |
+
<div style="background: #f8f9fa; padding: 20px; border-radius: 10px; border-left: 4px solid #17a2b8; margin: 20px 0; color: #333;">
|
| 185 |
+
|
| 186 |
+
The **TV2A (Text-Video-to-Audio)** task presents a complex multimodal generation challenge requiring large-scale, high-quality datasets. Our comprehensive data pipeline systematically identifies and excludes unsuitable content to produce robust and generalizable audio generation capabilities.
|
| 187 |
+
|
| 188 |
+
</div>
|
| 189 |
+
|
| 190 |
+
### 🏗️ **Model Architecture**
|
| 191 |
+
|
| 192 |
+
<div align="center" style="margin: 20px 0;">
|
| 193 |
+
|
| 194 |
+

|
| 195 |
+
*🧠 HunyuanVideo-Foley hybrid architecture with multimodal and unimodal transformer blocks*
|
| 196 |
+
|
| 197 |
+
</div>
|
| 198 |
+
|
| 199 |
+
<div style="background: #f8f9fa; padding: 20px; border-radius: 10px; border-left: 4px solid #28a745; margin: 20px 0; color: #333;">
|
| 200 |
+
|
| 201 |
+
**HunyuanVideo-Foley** employs a sophisticated hybrid architecture:
|
| 202 |
+
|
| 203 |
+
- **🔄 Multimodal Transformer Blocks**: Process visual-audio streams simultaneously
|
| 204 |
+
- **🎵 Unimodal Transformer Blocks**: Focus on audio stream refinement
|
| 205 |
+
- **👁️ Visual Encoding**: Pre-trained encoder extracts visual features from video frames
|
| 206 |
+
- **📝 Text Processing**: Semantic features extracted via pre-trained text encoder
|
| 207 |
+
- **🎧 Audio Encoding**: Latent representations with Gaussian noise perturbation
|
| 208 |
+
- **⏰ Temporal Alignment**: Synchformer-based frame-level synchronization with gated modulation
|
| 209 |
+
|
| 210 |
+
</div>
|
| 211 |
+
|
| 212 |
+
---
|
| 213 |
+
|
| 214 |
+
## 📈 **Performance Benchmarks**
|
| 215 |
+
|
| 216 |
+
### 🎬 **MovieGen-Audio-Bench Results**
|
| 217 |
+
|
| 218 |
+
<div align="center">
|
| 219 |
+
|
| 220 |
+
> *Objective and Subjective evaluation results demonstrating superior performance across all metrics*
|
| 221 |
+
|
| 222 |
+
</div>
|
| 223 |
+
|
| 224 |
+
<div style="overflow-x: auto; margin: 20px 0;">
|
| 225 |
+
|
| 226 |
+
| 🏆 **Method** | **PQ** ↑ | **PC** ↓ | **CE** ↑ | **CU** ↑ | **IB** ↑ | **DeSync** ↓ | **CLAP** ↑ | **MOS-Q** ↑ | **MOS-S** ↑ | **MOS-T** ↑ |
|
| 227 |
+
|:-------------:|:--------:|:--------:|:--------:|:--------:|:--------:|:-------------:|:-----------:|:------------:|:------------:|:------------:|
|
| 228 |
+
| FoleyGrafter | 6.27 | 2.72 | 3.34 | 5.68 | 0.17 | 1.29 | 0.14 | 3.36±0.78 | 3.54±0.88 | 3.46±0.95 |
|
| 229 |
+
| V-AURA | 5.82 | 4.30 | 3.63 | 5.11 | 0.23 | 1.38 | 0.14 | 2.55±0.97 | 2.60±1.20 | 2.70±1.37 |
|
| 230 |
+
| Frieren | 5.71 | 2.81 | 3.47 | 5.31 | 0.18 | 1.39 | 0.16 | 2.92±0.95 | 2.76±1.20 | 2.94±1.26 |
|
| 231 |
+
| MMAudio | 6.17 | 2.84 | 3.59 | 5.62 | 0.27 | 0.80 | 0.35 | 3.58±0.84 | 3.63±1.00 | 3.47±1.03 |
|
| 232 |
+
| ThinkSound | 6.04 | 3.73 | 3.81 | 5.59 | 0.18 | 0.91 | 0.20 | 3.20±0.97 | 3.01±1.04 | 3.02±1.08 |
|
| 233 |
+
| **HunyuanVideo-Foley (ours)** | **6.59** | **2.74** | **3.88** | **6.13** | **0.35** | **0.74** | **0.33** | **4.14±0.68** | **4.12±0.77** | **4.15±0.75** |
|
| 234 |
+
|
| 235 |
+
</div>
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
### 🎯 **Kling-Audio-Eval Results**
|
| 239 |
+
|
| 240 |
+
<div align="center">
|
| 241 |
+
|
| 242 |
+
> *Comprehensive objective evaluation showcasing state-of-the-art performance*
|
| 243 |
+
|
| 244 |
+
</div>
|
| 245 |
+
|
| 246 |
+
<div style="overflow-x: auto; margin: 20px 0;">
|
| 247 |
+
|
| 248 |
+
| 🏆 **Method** | **FD_PANNs** ↓ | **FD_PASST** ↓ | **KL** ↓ | **IS** ↑ | **PQ** ↑ | **PC** ↓ | **CE** ↑ | **CU** ↑ | **IB** ↑ | **DeSync** ↓ | **CLAP** ↑ |
|
| 249 |
+
|:-------------:|:--------------:|:--------------:|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|:-------------:|:-----------:|
|
| 250 |
+
| FoleyGrafter | 22.30 | 322.63 | 2.47 | 7.08 | 6.05 | 2.91 | 3.28 | 5.44 | 0.22 | 1.23 | 0.22 |
|
| 251 |
+
| V-AURA | 33.15 | 474.56 | 3.24 | 5.80 | 5.69 | 3.98 | 3.13 | 4.83 | 0.25 | 0.86 | 0.13 |
|
| 252 |
+
| Frieren | 16.86 | 293.57 | 2.95 | 7.32 | 5.72 | 2.55 | 2.88 | 5.10 | 0.21 | 0.86 | 0.16 |
|
| 253 |
+
| MMAudio | 9.01 | 205.85 | 2.17 | 9.59 | 5.94 | 2.91 | 3.30 | 5.39 | 0.30 | 0.56 | 0.27 |
|
| 254 |
+
| ThinkSound | 9.92 | 228.68 | 2.39 | 6.86 | 5.78 | 3.23 | 3.12 | 5.11 | 0.22 | 0.67 | 0.22 |
|
| 255 |
+
| **HunyuanVideo-Foley (ours)** | **6.07** | **202.12** | **1.89** | **8.30** | **6.12** | **2.76** | **3.22** | **5.53** | **0.38** | **0.54** | **0.24** |
|
| 256 |
+
|
| 257 |
+
</div>
|
| 258 |
+
|
| 259 |
+
<div align="center" style="background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); color: white; padding: 15px; border-radius: 10px; margin: 20px 0;">
|
| 260 |
+
|
| 261 |
+
**🎉 Outstanding Results!** HunyuanVideo-Foley achieves the best scores across **ALL** evaluation metrics, demonstrating significant improvements in audio quality, synchronization, and semantic alignment.
|
| 262 |
+
|
| 263 |
+
</div>
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
---
|
| 268 |
+
|
| 269 |
+
## 🚀 **Quick Start**
|
| 270 |
+
|
| 271 |
+
### 📦 **Installation**
|
| 272 |
+
|
| 273 |
+
<div style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px; border-radius: 15px; margin: 20px 0;">
|
| 274 |
+
|
| 275 |
+
**🔧 System Requirements**
|
| 276 |
+
- **CUDA**: 12.4 or 11.8 recommended
|
| 277 |
+
- **Python**: 3.8+
|
| 278 |
+
- **OS**: Linux (primary support)
|
| 279 |
+
|
| 280 |
+
</div>
|
| 281 |
+
|
| 282 |
+
#### **Step 1: Clone Repository**
|
| 283 |
+
|
| 284 |
+
```bash
|
| 285 |
+
# 📥 Clone the repository
|
| 286 |
+
git clone https://github.com/Tencent-Hunyuan/HunyuanVideo-Foley
|
| 287 |
+
cd HunyuanVideo-Foley
|
| 288 |
+
```
|
| 289 |
+
|
| 290 |
+
#### **Step 2: Environment Setup**
|
| 291 |
+
|
| 292 |
+
<div style="background: #fff3cd; padding: 15px; border-radius: 8px; border-left: 4px solid #ffc107; margin: 10px 0; color: #333;">
|
| 293 |
+
|
| 294 |
+
💡 **Tip**: We recommend using [Conda](https://docs.anaconda.com/free/miniconda/index.html) for Python environment management.
|
| 295 |
+
|
| 296 |
+
</div>
|
| 297 |
+
|
| 298 |
+
```bash
|
| 299 |
+
# 🔧 Install dependencies
|
| 300 |
+
pip install -r requirements.txt
|
| 301 |
+
```
|
| 302 |
+
|
| 303 |
+
#### **Step 3: Download Pretrained Models**
|
| 304 |
+
|
| 305 |
+
<div style="background: #d1ecf1; padding: 15px; border-radius: 8px; border-left: 4px solid #17a2b8; margin: 10px 0; color: #333;">
|
| 306 |
+
|
| 307 |
+
🔗 **Download Model weights from Huggingface**
|
| 308 |
+
```bash
|
| 309 |
+
# using git-lfs
|
| 310 |
+
git clone https://huggingface.co/tencent/HunyuanVideo-Foley
|
| 311 |
+
|
| 312 |
+
# using huggingface-cli
|
| 313 |
+
huggingface-cli download tencent/HunyuanVideo-Foley
|
| 314 |
+
```
|
| 315 |
+
|
| 316 |
+
</div>
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
---
|
| 320 |
+
|
| 321 |
+
## 💻 **Usage**
|
| 322 |
+
|
| 323 |
+
### 🎬 **Single Video Generation**
|
| 324 |
+
|
| 325 |
+
<div style="background: #e8f5e8; padding: 15px; border-radius: 8px; border-left: 4px solid #28a745; margin: 10px 0; color: #333;">
|
| 326 |
+
|
| 327 |
+
Generate Foley audio for a single video file with text description:
|
| 328 |
+
|
| 329 |
+
</div>
|
| 330 |
+
|
| 331 |
+
```bash
|
| 332 |
+
python3 infer.py \
|
| 333 |
+
--model_path PRETRAINED_MODEL_PATH_DIR \
|
| 334 |
+
--config_path ./configs/hunyuanvideo-foley-xxl.yaml \
|
| 335 |
+
--single_video video_path \
|
| 336 |
+
--single_prompt "audio description" \
|
| 337 |
+
--output_dir OUTPUT_DIR
|
| 338 |
+
```
|
| 339 |
+
|
| 340 |
+
### 📂 **Batch Processing**
|
| 341 |
+
|
| 342 |
+
<div style="background: #fff3e0; padding: 15px; border-radius: 8px; border-left: 4px solid #ff9800; margin: 10px 0; color: #333;">
|
| 343 |
+
|
| 344 |
+
Process multiple videos using a CSV file with video paths and descriptions:
|
| 345 |
+
|
| 346 |
+
</div>
|
| 347 |
+
|
| 348 |
+
```bash
|
| 349 |
+
python3 infer.py \
|
| 350 |
+
--model_path PRETRAINED_MODEL_PATH_DIR \
|
| 351 |
+
--config_path ./configs/hunyuanvideo-foley-xxl.yaml \
|
| 352 |
+
--csv_path assets/test.csv \
|
| 353 |
+
--output_dir OUTPUT_DIR
|
| 354 |
+
```
|
| 355 |
+
|
| 356 |
+
### 🌐 **Interactive Web Interface**
|
| 357 |
+
|
| 358 |
+
<div style="background: #f3e5f5; padding: 15px; border-radius: 8px; border-left: 4px solid #9c27b0; margin: 10px 0; color: #333;">
|
| 359 |
+
|
| 360 |
+
Launch a user-friendly Gradio web interface for easy interaction:
|
| 361 |
+
|
| 362 |
+
</div>
|
| 363 |
+
|
| 364 |
+
```bash
|
| 365 |
+
export HIFI_FOLEY_MODEL_PATH=PRETRAINED_MODEL_PATH_DIR
|
| 366 |
+
python3 gradio_app.py
|
| 367 |
+
```
|
| 368 |
+
|
| 369 |
+
<div align="center" style="margin: 20px 0; color: #333;">
|
| 370 |
+
|
| 371 |
+
*🚀 Then open your browser and navigate to the provided local URL to start generating Foley audio!*
|
| 372 |
+
|
| 373 |
+
</div>
|
| 374 |
+
|
| 375 |
+
---
|
| 376 |
+
|
| 377 |
+
## 📚 **Citation**
|
| 378 |
+
|
| 379 |
+
<div style="background: #f8f9fa; padding: 20px; border-radius: 10px; border-left: 4px solid #6c757d; margin: 20px 0; color: #333;">
|
| 380 |
+
|
| 381 |
+
If you find **HunyuanVideo-Foley** useful for your research, please consider citing our paper:
|
| 382 |
+
|
| 383 |
+
</div>
|
| 384 |
+
|
| 385 |
+
```bibtex
|
| 386 |
+
@misc{shan2025hunyuanvideofoleymultimodaldiffusionrepresentation,
|
| 387 |
+
title={HunyuanVideo-Foley: Multimodal Diffusion with Representation Alignment for High-Fidelity Foley Audio Generation},
|
| 388 |
+
author={Sizhe Shan and Qiulin Li and Yutao Cui and Miles Yang and Yuehai Wang and Qun Yang and Jin Zhou and Zhao Zhong},
|
| 389 |
+
year={2025},
|
| 390 |
+
eprint={2508.16930},
|
| 391 |
+
archivePrefix={arXiv},
|
| 392 |
+
primaryClass={eess.AS},
|
| 393 |
+
url={https://arxiv.org/abs/2508.16930},
|
| 394 |
+
}
|
| 395 |
+
```
|
| 396 |
+
|
| 397 |
+
---
|
| 398 |
+
|
| 399 |
+
## 🙏 **Acknowledgements**
|
| 400 |
+
|
| 401 |
+
<div align="center">
|
| 402 |
+
|
| 403 |
+
**We extend our heartfelt gratitude to the open-source community!**
|
| 404 |
+
|
| 405 |
+
</div>
|
| 406 |
+
|
| 407 |
+
<table align="center" style="width: 100%; border: none; margin: 20px 0;">
|
| 408 |
+
<tr>
|
| 409 |
+
<td align="center" style="width: 33%; padding: 10px; vertical-align: top;">
|
| 410 |
+
|
| 411 |
+
🎨 **[Stable Diffusion 3](https://huggingface.co/stabilityai/stable-diffusion-3-medium)**
|
| 412 |
+
*Foundation diffusion models*
|
| 413 |
+
|
| 414 |
+
</td>
|
| 415 |
+
<td align="center" style="width: 33%; padding: 10px; vertical-align: top;">
|
| 416 |
+
|
| 417 |
+
⚡ **[FLUX](https://github.com/black-forest-labs/flux)**
|
| 418 |
+
*Advanced generation techniques*
|
| 419 |
+
|
| 420 |
+
</td>
|
| 421 |
+
<td align="center" style="width: 33%; padding: 10px; vertical-align: top;">
|
| 422 |
+
|
| 423 |
+
🎵 **[MMAudio](https://github.com/hkchengrex/MMAudio)**
|
| 424 |
+
*Multimodal audio generation*
|
| 425 |
+
|
| 426 |
+
</td>
|
| 427 |
+
</tr>
|
| 428 |
+
<tr>
|
| 429 |
+
<td align="center" style="width: 33%; padding: 10px; vertical-align: top;">
|
| 430 |
+
|
| 431 |
+
🤗 **[HuggingFace](https://huggingface.co)**
|
| 432 |
+
*Platform & diffusers library*
|
| 433 |
+
|
| 434 |
+
</td>
|
| 435 |
+
<td align="center" style="width: 33%; padding: 10px; vertical-align: top;">
|
| 436 |
+
|
| 437 |
+
🗜️ **[DAC](https://github.com/descriptinc/descript-audio-codec)**
|
| 438 |
+
*High-Fidelity Audio Compression*
|
| 439 |
+
|
| 440 |
+
</td>
|
| 441 |
+
<td align="center" style="width: 33%; padding: 10px; vertical-align: top;">
|
| 442 |
+
|
| 443 |
+
🔗 **[Synchformer](https://github.com/v-iashin/Synchformer)**
|
| 444 |
+
*Audio-Visual Synchronization*
|
| 445 |
+
|
| 446 |
+
</td>
|
| 447 |
+
</tr>
|
| 448 |
+
</table>
|
| 449 |
+
|
| 450 |
+
<div align="center" style="background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%); color: white; padding: 20px; border-radius: 15px; margin: 20px 0;">
|
| 451 |
+
|
| 452 |
+
**🌟 Special thanks to all researchers and developers who contribute to the advancement of AI-generated audio and multimodal learning!**
|
| 453 |
+
|
| 454 |
+
</div>
|
| 455 |
+
|
| 456 |
+
|
| 457 |
+
---
|
| 458 |
+
|
| 459 |
+
<div align="center" style="margin: 30px 0;">
|
| 460 |
+
|
| 461 |
+
### 🔗 **Connect with Us**
|
| 462 |
+
|
| 463 |
+
[](https://github.com/Tencent-Hunyuan)
|
| 464 |
+
[](https://twitter.com/TencentHunyuan)
|
| 465 |
+
[](https://hunyuan.tencent.com/)
|
| 466 |
+
|
| 467 |
+
<p style="color: #666; margin-top: 15px; font-size: 14px;">
|
| 468 |
+
|
| 469 |
+
© 2025 Tencent Hunyuan. All rights reserved. | Made with ❤️ for the AI community
|
| 470 |
+
|
| 471 |
+
</p>
|
| 472 |
+
|
| 473 |
+
</div>
|
assets/data_pipeline.png
ADDED
|
Git LFS Details
|
assets/logo.png
ADDED
|
Git LFS Details
|
assets/model_arch.png
ADDED
|
Git LFS Details
|
assets/pan_chart.png
ADDED
|
Git LFS Details
|
config.yaml
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model_config:
|
| 2 |
+
model_name: HunyuanVideo-Foley-XXL
|
| 3 |
+
model_type: 1d
|
| 4 |
+
model_precision: bf16
|
| 5 |
+
model_kwargs:
|
| 6 |
+
depth_triple_blocks: 18
|
| 7 |
+
depth_single_blocks: 36
|
| 8 |
+
hidden_size: 1536
|
| 9 |
+
num_heads: 12
|
| 10 |
+
mlp_ratio: 4
|
| 11 |
+
mlp_act_type: "gelu_tanh"
|
| 12 |
+
qkv_bias: True
|
| 13 |
+
qk_norm: True
|
| 14 |
+
qk_norm_type: "rms"
|
| 15 |
+
attn_mode: "torch"
|
| 16 |
+
embedder_type: "default"
|
| 17 |
+
interleaved_audio_visual_rope: True
|
| 18 |
+
enable_learnable_empty_visual_feat: True
|
| 19 |
+
sync_modulation: False
|
| 20 |
+
add_sync_feat_to_audio: True
|
| 21 |
+
cross_attention: True
|
| 22 |
+
use_attention_mask: False
|
| 23 |
+
condition_projection: "linear"
|
| 24 |
+
sync_feat_dim: 768 # syncformer 768 dim
|
| 25 |
+
condition_dim: 768 # clap 768 text condition dim (clip-text)
|
| 26 |
+
clip_dim: 768 # siglip2 visual dim
|
| 27 |
+
audio_vae_latent_dim: 128
|
| 28 |
+
audio_frame_rate: 50
|
| 29 |
+
patch_size: 1
|
| 30 |
+
rope_dim_list: null
|
| 31 |
+
rope_theta: 10000
|
| 32 |
+
text_length: 77
|
| 33 |
+
clip_length: 64
|
| 34 |
+
sync_length: 192
|
| 35 |
+
use_mmaudio_singleblock: True
|
| 36 |
+
depth_triple_ssl_encoder: null
|
| 37 |
+
depth_single_ssl_encoder: 8
|
| 38 |
+
use_repa_with_audiossl: True
|
| 39 |
+
|
| 40 |
+
diffusion_config:
|
| 41 |
+
denoise_type: "flow"
|
| 42 |
+
flow_path_type: "linear"
|
| 43 |
+
flow_predict_type: "velocity"
|
| 44 |
+
flow_reverse: True
|
| 45 |
+
flow_solver: "euler"
|
| 46 |
+
sample_flow_shift: 1.0
|
| 47 |
+
sample_use_flux_shift: False
|
| 48 |
+
flux_base_shift: 0.5
|
| 49 |
+
flux_max_shift: 1.15
|
config_xl.yaml
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model_config:
|
| 2 |
+
model_name: HunyuanVideo-Foley-XL
|
| 3 |
+
model_type: 1d
|
| 4 |
+
model_precision: bf16
|
| 5 |
+
model_kwargs:
|
| 6 |
+
depth_triple_blocks: 12
|
| 7 |
+
depth_single_blocks: 24
|
| 8 |
+
hidden_size: 1408
|
| 9 |
+
num_heads: 11
|
| 10 |
+
mlp_ratio: 4
|
| 11 |
+
mlp_act_type: "gelu_tanh"
|
| 12 |
+
qkv_bias: True
|
| 13 |
+
qk_norm: True
|
| 14 |
+
qk_norm_type: "rms"
|
| 15 |
+
attn_mode: "torch"
|
| 16 |
+
embedder_type: "default"
|
| 17 |
+
interleaved_audio_visual_rope: True
|
| 18 |
+
enable_learnable_empty_visual_feat: True
|
| 19 |
+
sync_modulation: False
|
| 20 |
+
add_sync_feat_to_audio: True
|
| 21 |
+
cross_attention: True
|
| 22 |
+
use_attention_mask: False
|
| 23 |
+
condition_projection: "linear"
|
| 24 |
+
sync_feat_dim: 768 # syncformer 768 dim
|
| 25 |
+
condition_dim: 768 # clap 768 text condition dim (clip-text)
|
| 26 |
+
clip_dim: 768 # siglip2 visual dim
|
| 27 |
+
audio_vae_latent_dim: 128
|
| 28 |
+
audio_frame_rate: 50
|
| 29 |
+
patch_size: 1
|
| 30 |
+
rope_dim_list: null
|
| 31 |
+
rope_theta: 10000
|
| 32 |
+
text_length: 77
|
| 33 |
+
clip_length: 64
|
| 34 |
+
sync_length: 192
|
| 35 |
+
depth_triple_ssl_encoder: null
|
| 36 |
+
depth_single_ssl_encoder: 8
|
| 37 |
+
use_repa_with_audiossl: True
|
| 38 |
+
|
| 39 |
+
diffusion_config:
|
| 40 |
+
denoise_type: "flow"
|
| 41 |
+
flow_path_type: "linear"
|
| 42 |
+
flow_predict_type: "velocity"
|
| 43 |
+
flow_reverse: True
|
| 44 |
+
flow_solver: "euler"
|
| 45 |
+
sample_flow_shift: 1.0
|
| 46 |
+
sample_use_flux_shift: False
|
| 47 |
+
flux_base_shift: 0.5
|
| 48 |
+
flux_max_shift: 1.15
|
hunyuanvideo_foley.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2900021f8ee562a8175b2f1a3fafb06b9e9e848f11f4c6d4d5d72e126f7c0475
|
| 3 |
+
size 10301204679
|
hunyuanvideo_foley_xl.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf7e93dca93063942bc22b53d4fe888e9d9d5a1ad7977873b7b2c6b126cf00ca
|
| 3 |
+
size 5854140970
|
synchformer_state_dict.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8aff082f2df5c3bc52759db0c865c7ee772ae6400b860d1b7e90413f2defb67c
|
| 3 |
+
size 950058171
|
vae_128d_48k.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07e6139ff33bd21ba8a7a7f40ed24aab13ac0d100cd686f8a9f3e03dc5251cb1
|
| 3 |
+
size 1486465965
|