Text-to-Video
Wan2.2
English
Chinese
custom
ti2v
text-to-audio-video
audio-video-generation
mmdit
flow-matching
Instructions to use rootlocalghost/NAVA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Wan2.2
How to use rootlocalghost/NAVA with Wan2.2:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Stealth clone from baidu/NAVA
Browse files- .gitattributes +18 -35
- LICENSE +199 -0
- NAVA.safetensors +3 -0
- NAVA_fp8.safetensors +3 -0
- README.md +317 -0
- README_zh.md +300 -0
- Wan2.2-TI2V-5B/Wan2.2_VAE.pth +3 -0
- Wan2.2-TI2V-5B/google/umt5-xxl/spiece.model +3 -0
- Wan2.2-TI2V-5B/google/umt5-xxl/tokenizer.json +3 -0
- Wan2.2-TI2V-5B/models_t5_umt5-xxl-enc-bf16.pth +3 -0
- assets/arch.png +3 -0
- assets/logo.png +3 -0
- config.json +21 -0
- example_prompts.jsonl +5 -0
- nava.yaml +131 -0
- params/LTX2/LICENSE +381 -0
- params/LTX2/ltx-2.3-22b-dev_audio_vae.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -1,35 +1,18 @@
|
|
| 1 |
-
*.
|
| 2 |
-
*.
|
| 3 |
-
*.
|
| 4 |
-
*.
|
| 5 |
-
*.
|
| 6 |
-
*.
|
| 7 |
-
*.
|
| 8 |
-
*.
|
| 9 |
-
*.
|
| 10 |
-
*.
|
| 11 |
-
*.
|
| 12 |
-
*.
|
| 13 |
-
*.
|
| 14 |
-
*.
|
| 15 |
-
*.
|
| 16 |
-
*.
|
| 17 |
-
*.
|
| 18 |
-
|
| 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
|
|
|
|
| 1 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.mov filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for describing the origin of the Work and
|
| 141 |
+
reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Support. While redistributing the Work or
|
| 166 |
+
Derivative Works thereof, You may choose to offer, and charge a
|
| 167 |
+
fee for, acceptance of support, warranty, indemnity, or other
|
| 168 |
+
liability obligations and/or rights consistent with this License.
|
| 169 |
+
However, in accepting such obligations, You may act only on Your
|
| 170 |
+
own behalf and on Your sole responsibility, not on behalf of any
|
| 171 |
+
other Contributor, and only if You agree to indemnify, defend, and
|
| 172 |
+
hold each Contributor harmless for any liability incurred by, or
|
| 173 |
+
claims asserted against, such Contributor by reason of your accepting
|
| 174 |
+
any such warranty or support.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recognize an "as is"
|
| 185 |
+
basis for an "as if" basis if applicable.
|
| 186 |
+
|
| 187 |
+
Copyright 2026 Baidu Inc.
|
| 188 |
+
|
| 189 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 190 |
+
you may not use this file except in compliance with the License.
|
| 191 |
+
You may obtain a copy of the License at
|
| 192 |
+
|
| 193 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 194 |
+
|
| 195 |
+
Unless required by applicable law or agreed to in writing, software
|
| 196 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 197 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 198 |
+
implied. See the License for the specific language governing permissions
|
| 199 |
+
and limitations under the License.
|
NAVA.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35afc60aa9b26c239cfab53868d525a95dee685133c4e8f8d5cda9b068b359e5
|
| 3 |
+
size 25188108008
|
NAVA_fp8.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c8841f4c16311969d90fe908b5f2a75236b1ef0b8c153e1b04d0cfe4a1a3231
|
| 3 |
+
size 6934862256
|
README.md
ADDED
|
@@ -0,0 +1,317 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- zh
|
| 6 |
+
tags:
|
| 7 |
+
- text-to-video
|
| 8 |
+
- text-to-audio-video
|
| 9 |
+
- audio-video-generation
|
| 10 |
+
- mmdit
|
| 11 |
+
- flow-matching
|
| 12 |
+
- wan2.2
|
| 13 |
+
pipeline_tag: text-to-video
|
| 14 |
+
library_name: custom
|
| 15 |
+
base_model: Wan-AI/Wan2.2-TI2V-5B
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
<p align="center">
|
| 19 |
+
<img src="assets/logo.png" alt="NAVA" width="160">
|
| 20 |
+
</p>
|
| 21 |
+
|
| 22 |
+
<h1 align="center">NAVA — Native Audio-Visual Alignment for Generation</h1>
|
| 23 |
+
|
| 24 |
+
<p align="center">
|
| 25 |
+
<em>State-of-the-art audio-visual synchronization with only <b>6.3 B</b> parameters.</em>
|
| 26 |
+
</p>
|
| 27 |
+
|
| 28 |
+
<p align="center">
|
| 29 |
+
<a href="https://arxiv.org/abs/2605.30073"><img alt="arXiv" src="https://img.shields.io/badge/Paper-arXiv-b31b1b.svg"></a>
|
| 30 |
+
<a href="https://github.com/ernie-research/NAVA"><img alt="Code" src="https://img.shields.io/badge/Code-GitHub-181717.svg"></a>
|
| 31 |
+
<a href="https://ernie-research.github.io/NAVA/"><img alt="Project Page" src="https://img.shields.io/badge/Project_Page-online-2c8ebb.svg"></a>
|
| 32 |
+
<img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-green.svg">
|
| 33 |
+
<img alt="Params" src="https://img.shields.io/badge/params-6.3B-orange.svg">
|
| 34 |
+
<img alt="Base model" src="https://img.shields.io/badge/base-Wan2.2--TI2V--5B-7c5cff.svg">
|
| 35 |
+
</p>
|
| 36 |
+
|
| 37 |
+
<p align="center">
|
| 38 |
+
<b>ERNIE Team</b> · Baidu Inc. · arXiv 2026
|
| 39 |
+
</p>
|
| 40 |
+
|
| 41 |
+
<p align="center">
|
| 42 |
+
⭐ <b>If you find this model useful, please consider giving our <a href="https://github.com/ernie-research/NAVA">GitHub repo</a> a star!</b> ⭐
|
| 43 |
+
</p>
|
| 44 |
+
|
| 45 |
+
<p align="center">
|
| 46 |
+
📖 <a href="https://huggingface.co/baidu/NAVA/blob/main/README_zh.md"><b>中文版 README</b></a>
|
| 47 |
+
</p>
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
## TL;DR
|
| 52 |
+
|
| 53 |
+
NAVA is a **6.3 B-parameter joint audio-video generator** that synthesizes synchronized video **and** audio from a single prompt — including multi-speaker speech with reference-timbre control and image-conditioned continuations.
|
| 54 |
+
|
| 55 |
+
Instead of post-hoc-aligned dual towers or fully unified tri-modal stacks, NAVA uses an **Align-then-Fuse MMDiT**: a dedicated alignment space first establishes audio-video correspondence, then context (text, speaker embeddings) is fused via cross-attention. On Verse-Bench it sets new SOTA on Sync-C / Sync-D / video quality / audio WER while using **2× to 5× fewer parameters** than open-source baselines.
|
| 56 |
+
|
| 57 |
+
> **Highlights**
|
| 58 |
+
> - **720p 1-min Fast Generation** — 720p synchronized audio-video in ~1 minute via 8-GPU Ulysses sequence parallel.
|
| 59 |
+
> - **Dual-Channel Audio** — stereo audio (scene + speech) jointly denoised with video, no post-hoc vocoder alignment.
|
| 60 |
+
> - **Precise Multi-Timbre Control** — reference WAVs bound to `<S>...<E>` speech spans for per-speaker voice identity.
|
| 61 |
+
> - **Language-Described Camera Control** — shot composition, motion, and pacing directly from the prompt.
|
| 62 |
+
> - **Multi-Resolution** — landscape / portrait / square aspect ratios from the same checkpoint.
|
| 63 |
+
|
| 64 |
+
---
|
| 65 |
+
|
| 66 |
+
## Model Details
|
| 67 |
+
|
| 68 |
+
### Quick Facts
|
| 69 |
+
|
| 70 |
+
| | |
|
| 71 |
+
|---|---|
|
| 72 |
+
| **Architecture** | Align-then-Fuse MMDiT (Wan2.2 backbone) |
|
| 73 |
+
| **Parameters** | **6.3 B** (backbone, joint AV) |
|
| 74 |
+
| **Modality** | Joint audio + video, text-conditioned |
|
| 75 |
+
| **Resolution** | 1280×704 (recommended) · 960×960 also supported |
|
| 76 |
+
| **Frames / FPS** | 37 frames @ 24 fps ≈ 6 s · 55–61 frames ≈ 9–10 s |
|
| 77 |
+
| **Audio** | 25 latent tokens / sec, ≤ 10 s |
|
| 78 |
+
| **Sampling** | Flow matching · UniPC scheduler · 50 default steps |
|
| 79 |
+
| **Precision** | bf16 |
|
| 80 |
+
| **Parallelism** | Single-GPU **or** Ulysses sequence parallel (up to 8 GPUs) |
|
| 81 |
+
| **Base model** | [Wan-AI/Wan2.2-TI2V-5B](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B) |
|
| 82 |
+
|
| 83 |
+
### Architecture
|
| 84 |
+
|
| 85 |
+
<p align="center">
|
| 86 |
+
<img src="assets/arch.png" alt="NAVA Architecture" width="900">
|
| 87 |
+
</p>
|
| 88 |
+
|
| 89 |
+
NAVA instantiates *Native Audio-Visual Alignment* as an **Align-then-Fuse MMDiT** stack:
|
| 90 |
+
|
| 91 |
+
- **Hierarchical Alignment Layers — 10 double-stream blocks.** Video and audio keep separate QKV projections and FFNs but share a joint self-attention over concatenated `[video_tokens; audio_tokens]`, plus dedicated cross-attention to text. This builds an alignment space where AV correspondence is learned without semantic context interference.
|
| 92 |
+
- **Unified Fusion Layers — 20 single-stream blocks.** Video and audio share QKV/FFN; a unified joint attention treats all tokens as one stream, with a single text cross-attention path. This is where context-conditioned denoising happens.
|
| 93 |
+
- **Backbone hyperparameters.** `dim=3072`, `ffn_dim=14336`, 24 attention heads, 30 layers (10 double + 20 single), `text_len=512`, patch size `(1, 2, 2)`. RMSNorm on QK; cross-attention norm; ε = 1e-6.
|
| 94 |
+
- **Positional encoding.** 3D RoPE for video (temporal + height + width), 1D RoPE for audio, applied jointly inside the joint-attention path.
|
| 95 |
+
- **Timbre-in-Context Conditioning.** Reference-WAV speaker embeddings (ReDimNet, 192-d) are injected through the context pathway and bound to `<S>...<E>` speech spans, enabling per-speaker timbre control in multi-speaker scenes.
|
| 96 |
+
- **3D cross-modal CFG.** Independent classifier-free guidance scales for video, audio, and the cross-modal alignment direction (`video_align_guidance_scale`, `audio_align_guidance_scale`) keep AV synchronization tight at inference.
|
| 97 |
+
|
| 98 |
+
### What's Different from Existing Open-Source AV Models
|
| 99 |
+
|
| 100 |
+
| Design axis | Typical baselines | **NAVA** |
|
| 101 |
+
|---|---|---|
|
| 102 |
+
| Stream layout | Dual-tower (post-hoc align) **or** fully unified tri-modal | **Align-then-Fuse** — alignment space first, context fused after |
|
| 103 |
+
| Speech control | Caption-only, no per-speaker timbre | **Timbre-in-Context** via reference WAVs |
|
| 104 |
+
| Param budget | 10 B – 32 B | **6.3 B** |
|
| 105 |
+
|
| 106 |
+
### Components Shipped Alongside the Backbone
|
| 107 |
+
|
| 108 |
+
| Component | Description | Size |
|
| 109 |
+
|---|---|---|
|
| 110 |
+
| **WanAVModel** (backbone) | MMDiT, joint AV attention | 6.3 B |
|
| 111 |
+
| **Wan2.2 Video VAE** | Causal 3D ConvNet · 16×16×4 spatial-temporal compression · 48 latent channels | 2.7 GB |
|
| 112 |
+
| **LTX Audio VAE + Vocoder** | 128 latent channels · 25 tokens/sec · built-in waveform decoder | 348 MB |
|
| 113 |
+
| **umt5-xxl Text Encoder** | T5 · 4096-d embeddings | 11 GB |
|
| 114 |
+
| **ReDimNet** | Speaker embedding · 192-d | ~50 MB |
|
| 115 |
+
|
| 116 |
+
---
|
| 117 |
+
|
| 118 |
+
## Evaluation
|
| 119 |
+
|
| 120 |
+
### Table 1 — VerseBench (general AV capability)
|
| 121 |
+
|
| 122 |
+
NAVA achieves the **best** AV synchronization (Sync-C / Sync-D), video quality, and audio WER, with the smallest parameter budget.
|
| 123 |
+
|
| 124 |
+
| Model | Params | Resolution | Sync-C ↑ | Sync-D ↓ | IB ↑ | Video Quality ↑ | WER ↓ | PQ ↑ | FD ↓ |
|
| 125 |
+
|---|---|---|---|---|---|---|---|---|---|
|
| 126 |
+
| Ovi 1.1 | 10 B | 720p | <u>7.4839</u> | 7.9791 | 0.199 | <u>0.636</u> | 0.102 | 5.8432 | 0.9418 |
|
| 127 |
+
| MOVA | A18B (32 B) | 720p | 7.2888 | 7.808 | 0.269 | 0.603 | 0.126 | **7.2331** | 0.9222 |
|
| 128 |
+
| Davinci | 15 B | 540p | 7.1487 | 7.8158 | 0.269 | 0.600 | 0.151 | 5.9559 | 0.9307 |
|
| 129 |
+
| LTX 2.3 | 19 B | 512p | 7.2476 | <u>7.6902</u> | **0.337** | 0.576 | 0.106 | <u>6.9459</u> | **0.8287** |
|
| 130 |
+
| **NAVA (ours)** | **6.3 B** | 720p | **7.7914** | **7.5655** | <u>0.313</u> | **0.659** | **0.099** | 6.8609 | <u>0.8328</u> |
|
| 131 |
+
|
| 132 |
+
<sub>↑ higher is better · ↓ lower is better · **bold** = best · <u>underline</u> = 2nd best.</sub>
|
| 133 |
+
|
| 134 |
+
### Table 2 — Seed-TTS-eval (speech quality)
|
| 135 |
+
|
| 136 |
+
Among joint AV models, NAVA delivers speech quality close to dedicated audio-only systems. Audio-only rows are listed *for reference*; they are not directly comparable.
|
| 137 |
+
|
| 138 |
+
| Category | Model | WER ↓ | Speaker Similarity ↑ |
|
| 139 |
+
|---|---|---|---|
|
| 140 |
+
| Audio-Only *(reference)* | CosyVoice | 4.29 | 60.9 |
|
| 141 |
+
| Audio-Only *(reference)* | Qwen2.5-Omni | 2.72 | 63.2 |
|
| 142 |
+
| Audio-Video Joint | DreamID-Omni | 33.44 | 34.1 |
|
| 143 |
+
| Audio-Video Joint | **NAVA (ours)** | **5.81** | **62.4** |
|
| 144 |
+
|
| 145 |
+
---
|
| 146 |
+
|
| 147 |
+
## How to Use
|
| 148 |
+
|
| 149 |
+
> **TL;DR command.** After §1 setup is complete:
|
| 150 |
+
> ```bash
|
| 151 |
+
> bash scripts/inference.sh # General T2AV
|
| 152 |
+
> bash scripts/inference_timbre.sh # I2AV + timbre control
|
| 153 |
+
> ```
|
| 154 |
+
> Outputs land under `eval_results/`.
|
| 155 |
+
|
| 156 |
+
### 1 · Setup (once)
|
| 157 |
+
|
| 158 |
+
```bash
|
| 159 |
+
git clone https://github.com/ernie-research/NAVA && cd NAVA
|
| 160 |
+
|
| 161 |
+
# Python deps
|
| 162 |
+
pip install torch torchvision torchaudio
|
| 163 |
+
pip install diffusers transformers accelerate safetensors einops scipy PyYAML tqdm sentencepiece
|
| 164 |
+
pip install flash-attn --no-build-isolation
|
| 165 |
+
|
| 166 |
+
# All weights in one shot — main checkpoint + Wan2.2 VAE + T5 + LTX audio VAE
|
| 167 |
+
huggingface-cli download <NAVA-repo-id> --local-dir .
|
| 168 |
+
```
|
| 169 |
+
|
| 170 |
+
<details>
|
| 171 |
+
<summary><b>Expected on-disk layout</b></summary>
|
| 172 |
+
|
| 173 |
+
```
|
| 174 |
+
NAVA/
|
| 175 |
+
├── NAVA.ckpt # main checkpoint (24 GB)
|
| 176 |
+
├── Wan2.2-TI2V-5B/
|
| 177 |
+
│ ├── Wan2.2_VAE.pth # 2.7 GB
|
| 178 |
+
│ ├── models_t5_umt5-xxl-enc-bf16.pth # 11 GB
|
| 179 |
+
│ └── google/umt5-xxl/{spiece.model, tokenizer.json}
|
| 180 |
+
├── params/
|
| 181 |
+
│ └── LTX2/
|
| 182 |
+
│ ├── ltx-2.3-22b-dev_audio_vae.safetensors # 348 MB
|
| 183 |
+
│ └── LICENSE # LTX-2 Community License
|
| 184 |
+
└── configs/ # inference YAMLs
|
| 185 |
+
```
|
| 186 |
+
|
| 187 |
+
The LTX audio-VAE Python code is vendored under `nava_src/vendor/ltx_core/` (see its `NOTICE.md`), so no separate clone of the LTX-Video repo is needed. ReDimNet is fetched via `torch.hub` on first run.
|
| 188 |
+
</details>
|
| 189 |
+
|
| 190 |
+
### 2 · One-command inference (recommended, 8 GPU SP)
|
| 191 |
+
|
| 192 |
+
The repo ships two end-to-end scripts that build a JSONL inline and launch SP=8 inference:
|
| 193 |
+
|
| 194 |
+
```bash
|
| 195 |
+
# General T2AV (text-only)
|
| 196 |
+
bash scripts/inference.sh
|
| 197 |
+
|
| 198 |
+
# I2AV + Timbre Control (first-frame image + reference voice)
|
| 199 |
+
bash scripts/inference_timbre.sh
|
| 200 |
+
```
|
| 201 |
+
|
| 202 |
+
Override defaults via env vars:
|
| 203 |
+
|
| 204 |
+
```bash
|
| 205 |
+
CKPT=/path/to/NAVA.ckpt OUT_DIR=eval_results/run1 bash scripts/inference.sh
|
| 206 |
+
TIMBRE_SCALE=3.0 SPK_WAV=/path/to/spk.wav bash scripts/inference_timbre.sh
|
| 207 |
+
```
|
| 208 |
+
|
| 209 |
+
### 3 · Custom batches — write your own JSONL
|
| 210 |
+
|
| 211 |
+
Each line is one prompt:
|
| 212 |
+
|
| 213 |
+
```jsonl
|
| 214 |
+
{"prompt": "一位男子在海边奔跑,镜头跟随。背景是海浪声和风声。"}
|
| 215 |
+
{"prompt": "两人对话<S>Hello<E><S>Hi there<E>", "spk_wavs": ["spk1.wav", "spk2.wav"]}
|
| 216 |
+
{"prompt": "镜头跟随主体...", "image_path": "/abs/path/first_frame.png"}
|
| 217 |
+
```
|
| 218 |
+
|
| 219 |
+
| Field | Required | Description |
|
| 220 |
+
|---|---|---|
|
| 221 |
+
| `prompt` | yes | Text caption (also accepts legacy `text` field name) |
|
| 222 |
+
| `image_path` | no | Absolute path to first-frame image — auto-enables I2V for this sample |
|
| 223 |
+
| `spk_wavs` | no | List of absolute paths to speaker reference WAVs (max 2) |
|
| 224 |
+
|
| 225 |
+
Then launch:
|
| 226 |
+
|
| 227 |
+
```bash
|
| 228 |
+
SETUPTOOLS_USE_DISTUTILS=stdlib torchrun \
|
| 229 |
+
--nnodes=1 --nproc_per_node=8 \
|
| 230 |
+
--master_addr=127.0.0.1 --master_port=29507 \
|
| 231 |
+
inference_nava.py \
|
| 232 |
+
--config configs/baseline_t2av_demo_mmdit_no_split_ltx_control_unipc.yaml \
|
| 233 |
+
--ckpt NAVA.ckpt \
|
| 234 |
+
--out_dir ./outputs \
|
| 235 |
+
--data_format json --data_file my_prompts.jsonl \
|
| 236 |
+
--width 1280 --height 704 --frames 37 --fps 24 \
|
| 237 |
+
--steps 50 --save_sample --gen_turn 1 --use_sp
|
| 238 |
+
```
|
| 239 |
+
|
| 240 |
+
Outputs land at `outputs/{save_path}-{gen_turn}_av.mp4`. For timbre-controlled samples, also pass `--timbre_cfg --timbre_align_guidance_scale 3.0`.
|
| 241 |
+
|
| 242 |
+
#### Mode cheatsheet
|
| 243 |
+
|
| 244 |
+
| Goal | JSONL fields | Extra flags |
|
| 245 |
+
|---|---|---|
|
| 246 |
+
| Text → AV | `prompt` | — |
|
| 247 |
+
| Image → AV | `prompt` + `image_path` | (auto-detected) |
|
| 248 |
+
| Timbre-controlled speech | `prompt` + `spk_wavs` | `--timbre_cfg --timbre_align_guidance_scale 3.0` |
|
| 249 |
+
| 9-second video | any | `--frames 55` |
|
| 250 |
+
| Single-GPU (slower) | any | omit `--use_sp` |
|
| 251 |
+
|
| 252 |
+
### 4 · Prompt rewriting (recommended for short / English inputs)
|
| 253 |
+
|
| 254 |
+
NAVA is trained on Chinese dense captions; short or English prompts benefit substantially from rewriting before inference. Three pathways are provided, all sharing the same system prompt and sampling profile (so output style stays consistent), with `<S>...<E>` speech spans preserved verbatim.
|
| 255 |
+
|
| 256 |
+
| Pathway | Backend | Speed | Best for |
|
| 257 |
+
|---|---|---|---|
|
| 258 |
+
| **vLLM batch server** (`pe_src/`) | Qwen3-4B-Thinking-2507 served via vLLM, async HTTP | **< 2 s** / prompt | Offline batches |
|
| 259 |
+
| **Local transformers, single** (`gradio_demo/rewrite_single.py`) | Same model, in-process | 40–80 s / prompt | One-off CLI |
|
| 260 |
+
| **Gradio "Rewrite" button** | Same as above, hosted in Gradio | 40–80 s / prompt | Interactive UI |
|
| 261 |
+
|
| 262 |
+
```bash
|
| 263 |
+
# Batch path: start vLLM server, then rewrite a txt of prompts
|
| 264 |
+
bash pe_src/start_server.sh --gpu 0 --low-footprint
|
| 265 |
+
python pe_src/rewrite.py -i prompts.txt -o prompts_rewritten.txt
|
| 266 |
+
```
|
| 267 |
+
|
| 268 |
+
### 5 · Gradio Web UI
|
| 269 |
+
|
| 270 |
+
Interactive demo with click-to-rewrite (Qwen3-4B), image upload, and reference-WAV upload:
|
| 271 |
+
|
| 272 |
+
```bash
|
| 273 |
+
bash gradio_demo/start_gradio.sh \
|
| 274 |
+
--config configs/baseline_t2av_demo_mmdit_no_split_ltx_control_unipc.yaml \
|
| 275 |
+
--ckpt NAVA.ckpt \
|
| 276 |
+
--rewrite_model pe_src/Qwen3-4B-Thinking-2507 \
|
| 277 |
+
--port 8000 --nproc 8
|
| 278 |
+
```
|
| 279 |
+
|
| 280 |
+
<details>
|
| 281 |
+
<summary><b>Debug mode (no models, UI only)</b></summary>
|
| 282 |
+
|
| 283 |
+
```bash
|
| 284 |
+
python gradio_demo/gradio_server.py --debug --port 8000
|
| 285 |
+
```
|
| 286 |
+
</details>
|
| 287 |
+
|
| 288 |
+
---
|
| 289 |
+
|
| 290 |
+
## Bias, Safety, and Misuse
|
| 291 |
+
|
| 292 |
+
NAVA can synthesize video and speech conditioned on a reference image (`image_path`) and reference voice (`spk_wavs`). Using it to depict real persons without consent — including face-likeness or voice-likeness reproduction — is prohibited by the license and may also be illegal in your jurisdiction. We recommend:
|
| 293 |
+
|
| 294 |
+
1. Only use **consent-approved** reference media.
|
| 295 |
+
2. **Label generated content as synthetic.**
|
| 296 |
+
3. Apply **provenance / watermarking** before redistribution.
|
| 297 |
+
|
| 298 |
+
---
|
| 299 |
+
|
| 300 |
+
## Citation
|
| 301 |
+
|
| 302 |
+
```bibtex
|
| 303 |
+
@article{nava2026,
|
| 304 |
+
title = {NAVA: Native Audio-Visual Alignment for Joint Audio-Video Generation},
|
| 305 |
+
author = {ERNIE Team},
|
| 306 |
+
journal = {arXiv preprint},
|
| 307 |
+
year = {2026},
|
| 308 |
+
}
|
| 309 |
+
```
|
| 310 |
+
|
| 311 |
+
## Acknowledgements
|
| 312 |
+
|
| 313 |
+
NAVA builds on excellent upstream work: **Wan2.2-TI2V-5B** (video backbone & VAE), **LTX 2.3** (audio VAE + built-in vocoder), **umt5-xxl** (text encoder), and **ReDimNet** (speaker embedding). We also thank the open-source AV-generation community — Ovi, MOVA, Davinci, LTX — for releasing strong baselines that made fair benchmarking possible.
|
| 314 |
+
|
| 315 |
+
##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align="center">
|
| 8 |
+
<em>仅用 <b>6.3B</b> 参数即达到最先进的音视频同步效果。</em>
|
| 9 |
+
</p>
|
| 10 |
+
|
| 11 |
+
<p align="center">
|
| 12 |
+
<a href="https://arxiv.org/abs/2605.30073"><img alt="arXiv" src="https://img.shields.io/badge/Paper-arXiv-b31b1b.svg"></a>
|
| 13 |
+
<a href="https://github.com/ernie-research/NAVA"><img alt="Code" src="https://img.shields.io/badge/Code-GitHub-181717.svg"></a>
|
| 14 |
+
<a href="https://ernie-research.github.io/NAVA/"><img alt="Project Page" src="https://img.shields.io/badge/Project_Page-online-2c8ebb.svg"></a>
|
| 15 |
+
<img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-green.svg">
|
| 16 |
+
<img alt="Params" src="https://img.shields.io/badge/params-6.3B-orange.svg">
|
| 17 |
+
<img alt="Base model" src="https://img.shields.io/badge/base-Wan2.2--TI2V--5B-7c5cff.svg">
|
| 18 |
+
</p>
|
| 19 |
+
|
| 20 |
+
<p align="center">
|
| 21 |
+
<b>ERNIE 团队</b> · 百度公司 · arXiv 2026
|
| 22 |
+
</p>
|
| 23 |
+
|
| 24 |
+
<p align="center">
|
| 25 |
+
⭐ <b>如果本模型对你有帮助,欢迎给我们的 <a href="https://github.com/ernie-research/NAVA">GitHub 仓库</a> 点个 Star!</b> ⭐
|
| 26 |
+
</p>
|
| 27 |
+
|
| 28 |
+
<p align="center">
|
| 29 |
+
📖 <a href="https://huggingface.co/baidu/NAVA/blob/main/README.md"><b>English Version</b></a>
|
| 30 |
+
</p>
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
## TL;DR
|
| 35 |
+
|
| 36 |
+
NAVA 是一个 **6.3B 参数的联合音视频生成模型**,可以从一段提示词出发,端到端合成同步的视频**与**音频——包括带参考音色控制的多说话人语音,以及基于首帧图像的延续生成。
|
| 37 |
+
|
| 38 |
+
不同于事后对齐的双塔结构、或完全统一的三模态大栈,NAVA 采用 **Align-then-Fuse MMDiT**:先在专用对齐空间中建立音视频对应关系,再通过 cross-attention 融入上下文(文本、说话人嵌入)。在 Verse-Bench 上,NAVA 在 Sync-C / Sync-D / 视频质量 / 音频 WER 等指标上均刷新 SOTA,同时参数量比开源基线**少 2× 到 5×**。
|
| 39 |
+
|
| 40 |
+
> **亮点**
|
| 41 |
+
> - **720p 1 分钟快速生成** —— 8 卡 Ulysses 序列并行下,约 1 分钟生成 720p 同步音视频。
|
| 42 |
+
> - **双声道音频** —— 立体声音频(环境音 + 语音)与视频联合去噪,无需事后声码器对齐。
|
| 43 |
+
> - **精准多音色控制** —— 参考 WAV 绑定到 `<S>...<E>` 语音片段,实现按说话人控制音色身份。
|
| 44 |
+
> - **语言描述的镜头控制** —— 镜头构图、运动、节奏可直接由提示词驱动。
|
| 45 |
+
> - **多分辨率** —— 同一权重支持横屏 / 竖屏 / 方形比例。
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
## 模型详情
|
| 50 |
+
|
| 51 |
+
### 关键参数速览
|
| 52 |
+
|
| 53 |
+
| | |
|
| 54 |
+
|---|---|
|
| 55 |
+
| **架构** | Align-then-Fuse MMDiT(Wan2.2 主干) |
|
| 56 |
+
| **参数量** | **6.3B**(主干,联合 AV) |
|
| 57 |
+
| **模态** | 联合音频 + 视频,文本条件 |
|
| 58 |
+
| **分辨率** | 1280×704(推荐)· 同时支持 960×960 |
|
| 59 |
+
| **帧数 / 帧率** | 37 帧 @ 24 fps ≈ 6 秒 · 55–61 帧 ≈ 9–10 秒 |
|
| 60 |
+
| **音频** | 25 个 latent token / 秒,≤ 10 秒 |
|
| 61 |
+
| **采样** | Flow matching · UniPC scheduler · 默认 50 步 |
|
| 62 |
+
| **精度** | bf16 |
|
| 63 |
+
| **并行** | 单卡 **或** Ulysses 序列并行(最多 8 卡) |
|
| 64 |
+
| **基础模型** | [Wan-AI/Wan2.2-TI2V-5B](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B) |
|
| 65 |
+
|
| 66 |
+
### 架构
|
| 67 |
+
|
| 68 |
+
<p align="center">
|
| 69 |
+
<img src="assets/arch.png" alt="NAVA Architecture" width="900">
|
| 70 |
+
</p>
|
| 71 |
+
|
| 72 |
+
NAVA 把*原生音视频对齐*实例化为 **Align-then-Fuse MMDiT** 堆栈:
|
| 73 |
+
|
| 74 |
+
- **层级对齐层 —— 10 个 double-stream 块。** 视频与音频保留各自独立的 QKV 投影与 FFN,但共享一个对 `[video_tokens; audio_tokens]` 拼接序列的联合 self-attention,并各自有专用的 cross-attention 接入文本。这样构建出一个对齐空间,让 AV 对应关系在不被语义上下文干扰的前提下被学到。
|
| 75 |
+
- **统一融合层 —— 20 个 single-stream 块。** 视频与音频共享 QKV/FFN;统一的联合注意力把所有 token 视作一条序列,仅有一条文本 cross-attention 通路。上下文条件下的去噪在这里发生。
|
| 76 |
+
- **主干超参。** `dim=3072`,`ffn_dim=14336`,24 个注意力头,30 层(10 double + 20 single),`text_len=512`,patch 大小 `(1, 2, 2)`。QK 上使用 RMSNorm;带 cross-attention 归一化;ε = 1e-6。
|
| 77 |
+
- **位置编码。** 视频用 3D RoPE(时间 + 高 + 宽),音频用 1D RoPE,二者在联合注意力路径中联合应用。
|
| 78 |
+
- **Timbre-in-Context 条件机制。** 参考 WAV 的说话人嵌入(ReDimNet,192 维)通过上下文通路注入,并绑定到 `<S>...<E>` 语音片段,使多说话人场景下的逐说话人音色控制成为可能。
|
| 79 |
+
- **3D 跨模态 CFG。** 视频、音频以及跨模态对齐方向各自拥有独立的无分类器引导尺度(`video_align_guidance_scale`、`audio_align_guidance_scale`),在推理阶段把 AV 同步性卡得很紧。
|
| 80 |
+
|
| 81 |
+
### 与现有开源 AV 模型的差异
|
| 82 |
+
|
| 83 |
+
| 设计维度 | 典型基线 | **NAVA** |
|
| 84 |
+
|---|---|---|
|
| 85 |
+
| 数据流布局 | 双塔(事后对齐)**或** 完全统一三模态 | **Align-then-Fuse** —— 先对齐空间,再融合上下文 |
|
| 86 |
+
| 语音控制 | 仅 caption,无逐说话人音色 | 通过参考 WAV 实现 **Timbre-in-Context** |
|
| 87 |
+
| 参数预算 | 10B – 32B | **6.3B** |
|
| 88 |
+
|
| 89 |
+
### 与主干一同发布的组件
|
| 90 |
+
|
| 91 |
+
| 组件 | 说明 | 大小 |
|
| 92 |
+
|---|---|---|
|
| 93 |
+
| **WanAVModel**(主干) | MMDiT,联合 AV 注意力 | 6.3B |
|
| 94 |
+
| **Wan2.2 Video VAE** | 因果 3D ConvNet · 16×16×4 时空压缩 · 48 latent 通道 | 2.7 GB |
|
| 95 |
+
| **LTX Audio VAE + Vocoder** | 128 latent 通道 · 25 token/秒 · 内置波形解码器 | 348 MB |
|
| 96 |
+
| **umt5-xxl 文本编码器** | T5 · 4096 维嵌入 | 11 GB |
|
| 97 |
+
| **ReDimNet** | 说话人嵌入 · 192 维 | ~50 MB |
|
| 98 |
+
|
| 99 |
+
---
|
| 100 |
+
|
| 101 |
+
## 评测
|
| 102 |
+
|
| 103 |
+
### 表 1 —— VerseBench(综合 AV 能力)
|
| 104 |
+
|
| 105 |
+
NAVA 在 AV 同步(Sync-C / Sync-D)、视频质量与音频 WER 上均取得**最佳**,同时参数量最小。
|
| 106 |
+
|
| 107 |
+
| 模型 | 参数量 | 分辨率 | Sync-C ↑ | Sync-D ↓ | IB ↑ | 视频质量 ↑ | WER ↓ | PQ ↑ | FD ↓ |
|
| 108 |
+
|---|---|---|---|---|---|---|---|---|---|
|
| 109 |
+
| Ovi 1.1 | 10B | 720p | <u>7.4839</u> | 7.9791 | 0.199 | <u>0.636</u> | 0.102 | 5.8432 | 0.9418 |
|
| 110 |
+
| MOVA | A18B (32B) | 720p | 7.2888 | 7.808 | 0.269 | 0.603 | 0.126 | **7.2331** | 0.9222 |
|
| 111 |
+
| Davinci | 15B | 540p | 7.1487 | 7.8158 | 0.269 | 0.600 | 0.151 | 5.9559 | 0.9307 |
|
| 112 |
+
| LTX 2.3 | 19B | 512p | 7.2476 | <u>7.6902</u> | **0.337** | 0.576 | 0.106 | <u>6.9459</u> | **0.8287** |
|
| 113 |
+
| **NAVA(本工作)** | **6.3B** | 720p | **7.7914** | **7.5655** | <u>0.313</u> | **0.659** | **0.099** | 6.8609 | <u>0.8328</u> |
|
| 114 |
+
|
| 115 |
+
<sub>↑ 越高越好 · ↓ 越低越好 · **加粗** = 最佳 · <u>下划线</u> = 次佳。</sub>
|
| 116 |
+
|
| 117 |
+
### 表 2 —— Seed-TTS-eval(语音质量)
|
| 118 |
+
|
| 119 |
+
在联合 AV 模型中,NAVA 的语音质量已接近专用纯音频系统。纯音频行仅作*参考*,不可直接比较。
|
| 120 |
+
|
| 121 |
+
| 类别 | 模型 | WER ↓ | 说话人相似度 ↑ |
|
| 122 |
+
|---|---|---|---|
|
| 123 |
+
| 纯音频(参考) | CosyVoice | 4.29 | 60.9 |
|
| 124 |
+
| 纯音频(参考) | Qwen2.5-Omni | 2.72 | 63.2 |
|
| 125 |
+
| 联合音视频 | DreamID-Omni | 33.44 | 34.1 |
|
| 126 |
+
| 联合音视频 | **NAVA(本工作)** | **5.81** | **62.4** |
|
| 127 |
+
|
| 128 |
+
---
|
| 129 |
+
|
| 130 |
+
## 使用方法
|
| 131 |
+
|
| 132 |
+
> **一行命令。** 完成第 §1 步环境准备后:
|
| 133 |
+
> ```bash
|
| 134 |
+
> bash scripts/inference.sh # 通用 T2AV
|
| 135 |
+
> bash scripts/inference_timbre.sh # I2AV + 音色控制
|
| 136 |
+
> ```
|
| 137 |
+
> 输出落到 `eval_results/` 下。
|
| 138 |
+
|
| 139 |
+
### 1 · 环境准备(一次性)
|
| 140 |
+
|
| 141 |
+
```bash
|
| 142 |
+
git clone https://github.com/ernie-research/NAVA && cd NAVA
|
| 143 |
+
|
| 144 |
+
# Python 依赖
|
| 145 |
+
pip install torch torchvision torchaudio
|
| 146 |
+
pip install diffusers transformers accelerate safetensors einops scipy PyYAML tqdm sentencepiece
|
| 147 |
+
pip install flash-attn --no-build-isolation
|
| 148 |
+
|
| 149 |
+
# 一次性下载所有权重 —— 主 checkpoint + Wan2.2 VAE + T5 + LTX 音频 VAE
|
| 150 |
+
huggingface-cli download <NAVA-repo-id> --local-dir .
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
<details>
|
| 154 |
+
<summary><b>预期目录结构</b></summary>
|
| 155 |
+
|
| 156 |
+
```
|
| 157 |
+
NAVA/
|
| 158 |
+
├── NAVA.ckpt # 主 checkpoint(24 GB)
|
| 159 |
+
├── Wan2.2-TI2V-5B/
|
| 160 |
+
│ ├── Wan2.2_VAE.pth # 2.7 GB
|
| 161 |
+
│ ├── models_t5_umt5-xxl-enc-bf16.pth # 11 GB
|
| 162 |
+
│ └── google/umt5-xxl/{spiece.model, tokenizer.json}
|
| 163 |
+
├── params/
|
| 164 |
+
│ └── LTX2/
|
| 165 |
+
│ ├── ltx-2.3-22b-dev_audio_vae.safetensors # 348 MB
|
| 166 |
+
│ └── LICENSE # LTX-2 社区许可证
|
| 167 |
+
└── configs/ # 推理 YAML
|
| 168 |
+
```
|
| 169 |
+
|
| 170 |
+
LTX 音频 VAE 的 Python 代码已 vendor 到 `nava_src/vendor/ltx_core/`(见其 `NOTICE.md`),无需再单独 clone LTX-Video 仓库。ReDimNet 在首次运行时通过 `torch.hub` 下载。
|
| 171 |
+
</details>
|
| 172 |
+
|
| 173 |
+
### 2 · 一键推理(推荐,8 卡 SP)
|
| 174 |
+
|
| 175 |
+
仓库提供了两个端到端脚本,会内联构造 JSONL 并启动 SP=8 推理:
|
| 176 |
+
|
| 177 |
+
```bash
|
| 178 |
+
# 通用 T2AV(纯文本)
|
| 179 |
+
bash scripts/inference.sh
|
| 180 |
+
|
| 181 |
+
# I2AV + 音色控制(首帧图 + 参考音频)
|
| 182 |
+
bash scripts/inference_timbre.sh
|
| 183 |
+
```
|
| 184 |
+
|
| 185 |
+
通过环境变量覆盖默认值:
|
| 186 |
+
|
| 187 |
+
```bash
|
| 188 |
+
CKPT=/path/to/NAVA.ckpt OUT_DIR=eval_results/run1 bash scripts/inference.sh
|
| 189 |
+
TIMBRE_SCALE=3.0 SPK_WAV=/path/to/spk.wav bash scripts/inference_timbre.sh
|
| 190 |
+
```
|
| 191 |
+
|
| 192 |
+
### 3 · 自定义批次 —— 写自己的 JSONL
|
| 193 |
+
|
| 194 |
+
每行一条提示词:
|
| 195 |
+
|
| 196 |
+
```jsonl
|
| 197 |
+
{"prompt": "一位男子在海边奔跑,镜头跟随。背景是海浪声和风声。"}
|
| 198 |
+
{"prompt": "两人对话<S>Hello<E><S>Hi there<E>", "spk_wavs": ["spk1.wav", "spk2.wav"]}
|
| 199 |
+
{"prompt": "镜头跟随主体...", "image_path": "/abs/path/first_frame.png"}
|
| 200 |
+
```
|
| 201 |
+
|
| 202 |
+
| 字段 | 必填 | 说明 |
|
| 203 |
+
|---|---|---|
|
| 204 |
+
| `prompt` | 是 | 文本 caption(也兼容旧字段名 `text`) |
|
| 205 |
+
| `image_path` | 否 | 首帧图绝对路径 —— 自动为该样本启用 I2V |
|
| 206 |
+
| `spk_wavs` | 否 | 说话人参考 WAV 的绝对路径列表(最多 2 条) |
|
| 207 |
+
|
| 208 |
+
然后启动:
|
| 209 |
+
|
| 210 |
+
```bash
|
| 211 |
+
SETUPTOOLS_USE_DISTUTILS=stdlib torchrun \
|
| 212 |
+
--nnodes=1 --nproc_per_node=8 \
|
| 213 |
+
--master_addr=127.0.0.1 --master_port=29507 \
|
| 214 |
+
inference_nava.py \
|
| 215 |
+
--config configs/baseline_t2av_demo_mmdit_no_split_ltx_control_unipc.yaml \
|
| 216 |
+
--ckpt NAVA.ckpt \
|
| 217 |
+
--out_dir ./outputs \
|
| 218 |
+
--data_format json --data_file my_prompts.jsonl \
|
| 219 |
+
--width 1280 --height 704 --frames 37 --fps 24 \
|
| 220 |
+
--steps 50 --save_sample --gen_turn 1 --use_sp
|
| 221 |
+
```
|
| 222 |
+
|
| 223 |
+
输出落到 `outputs/{save_path}-{gen_turn}_av.mp4`。对带音色控制的样本,还需加上 `--timbre_cfg --timbre_align_guidance_scale 3.0`。
|
| 224 |
+
|
| 225 |
+
#### 模式速查
|
| 226 |
+
|
| 227 |
+
| 目标 | JSONL 字段 | 额外 flag |
|
| 228 |
+
|---|---|---|
|
| 229 |
+
| 文本 → AV | `prompt` | — |
|
| 230 |
+
| 图像 → AV | `prompt` + `image_path` | (自动检测) |
|
| 231 |
+
| 音色控制语音 | `prompt` + `spk_wavs` | `--timbre_cfg --timbre_align_guidance_scale 3.0` |
|
| 232 |
+
| 9 秒视频 | 任意 | `--frames 55` |
|
| 233 |
+
| 单卡(更慢) | 任意 | 去掉 `--use_sp` |
|
| 234 |
+
|
| 235 |
+
### 4 · 提示词改写(短输入 / 英文输入推荐)
|
| 236 |
+
|
| 237 |
+
NAVA 在中文密集 caption 上训练,短提示或英文提示在推理前先改写一遍会显著受益。我们提供三种通路,共用同一套 system prompt 与采样 profile(保证输出风格一致),且 `<S>...<E>` 语音片段会被原样保留。
|
| 238 |
+
|
| 239 |
+
| 通路 | 后端 | 速度 | 适用场景 |
|
| 240 |
+
|---|---|---|---|
|
| 241 |
+
| **vLLM 批量服务**(`pe_src/`) | Qwen3-4B-Thinking-2507 由 vLLM 提供,异步 HTTP | **< 2 秒** / 条 | 离线批量 |
|
| 242 |
+
| **本地 transformers,单条**(`gradio_demo/rewrite_single.py`) | 同模型,进程内 | 40–80 秒 / 条 | 单次 CLI |
|
| 243 |
+
| **Gradio "Rewrite" 按钮** | 同上,托管在 Gradio 中 | 40–80 秒 / 条 | 交互式 UI |
|
| 244 |
+
|
| 245 |
+
```bash
|
| 246 |
+
# 批量路径:先起 vLLM 服务,再改写一个 prompt 列表
|
| 247 |
+
bash pe_src/start_server.sh --gpu 0 --low-footprint
|
| 248 |
+
python pe_src/rewrite.py -i prompts.txt -o prompts_rewritten.txt
|
| 249 |
+
```
|
| 250 |
+
|
| 251 |
+
### 5 · Gradio 网页 UI
|
| 252 |
+
|
| 253 |
+
交互式 demo,支持点击改写(Qwen3-4B)、首帧图上传、参考 WAV 上传:
|
| 254 |
+
|
| 255 |
+
```bash
|
| 256 |
+
bash gradio_demo/start_gradio.sh \
|
| 257 |
+
--config configs/baseline_t2av_demo_mmdit_no_split_ltx_control_unipc.yaml \
|
| 258 |
+
--ckpt NAVA.ckpt \
|
| 259 |
+
--rewrite_model pe_src/Qwen3-4B-Thinking-2507 \
|
| 260 |
+
--port 8000 --nproc 8
|
| 261 |
+
```
|
| 262 |
+
|
| 263 |
+
<details>
|
| 264 |
+
<summary><b>Debug 模式(不加载模型,仅 UI)</b></summary>
|
| 265 |
+
|
| 266 |
+
```bash
|
| 267 |
+
python gradio_demo/gradio_server.py --debug --port 8000
|
| 268 |
+
```
|
| 269 |
+
</details>
|
| 270 |
+
|
| 271 |
+
---
|
| 272 |
+
|
| 273 |
+
## 偏见、安全与滥用
|
| 274 |
+
|
| 275 |
+
NAVA 可基于参考图(`image_path`)和参考音频(`spk_wavs`)合成视频与语音。**未经本人同意**用其再现真实人物的相貌或声音,是被许可证禁止的,并且在你所在司法辖区内可能也违法。我们建议:
|
| 276 |
+
|
| 277 |
+
1. 仅使用**已获得授权**的参考素材。
|
| 278 |
+
2. **将生成内容明确标注为合成**。
|
| 279 |
+
3. 在再分发前应用**溯源 / 水印**机制。
|
| 280 |
+
|
| 281 |
+
---
|
| 282 |
+
|
| 283 |
+
## 引用
|
| 284 |
+
|
| 285 |
+
```bibtex
|
| 286 |
+
@article{nava2026,
|
| 287 |
+
title = {NAVA: Native Audio-Visual Alignment for Joint Audio-Video Generation},
|
| 288 |
+
author = {ERNIE Team},
|
| 289 |
+
journal = {arXiv preprint},
|
| 290 |
+
year = {2026},
|
| 291 |
+
}
|
| 292 |
+
```
|
| 293 |
+
|
| 294 |
+
## 致谢
|
| 295 |
+
|
| 296 |
+
NAVA 站在优秀的上游工作之上:**Wan2.2-TI2V-5B**(视频主干与 VAE)、**LTX 2.3**(音频 VAE + 内置声码器)、**umt5-xxl**(文本编码器)、**ReDimNet**(说话人嵌入)。同时感谢开源 AV 生成社区 —— Ovi、MOVA、Davinci、LTX —— 公开了强力基线,让公平 benchmark 成为可能。
|
| 297 |
+
|
| 298 |
+
## 许可证与联系方式
|
| 299 |
+
|
| 300 |
+
以 **Apache-2.0** 协议发布。研究 / 商业合作请联系**百度公司 ERNIE 团队**。
|
Wan2.2-TI2V-5B/Wan2.2_VAE.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20eb789667fa5e60e7516bf509512f6cb61f01b0aa0695eadaea930c13892b36
|
| 3 |
+
size 2818839170
|
Wan2.2-TI2V-5B/google/umt5-xxl/spiece.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e3909a67b780650b35cf529ac782ad2b6b26e6d1f849d3fbb6a872905f452458
|
| 3 |
+
size 4548313
|
Wan2.2-TI2V-5B/google/umt5-xxl/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e197b4d3dbd71da14b4eb255f4fa91c9c1f2068b20a2de2472967ca3d22602b
|
| 3 |
+
size 16837417
|
Wan2.2-TI2V-5B/models_t5_umt5-xxl-enc-bf16.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7cace0da2b446bbbbc57d031ab6cf163a3d59b366da94e5afe36745b746fd81d
|
| 3 |
+
size 11361920418
|
assets/arch.png
ADDED
|
Git LFS Details
|
assets/logo.png
ADDED
|
Git LFS Details
|
config.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"patch_size": [1, 2, 2],
|
| 3 |
+
"model_type": "ti2v",
|
| 4 |
+
"dim": 3072,
|
| 5 |
+
"ffn_dim": 14336,
|
| 6 |
+
"freq_dim": 256,
|
| 7 |
+
"num_heads": 24,
|
| 8 |
+
"num_layers": 30,
|
| 9 |
+
"num_double_layers": 10,
|
| 10 |
+
"num_single_layers": 20,
|
| 11 |
+
"vid_in_dim": 48,
|
| 12 |
+
"vid_out_dim": 48,
|
| 13 |
+
"audio_in_dim": 128,
|
| 14 |
+
"audio_out_dim": 128,
|
| 15 |
+
"text_len": 512,
|
| 16 |
+
"window_size": [-1, -1],
|
| 17 |
+
"qk_norm": true,
|
| 18 |
+
"cross_attn_norm": true,
|
| 19 |
+
"eps": 1e-6,
|
| 20 |
+
"temporal_rope_scaling_factor": 0.24
|
| 21 |
+
}
|
example_prompts.jsonl
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"prompt": "一位男子在海边奔跑,镜头跟随其移动。写实电影感,中景跟随,自然光。背景是海浪声和风声。"}
|
| 2 |
+
{"prompt": "画面呈现冷调写实电影质感,整体色调以冰蓝色、冷白色与浅灰色为主。一只北极熊正在冰面上行走,每一步都让爪子与冰面发生真实摩擦。背景伴有极地寒风与远处冰层轻微开裂声。"}
|
| 3 |
+
{"prompt": "这段写实风格的视频记录了一个安静的公园棋局场景。左侧的男子看着棋盘,语气低沉地说道:<S>If you move the bishop now, you leave your king exposed.<E> 右侧的男子短暂停顿后抬起眼,语气冷静地回应道:<S>That is exactly why I want you to think the attack is obvious.<E>"}
|
| 4 |
+
{"prompt": "这是一段具有史诗级写实电影质感的视频,蝙蝠侠站在城市高楼屋顶边缘,眼神深邃且坚定,他低沉沙哑且富有磁性地说道:<S>Small models can still do big things.<E>", "spk_wavs": ["/abs/path/to/batman_ref.wav"]}
|
| 5 |
+
{"prompt": "一只猫从沙发上跳下,轻盈落地。柔和室内自然光,温暖居家氛围。", "image_path": "/abs/path/to/cat_first_frame.png"}
|
nava.yaml
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
model_type: NAVA
|
| 3 |
+
modality: audio_video # [audio, video, image, audio_video]
|
| 4 |
+
|
| 5 |
+
# 模型
|
| 6 |
+
model_id: /root/paddlejob/workspace/Qwen3-1.7B
|
| 7 |
+
# model_id: GPT-B
|
| 8 |
+
use_bf16: true
|
| 9 |
+
audio_latent_ch: 128
|
| 10 |
+
video_latent_ch: 48
|
| 11 |
+
|
| 12 |
+
patch_size: 2
|
| 13 |
+
image_size: 960
|
| 14 |
+
log_width: 1280
|
| 15 |
+
log_height: 704
|
| 16 |
+
lambda_ddpm: 1.0
|
| 17 |
+
|
| 18 |
+
pipeline: nava_src.pipeline_nava.AudioVideoPipeline
|
| 19 |
+
scheduler_personalized: true
|
| 20 |
+
scheduler_unipc: true
|
| 21 |
+
use_loss_reweight: true
|
| 22 |
+
attention_only: false
|
| 23 |
+
|
| 24 |
+
use_mmdit_model: true
|
| 25 |
+
audio_loss_coff: 0.2
|
| 26 |
+
vision_loss_coff: 1
|
| 27 |
+
|
| 28 |
+
# 推理
|
| 29 |
+
video_guidance_scale: 3.0
|
| 30 |
+
audio_guidance_scale: 2.0
|
| 31 |
+
video_align_guidance_scale: 3.0
|
| 32 |
+
audio_align_guidance_scale: 2.0
|
| 33 |
+
masking_modality_prob: 0.2
|
| 34 |
+
align_3d_cfg: true
|
| 35 |
+
i2v_mode_prob: 0.5
|
| 36 |
+
no_split_norm_ffn: true
|
| 37 |
+
timbre_cfg: true
|
| 38 |
+
timbre_align_guidance_scale: 3.0
|
| 39 |
+
|
| 40 |
+
# 数据
|
| 41 |
+
data:
|
| 42 |
+
# data_filelist: data/video_text/data_videogen_0630_256px_shijue.list
|
| 43 |
+
# data_weights: data/video_text/data_video_0630_shijue.weight
|
| 44 |
+
# data_filelist: data/audio_text/mixture_0207/data.list
|
| 45 |
+
# data_weights: data/audio_text/mixture_0207/data.weight
|
| 46 |
+
# data_filelist: av_data_v2.list
|
| 47 |
+
# data_weights: av_data.weight
|
| 48 |
+
data_filelist: av_data_v4_470w_filter10_with_audio.list
|
| 49 |
+
data_weights: av_data_v4_470w_filter10_with_audio.weight
|
| 50 |
+
# data_filelist: joint_train_mmdit.list
|
| 51 |
+
# data_weights: joint_train_mmdit.weight
|
| 52 |
+
use_length_buckets: true
|
| 53 |
+
num_length_buckets: 5
|
| 54 |
+
enable_ddp_bucket_sync: true
|
| 55 |
+
audio_tokens_per_sec: 25
|
| 56 |
+
|
| 57 |
+
queue_size: 16
|
| 58 |
+
io_workers: 4
|
| 59 |
+
|
| 60 |
+
modal_prob:
|
| 61 |
+
text_to_audio: 1
|
| 62 |
+
text_to_video: 0.0
|
| 63 |
+
text_to_image: 0.0
|
| 64 |
+
text_to_av: 1
|
| 65 |
+
|
| 66 |
+
# server config
|
| 67 |
+
use_server: False
|
| 68 |
+
audio_scaling_factor: 1.0
|
| 69 |
+
audio_shift_factor: 0.0
|
| 70 |
+
video_scaling_factor: 1.0
|
| 71 |
+
video_shift_factor: 0.0
|
| 72 |
+
zlib_mode: false
|
| 73 |
+
zstd_mode: true
|
| 74 |
+
|
| 75 |
+
# video_fps: 16
|
| 76 |
+
# video_min_frames: 33
|
| 77 |
+
# video_max_frames: 300
|
| 78 |
+
# video_tgt_frames: 81
|
| 79 |
+
min_audio_duration: 0.0
|
| 80 |
+
max_audio_duration: 10.0
|
| 81 |
+
|
| 82 |
+
video_fps: 24
|
| 83 |
+
video_min_frames: 33
|
| 84 |
+
video_max_frames: 400
|
| 85 |
+
video_tgt_frames: 121
|
| 86 |
+
# video_tgt_frames: 241
|
| 87 |
+
|
| 88 |
+
add_spk_emb: true
|
| 89 |
+
spk_emb_prob: 0.9
|
| 90 |
+
use_speech_special_token: false
|
| 91 |
+
|
| 92 |
+
model:
|
| 93 |
+
shift: 5
|
| 94 |
+
shift_audio: 5
|
| 95 |
+
num_train_timesteps: 1000
|
| 96 |
+
gradient_checkpointing: true
|
| 97 |
+
cross_gate: false
|
| 98 |
+
cross_1d_rope: false
|
| 99 |
+
|
| 100 |
+
# audio_config: nava_src/models/nava/configs/model/dit/audio.json
|
| 101 |
+
# video_config: nava_src/models/nava/configs/model/dit/video.json
|
| 102 |
+
audio_config: nava_src/models/nava/configs/model/dit/audio_tiny.json
|
| 103 |
+
video_config: nava_src/models/nava/configs/model/dit/video_tiny.json
|
| 104 |
+
joint_config: nava_src/models/nava/configs/model/dit/NAVA_6B.json
|
| 105 |
+
ckpt_dir: ./
|
| 106 |
+
audio_vae_ckpt_dir: ./huggingface_upload/params
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
# 训练
|
| 110 |
+
batch_size: 1
|
| 111 |
+
lr: 1.0e-4
|
| 112 |
+
weight_decay: 0
|
| 113 |
+
warmup_steps: 0
|
| 114 |
+
max_steps: 1000000
|
| 115 |
+
save_every: 2500
|
| 116 |
+
out_dir: outputs/t2av_baseline_demo_mmdit_test_no_separate_modulation
|
| 117 |
+
seed: 42
|
| 118 |
+
|
| 119 |
+
flow: true
|
| 120 |
+
|
| 121 |
+
# 性能相关
|
| 122 |
+
num_workers: 0
|
| 123 |
+
prefetch_factor: 32
|
| 124 |
+
grad_accum_steps: 1
|
| 125 |
+
log_every: 1
|
| 126 |
+
log_cases_every: 1000000 # >0 才会写图像
|
| 127 |
+
log_sample_steps: 25
|
| 128 |
+
log_cfg: 4
|
| 129 |
+
max_grad_norm: 1.0
|
| 130 |
+
amp_dtype: bf16 # bf16 / fp16 / null
|
| 131 |
+
|
params/LTX2/LICENSE
ADDED
|
@@ -0,0 +1,381 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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+
|
| 4 |
+
|
| 5 |
+
By using or distributing any portion or element of LTX-2, you agree
|
| 6 |
+
to be bound by this Agreement.
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"Agreement" means the terms and conditions for the license, use,
|
| 11 |
+
reproduction, and distribution of LTX-2 and the Complementary
|
| 12 |
+
Materials, as specified in this document.
|
| 13 |
+
|
| 14 |
+
"Control" means the direct or indirect ownership of more than
|
| 15 |
+
fifty percent (50%) of the voting securities or other ownership
|
| 16 |
+
interests, or the power to direct the management and policies of
|
| 17 |
+
such Entity through voting rights, contract, or otherwise.
|
| 18 |
+
|
| 19 |
+
"Data" means a collection of information and/or content extracted
|
| 20 |
+
from the dataset used with LTX-2, including to train, pretrain,
|
| 21 |
+
or otherwise evaluate LTX-2. The Data is not licensed under this
|
| 22 |
+
Agreement.
|
| 23 |
+
|
| 24 |
+
"Derivatives of LTX-2" means all modifications to LTX-2, works
|
| 25 |
+
based on LTX-2, or any other model which is created or initialized
|
| 26 |
+
by transfer of patterns of the weights, parameters, activations or
|
| 27 |
+
output of LTX-2, to the other model, in order to cause the other
|
| 28 |
+
model to perform similarly to LTX-2, including – but not limited
|
| 29 |
+
to - distillation methods entailing the use of intermediate data
|
| 30 |
+
representations or methods based on the generation of synthetic
|
| 31 |
+
data by LTX-2 for training the other model. For clarity, Derivatives
|
| 32 |
+
of LTX-2 include: (i) any fine-tuned or adapted weights, parameters,
|
| 33 |
+
or checkpoints derived from LTX-2; (ii) derivative model architectures
|
| 34 |
+
that incorporate or are based upon LTX-2's architecture; and
|
| 35 |
+
(iii) any modified or extended versions of the Complementary
|
| 36 |
+
Materials. All intellectual property rights in Derivatives of LTX-2
|
| 37 |
+
shall be subject to the terms of this Agreement, and you may not
|
| 38 |
+
claim exclusive ownership rights in any Derivatives of LTX-2 that
|
| 39 |
+
would restrict the rights granted herein.
|
| 40 |
+
|
| 41 |
+
"Entity" means any individual, corporation, partnership, limited
|
| 42 |
+
liability company, or other legal entity. For purposes of this
|
| 43 |
+
Agreement, an Entity shall be deemed to include, on an aggregative
|
| 44 |
+
basis, all subsidiaries, affiliates, and other companies under
|
| 45 |
+
common Control with such Entity. When determining whether an Entity
|
| 46 |
+
meets any threshold under this Agreement (including revenue
|
| 47 |
+
thresholds), all subsidiaries, affiliates, and companies under
|
| 48 |
+
common Control shall be considered collectively.
|
| 49 |
+
|
| 50 |
+
"Harm" includes but is not limited to physical, mental,
|
| 51 |
+
psychological, financial and reputational damage, pain, or loss.
|
| 52 |
+
|
| 53 |
+
"Licensor" or "Lightricks" means the owner that is granting the
|
| 54 |
+
license under this Agreement. For the purposes of this Agreement,
|
| 55 |
+
the Licensor is Lightricks Ltd.
|
| 56 |
+
|
| 57 |
+
"LTX-2" means the large language models, text/image/video/audio/3D
|
| 58 |
+
generation models, and multimodal large language models and their
|
| 59 |
+
software and algorithms, including trained model weights, parameters
|
| 60 |
+
(including optimizer states), machine-learning model code,
|
| 61 |
+
inference-enabling code, training-enabling code, fine-tuning
|
| 62 |
+
enabling code, accompanying source code, scripts, documentation,
|
| 63 |
+
tutorials, examples, and all other elements of the foregoing
|
| 64 |
+
distributed and made publicly available by Lightricks (including,
|
| 65 |
+
for example, at https://github.com/Lightricks/LTX-2) for the LTX-2
|
| 66 |
+
model released on January 5, 2026. This license is applicable to
|
| 67 |
+
all LTX-2 versions released since January 5, 2026, and all future
|
| 68 |
+
releases of LTX-2 under this license.
|
| 69 |
+
|
| 70 |
+
"Output" means the results of operating LTX-2 as embodied in
|
| 71 |
+
informational content resulting therefrom.
|
| 72 |
+
|
| 73 |
+
"you" (or "your") means an individual or legal Entity licensing
|
| 74 |
+
LTX-2 in accordance with this Agreement and/or making use of LTX-2
|
| 75 |
+
for whichever purpose and in any field of use, including usage of
|
| 76 |
+
LTX-2 in an end-use application - e.g. chatbot, translator, image
|
| 77 |
+
generator.
|
| 78 |
+
|
| 79 |
+
2. Grant of License. Subject to the terms and conditions of this
|
| 80 |
+
Agreement, you are granted a non-exclusive, worldwide,
|
| 81 |
+
non-transferable and royalty-free limited license under Licensor's
|
| 82 |
+
intellectual property or other rights owned by Licensor embodied
|
| 83 |
+
in LTX-2 to use, reproduce, prepare, distribute, publicly display,
|
| 84 |
+
publicly perform, sublicense, copy, create derivative works of,
|
| 85 |
+
and make modifications to LTX-2, for any purpose, subject to the
|
| 86 |
+
restrictions set forth in Attachment A; provided however, that
|
| 87 |
+
Entities with annual revenues of at least $10,000,000 (the
|
| 88 |
+
"Commercial Entities") are required to obtain a paid commercial
|
| 89 |
+
use license in order to use LTX-2 and Derivatives of LTX-2,
|
| 90 |
+
subject to the terms and provisions of a different license (the
|
| 91 |
+
"Commercial Use Agreement"), as will be provided by the Licensor.
|
| 92 |
+
Commercial Entities interested in such a commercial license are
|
| 93 |
+
required to [contact Licensor](https://ltx.io/model/licensing).
|
| 94 |
+
Any commercial use of LTX-2 or Derivatives of LTX-2 by the
|
| 95 |
+
Commercial Entities not in accordance with this Agreement and/or
|
| 96 |
+
the Commercial Use Agreement is strictly prohibited and shall be
|
| 97 |
+
deemed a material breach of this Agreement. Such material breach
|
| 98 |
+
will be subject, in addition to any license fees owed to Licensor
|
| 99 |
+
for the period such Commercial Entity used LTX-2 (as will be
|
| 100 |
+
determined by Licensor), to liquidated damages, which will be paid
|
| 101 |
+
to Licensor immediately upon demand, in an amount equal to double
|
| 102 |
+
the amount that would otherwise have been paid by you for the
|
| 103 |
+
relevant period of time. Such amount reflects a reasonable estimation
|
| 104 |
+
of the losses and administrative costs incurred due to such breach.
|
| 105 |
+
You agree and understand that this remedy does not limit the Licensor's
|
| 106 |
+
right to pursue other remedies available at law or equity.
|
| 107 |
+
|
| 108 |
+
3. Distribution and Redistribution. You may host for third parties
|
| 109 |
+
remote access purposes (e.g. software-as-a-service), reproduce
|
| 110 |
+
and distribute copies of LTX-2 or Derivatives of LTX-2 thereof in
|
| 111 |
+
any medium, with or without modifications, provided that you meet
|
| 112 |
+
the following conditions:
|
| 113 |
+
|
| 114 |
+
(a) Use-based restrictions as referenced in paragraph 4 and all
|
| 115 |
+
provisions of Attachment A MUST be included as an enforceable
|
| 116 |
+
provision by you in any type of legal agreement (e.g. a
|
| 117 |
+
license) governing the use and/or distribution of LTX-2 or
|
| 118 |
+
Derivatives of LTX-2, and you shall give notice to subsequent
|
| 119 |
+
users you distribute to, that LTX-2 or Derivatives of LTX-2
|
| 120 |
+
are subject to paragraph 4 and Attachment A in their entirety,
|
| 121 |
+
including all use restrictions and acceptable use policies;
|
| 122 |
+
|
| 123 |
+
(b) You must provide any third party recipients of LTX-2 or
|
| 124 |
+
Derivatives of LTX-2 a copy of this Agreement, including all
|
| 125 |
+
attachments and use policies. Any Derivative of LTX-2 (as
|
| 126 |
+
defined in Section 1, including but not limited to fine-tuned
|
| 127 |
+
weights, modified training code, models trained on Outputs, or
|
| 128 |
+
any other derivative) must be distributed exclusively under
|
| 129 |
+
the terms of this Agreement with a complete copy of this
|
| 130 |
+
license included;
|
| 131 |
+
|
| 132 |
+
(c) You must cause any modified files to carry prominent notices
|
| 133 |
+
stating that you changed the files;
|
| 134 |
+
|
| 135 |
+
(d) You must retain all copyright, patent, trademark, and
|
| 136 |
+
attribution notices excluding those notices that do not
|
| 137 |
+
pertain to any part of LTX-2, Derivatives of LTX-2.
|
| 138 |
+
|
| 139 |
+
You may add your own copyright statement to your modifications and
|
| 140 |
+
may provide additional or different license terms and conditions -
|
| 141 |
+
respecting paragraph 3(a) - for use, reproduction, or distribution
|
| 142 |
+
of your modifications, or for any such Derivatives of LTX-2 as a
|
| 143 |
+
whole, provided your use, reproduction, and distribution of LTX-2
|
| 144 |
+
otherwise complies with the conditions stated in this Agreement,
|
| 145 |
+
and you provide a complete copy of this Agreement with any such
|
| 146 |
+
use, reproduction and distribution of LTX-2 and any Derivatives
|
| 147 |
+
thereof.
|
| 148 |
+
|
| 149 |
+
4. Use-based restrictions. The restrictions set forth in Attachment A
|
| 150 |
+
are considered Use-based restrictions. Therefore, you cannot use
|
| 151 |
+
LTX-2 and the Derivatives of LTX-2 in violation of the specified
|
| 152 |
+
restricted uses. You may use LTX-2 subject to this Agreement,
|
| 153 |
+
including only for lawful purposes and in accordance with the
|
| 154 |
+
Agreement. "Use" may include creating any content with, fine-tuning,
|
| 155 |
+
updating, running, training, evaluating and/or re-parametrizing
|
| 156 |
+
LTX-2. You shall require all of your users who use LTX-2 or a
|
| 157 |
+
Derivative of LTX-2 to comply with the terms of this paragraph 4.
|
| 158 |
+
|
| 159 |
+
5. The Output You Generate. Except as set forth herein, Licensor
|
| 160 |
+
claims no rights in the Output you generate using LTX-2. You are
|
| 161 |
+
accountable for input you insert into LTX-2, the Output you
|
| 162 |
+
generate and its subsequent uses. No use of the Output can
|
| 163 |
+
contravene any provision as stated in the Agreement.
|
| 164 |
+
|
| 165 |
+
6. Updates and Runtime Restrictions. To the maximum extent permitted
|
| 166 |
+
by law, Licensor reserves the right to restrict (remotely or
|
| 167 |
+
otherwise) usage of LTX-2 in violation of this Agreement, update
|
| 168 |
+
LTX-2 through electronic means, or modify the Output of LTX-2
|
| 169 |
+
based on updates. You shall undertake reasonable efforts to use
|
| 170 |
+
the latest version of LTX-2. Any use of the non-current version
|
| 171 |
+
of LTX-2 is done solely at your risk.
|
| 172 |
+
|
| 173 |
+
7. Export Controls and Sanctions Compliance. You acknowledge that
|
| 174 |
+
LTX-2, Derivatives of LTX-2 may be subject to export control laws
|
| 175 |
+
and regulations, including but not limited to the U.S. Export
|
| 176 |
+
Administration Regulations and sanctions programs administered by
|
| 177 |
+
the Office of Foreign Assets Control (OFAC). You represent and
|
| 178 |
+
warrant that you and any users of LTX-2 are not (i) located in,
|
| 179 |
+
organized under the laws of, or ordinarily resident in any country
|
| 180 |
+
or territory subject to comprehensive sanctions; (ii) identified
|
| 181 |
+
on any U.S. government restricted party list, including the
|
| 182 |
+
Specially Designated Nationals and Blocked Persons List; or
|
| 183 |
+
(iii) otherwise prohibited from receiving LTX-2 under applicable
|
| 184 |
+
law. You shall not export, re-export, or transfer LTX-2, directly
|
| 185 |
+
or indirectly, in violation of any applicable export control or
|
| 186 |
+
sanctions laws or regulations. You agree to comply with all
|
| 187 |
+
applicable trade control laws and shall indemnify and hold
|
| 188 |
+
Licensor harmless from any claims arising from your failure to
|
| 189 |
+
comply with such laws.
|
| 190 |
+
|
| 191 |
+
8. Trademarks and related. Nothing in this Agreement permits you to
|
| 192 |
+
make use of Licensor's trademarks, trade names, logos or to
|
| 193 |
+
otherwise suggest endorsement or misrepresent the relationship
|
| 194 |
+
between the parties; and any rights not expressly granted herein
|
| 195 |
+
are reserved by the Licensor.
|
| 196 |
+
|
| 197 |
+
9. Disclaimer of Warranty. Unless required by applicable law or
|
| 198 |
+
agreed to in writing, Licensor provides LTX-2 on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 200 |
+
implied, including, without limitation, any warranties or
|
| 201 |
+
conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS
|
| 202 |
+
FOR A PARTICULAR PURPOSE. You are solely responsible for
|
| 203 |
+
determining the appropriateness of using or redistributing LTX-2
|
| 204 |
+
and Derivatives of LTX-2 and assume any risks associated with
|
| 205 |
+
your exercise of permissions under this Agreement.
|
| 206 |
+
|
| 207 |
+
10. Limitation of Liability. In no event and under no legal theory,
|
| 208 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 209 |
+
unless required by applicable law (such as deliberate and grossly
|
| 210 |
+
negligent acts) or agreed to in writing, shall Licensor be liable
|
| 211 |
+
to you for damages, including any direct, indirect, special,
|
| 212 |
+
incidental, or consequential damages of any character arising as
|
| 213 |
+
a result of this Agreement or out of the use or inability to use
|
| 214 |
+
LTX-2 (including but not limited to damages for loss of goodwill,
|
| 215 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 216 |
+
other commercial damages or losses), even if Licensor has been
|
| 217 |
+
advised of the possibility of such damages.
|
| 218 |
+
|
| 219 |
+
11. Accepting Warranty or Additional Liability. While redistributing
|
| 220 |
+
LTX-2 and Derivatives of LTX-2, you may, provided you do not
|
| 221 |
+
violate the terms of this Agreement, choose to offer and charge
|
| 222 |
+
a fee for, acceptance of support, warranty, indemnity, or other
|
| 223 |
+
liability obligations. However, in accepting such obligations,
|
| 224 |
+
you may act only on your own behalf and on your sole
|
| 225 |
+
responsibility, not on behalf of Licensor, and only if you agree
|
| 226 |
+
to indemnify, defend, and hold Licensor harmless for any liability
|
| 227 |
+
incurred by, or claims asserted against Licensor, by reason of
|
| 228 |
+
your accepting any such warranty or additional liability.
|
| 229 |
+
|
| 230 |
+
12. Governing Law. This Agreement and all relations, disputes, claims
|
| 231 |
+
and other matters arising hereunder (including non-contractual
|
| 232 |
+
disputes or claims) will be governed exclusively by, and construed
|
| 233 |
+
exclusively in accordance with, the laws of the State of New York.
|
| 234 |
+
To the extent permitted by law, choice of laws rules and the
|
| 235 |
+
United Nations Convention on Contracts for the International Sale
|
| 236 |
+
of Goods will not apply. For the purposes of adjudicating any
|
| 237 |
+
action or proceeding to enforce the terms of this Agreement, you
|
| 238 |
+
hereby irrevocably consent to the exclusive jurisdiction of, and
|
| 239 |
+
venue in, the federal and state courts located in the County of
|
| 240 |
+
New York within the State of New York. The prevailing party in
|
| 241 |
+
any claim or dispute between the parties under this Agreement
|
| 242 |
+
will be entitled to reimbursement of its reasonable attorneys'
|
| 243 |
+
fees and costs. You hereby waive the right to a trial by jury,
|
| 244 |
+
to participate in a class or representative action (including in
|
| 245 |
+
arbitration), or to combine individual proceedings in court or
|
| 246 |
+
in arbitration without the consent of all parties.
|
| 247 |
+
|
| 248 |
+
13. Term and Termination. This Agreement is effective upon your
|
| 249 |
+
acceptance and continues until terminated. Licensor may terminate
|
| 250 |
+
this Agreement immediately upon written notice to you if you
|
| 251 |
+
breach any provision of this Agreement, including but not limited
|
| 252 |
+
to violations of the use restrictions in Attachment A or
|
| 253 |
+
unauthorized commercial use. Upon termination: (a) all rights
|
| 254 |
+
granted to you under this Agreement will immediately cease;
|
| 255 |
+
(b) you must immediately cease all use of LTX-2 and Derivatives
|
| 256 |
+
of LTX-2; (c) you must delete or destroy all copies of LTX-2
|
| 257 |
+
and Derivatives of LTX-2 in your possession or control; and
|
| 258 |
+
(d) you must notify any third parties to whom you distributed
|
| 259 |
+
LTX-2 or Derivatives of LTX-2 of the termination. Sections 8-13,
|
| 260 |
+
and Section 15 shall survive termination of this Agreement.
|
| 261 |
+
Termination does not relieve you of any obligations incurred
|
| 262 |
+
prior to termination, including payment obligations under
|
| 263 |
+
Section 2. In addition, if You commence a lawsuit or other
|
| 264 |
+
proceedings (including a cross-claim or counterclaim in a lawsuit)
|
| 265 |
+
against Licensor or any person or entity alleging that LTX-2 or
|
| 266 |
+
any Output, or any portion of any of the foregoing, infringe any
|
| 267 |
+
intellectual property or other right owned or licensable by you,
|
| 268 |
+
then all licenses granted to you under this Agreement shall
|
| 269 |
+
terminate as of the date such lawsuit or other proceeding is filed.
|
| 270 |
+
|
| 271 |
+
14. Disputes and Arbitration. All disputes arising in connection with
|
| 272 |
+
this Agreement shall be finally settled by arbitration under the
|
| 273 |
+
Rules of Arbitration of the International Chamber of Commerce
|
| 274 |
+
("ICC Rules"), by one (1) arbitrator appointed in accordance with
|
| 275 |
+
the ICC Rules. The seat of arbitration shall be New York, NY, USA,
|
| 276 |
+
and the proceedings shall be conducted in English. The arbitrator
|
| 277 |
+
shall be empowered to grant any relief that a court could grant.
|
| 278 |
+
Judgment on the arbitration award may be entered by any court
|
| 279 |
+
having jurisdiction thereof. Each party waives its right to a
|
| 280 |
+
trial by jury and to participate in any class or representative
|
| 281 |
+
action.
|
| 282 |
+
|
| 283 |
+
15. If any provision of this Agreement is held to be
|
| 284 |
+
invalid, illegal
|
| 285 |
+
or unenforceable, the remaining provisions shall be unaffected
|
| 286 |
+
thereby and remain valid as if such provision had not been set
|
| 287 |
+
forth herein.
|
| 288 |
+
|
| 289 |
+
END OF TERMS AND CONDITIONS
|
| 290 |
+
|
| 291 |
+
ATTACHMENT A: Use Restrictions
|
| 292 |
+
|
| 293 |
+
When using the Outputs, LTX-2 and any Derivatives thereof, you
|
| 294 |
+
will comply with the Acceptable Use Policy. In addition, you
|
| 295 |
+
agree not to use the Outputs, LTX-2 or its Derivatives in any
|
| 296 |
+
of the following ways:
|
| 297 |
+
|
| 298 |
+
1. In any way that violates any applicable national, federal,
|
| 299 |
+
state, local or international law or regulation;
|
| 300 |
+
|
| 301 |
+
2. For the purpose of exploiting, Harming or attempting to
|
| 302 |
+
exploit or Harm minors in any way;
|
| 303 |
+
|
| 304 |
+
3. To generate or disseminate false information and/or content
|
| 305 |
+
with the purpose of Harming others;
|
| 306 |
+
|
| 307 |
+
4. To generate or disseminate personal identifiable information
|
| 308 |
+
that can be used to Harm an individual;
|
| 309 |
+
|
| 310 |
+
5. To generate or disseminate information and/or content (e.g.
|
| 311 |
+
images, code, posts, articles), and place the information
|
| 312 |
+
and/or content in any context (e.g. bot generating tweets)
|
| 313 |
+
without expressly and intelligibly disclaiming that the
|
| 314 |
+
information and/or content is machine generated;
|
| 315 |
+
|
| 316 |
+
6. To defame, disparage or otherwise harass others;
|
| 317 |
+
|
| 318 |
+
7. To impersonate or attempt to impersonate (e.g. deepfakes)
|
| 319 |
+
others without their consent;
|
| 320 |
+
|
| 321 |
+
8. For fully automated decision making that adversely impacts an
|
| 322 |
+
individual's legal rights or otherwise creates or modifies a
|
| 323 |
+
binding, enforceable obligation;
|
| 324 |
+
|
| 325 |
+
9. For any use intended to or which has the effect of
|
| 326 |
+
discriminating against or Harming individuals or groups based
|
| 327 |
+
on online or offline social behavior or known or predicted
|
| 328 |
+
personal or personality characteristics;
|
| 329 |
+
|
| 330 |
+
10. To exploit any of the vulnerabilities of a specific group of
|
| 331 |
+
persons based on their age, social, physical or mental
|
| 332 |
+
characteristics, in order to materially distort the behavior
|
| 333 |
+
of a person pertaining to that group in a manner that causes
|
| 334 |
+
or is likely to cause that person or another person physical
|
| 335 |
+
or psychological Harm;
|
| 336 |
+
|
| 337 |
+
11. For any use intended to or which has the effect of
|
| 338 |
+
discriminating against individuals or groups based on legally
|
| 339 |
+
protected characteristics or categories;
|
| 340 |
+
|
| 341 |
+
12. To provide medical advice and medical results interpretation;
|
| 342 |
+
|
| 343 |
+
13. To generate or disseminate information for the purpose to be
|
| 344 |
+
used for administration of justice, law enforcement,
|
| 345 |
+
immigration or asylum processes, such as predicting an
|
| 346 |
+
individual will commit fraud/crime commitment (e.g. by text
|
| 347 |
+
profiling, drawing causal relationships between assertions
|
| 348 |
+
made in documents, indiscriminate and arbitrarily-targeted use);
|
| 349 |
+
|
| 350 |
+
14. To generate and/or disseminate malware (including – but not
|
| 351 |
+
limited to – ransomware) or any other content to be used for
|
| 352 |
+
the purpose of harming electronic systems;
|
| 353 |
+
|
| 354 |
+
15. To engage in, promote, incite, or facilitate discrimination
|
| 355 |
+
or other unlawful or harmful conduct in the provision of
|
| 356 |
+
employment, employment benefits, credit, housing, or other
|
| 357 |
+
essential goods and services;
|
| 358 |
+
|
| 359 |
+
16. To engage in, promote, incite, or facilitate the harassment,
|
| 360 |
+
abuse, threatening, or bullying of individuals or groups of
|
| 361 |
+
individuals;
|
| 362 |
+
|
| 363 |
+
17. For military, warfare, nuclear industries or applications,
|
| 364 |
+
weapons development, or any use in connection with activities
|
| 365 |
+
that may cause death, personal injury, or severe physical or
|
| 366 |
+
environmental damage;
|
| 367 |
+
|
| 368 |
+
18. For commercial use only: To train, improve, or fine-tune any
|
| 369 |
+
other machine learning model, artificial intelligence system,
|
| 370 |
+
or competing model, except for Derivatives of LTX-2 as
|
| 371 |
+
expressly permitted under this Agreement;
|
| 372 |
+
|
| 373 |
+
19. To circumvent, disable, or interfere with any technical
|
| 374 |
+
limitations, safety features, content filters, or use
|
| 375 |
+
restrictions implemented in LTX-2 by Licensor;
|
| 376 |
+
|
| 377 |
+
20. To use LTX-2 or Derivatives of LTX-2 in any product, service,
|
| 378 |
+
or application that directly competes with Licensor's
|
| 379 |
+
commercial products or services, or is designed to replace or
|
| 380 |
+
substitute Licensor's offerings in the market, without
|
| 381 |
+
obtaining a separate commercial license from Licensor.
|
params/LTX2/ltx-2.3-22b-dev_audio_vae.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7711812d9387ce940c2cd5d65a4f5a1e57bf6087cf618d89b56dd3c722c4dea
|
| 3 |
+
size 364853140
|