VimooAI commited on
Commit
a3f2a26
·
1 Parent(s): 6f9f1fe

Clear model repository

Browse files
.gitattributes DELETED
@@ -1,4 +0,0 @@
1
- *.safetensors filter=lfs diff=lfs merge=lfs -text
2
- *.json text eol=lf
3
- *.md text eol=lf
4
- assets/** filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
LICENSE DELETED
@@ -1,202 +0,0 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS
178
-
179
- APPENDIX: How to apply the Apache License to your work.
180
-
181
- To apply the Apache License to your work, attach the following
182
- boilerplate notice, with the fields enclosed by brackets "[]"
183
- replaced with your own identifying information. (Don't include
184
- the brackets!) The text should be enclosed in the appropriate
185
- comment syntax for the file format. We also recommend that a
186
- file or class name and description of purpose be included on the
187
- same "printed page" as the copyright notice for easier
188
- identification within third-party archives.
189
-
190
- Copyright [yyyy] [name of copyright owner]
191
-
192
- Licensed under the Apache License, Version 2.0 (the "License");
193
- you may not use this file except in compliance with the License.
194
- You may obtain a copy of the License at
195
-
196
- http://www.apache.org/licenses/LICENSE-2.0
197
-
198
- Unless required by applicable law or agreed to in writing, software
199
- distributed under the License is distributed on an "AS IS" BASIS,
200
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
- See the License for the specific language governing permissions and
202
- limitations under the License.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,357 +0,0 @@
1
- ---
2
- license: apache-2.0
3
- library_name: diffusers
4
- pipeline_tag: text-to-video
5
- tags:
6
- - vimoo
7
- - image-to-video
8
- ---
9
-
10
- <h1 style="display: flex; align-items: center; gap: 8px;">
11
- <img src="https://huggingface.co/Vimoo-AI/Vimoo-1.0/resolve/main/assets/vimoo-logo.svg" alt="Vimoo Logo" width="32" height="32" style="display: inline-block; vertical-align: middle; margin: 0; flex-shrink: 0;">
12
- <span>Vimoo-1.0</span>
13
- </h1>
14
-
15
- [![Website](https://img.shields.io/badge/Website-Vimoo-181717?logo=google-chrome)](https://vimoo.ai)
16
- [![Hugging Face](https://img.shields.io/badge/HuggingFace-Vimoo--AI-orange?logo=huggingface)](https://huggingface.co/Vimoo-AI)
17
- [![Vimoo-1.0](https://img.shields.io/badge/Vimoo--1.0-Repo-blue?logo=github)](https://github.com/Vimoo-AI/Vimoo-1.0)
18
- [![ComfyUI-Vimoo](https://img.shields.io/badge/ComfyUI--Vimoo-Repo-blue?logo=github)](https://github.com/Vimoo-AI/ComfyUI-Vimoo)
19
- [![Vimoo-1.0-MLX](https://img.shields.io/badge/Vimoo--1.0--MLX-Repo-blue?logo=github)](https://github.com/Vimoo-AI/Vimoo-1.0-MLX)
20
- [![Paper](https://img.shields.io/badge/Paper-arXiv-B31B1B?logo=arxiv)](https://arxiv.org/abs/TBD)
21
-
22
- Vimoo-1.0 generates video from text (T2V) or from a reference image and text (I2V), with a separate ≈11.7B model for each task. It is the highest-quality model in the Vimoo 1.0 family.
23
-
24
- - **Diffusers Pipeline**: [Quick Start](#🚀-quick-start) · [Vimoo-1.0](https://github.com/Vimoo-AI/Vimoo-1.0)
25
- - **ComfyUI Workflows**: [ComfyUI-Vimoo](https://github.com/Vimoo-AI/ComfyUI-Vimoo) · [ComfyUI Weights](https://huggingface.co/Vimoo-AI/Vimoo-1.0-ComfyUI) · [Lite ComfyUI Weights](https://huggingface.co/Vimoo-AI/Vimoo-1.0-Lite-ComfyUI)
26
- - **MLX (Apple Silicon)**: [Vimoo-1.0-MLX](https://github.com/Vimoo-AI/Vimoo-1.0-MLX) · [MLX Weights](https://huggingface.co/Vimoo-AI/Vimoo-1.0-Lite-MLX)
27
-
28
- ## 🔥 News
29
-
30
- - **[2026-10]** Release Vimoo 1.0: T2V / I2V models, Diffusers inference examples and ComfyUI workflows.
31
-
32
- ## 🎬 Showcase
33
-
34
- <video controls width="100%" src="https://huggingface.co/Vimoo-AI/Vimoo-1.0/resolve/main/assets/showcase.mp4"></video>
35
-
36
-
37
- ## 🌐 Online API
38
-
39
- Use Vimoo 1.0 directly via API. https://vimoo.ai
40
-
41
- The model API includes three use cases: Vimoo 1.0, Vimoo 1.0 - Ecom, and Vimoo 1.0 - Lite.
42
-
43
- <table>
44
- <thead>
45
- <tr>
46
- <th align="left">Repository</th>
47
- <th align="left">Task</th>
48
- <th align="left">Use case</th>
49
- </tr>
50
- </thead>
51
- <tbody>
52
- <tr>
53
- <td rowspan="2">Vimoo-1.0</td>
54
- <td>Text-to-Video</td>
55
- <td>Turn text prompts into videos. Describe scenes, stories, camera moves, and mood; the API returns cinematic, story-driven video. Supports 5-second clips at 720P.</td>
56
- </tr>
57
- <tr>
58
- <td>Image-to-Video</td>
59
- <td>Animate images with reference images and text prompts. Describe emotions, storylines, and camera moves; the API returns video that keeps the reference image's look and subject consistency.</td>
60
- </tr>
61
- <tr>
62
- <td>Vimoo-1.0-Ecom</td>
63
- <td>E-Commerce Video</td>
64
- <td>Create e-commerce videos from product reference images. Combine 1–9 images with optional titles, descriptions, and selling points to make 20-second, 9:16, 720P videos for product showcases and promotions.</td>
65
- </tr>
66
- <tr>
67
- <td>Vimoo-1.0-Lite</td>
68
- <td>Text/Image-to-Video</td>
69
- <td>Generates videos from text prompts, with an optional first-frame image. It prioritizes speed and lower resource usage, outputting 5-second 720p video.</td>
70
- </tr>
71
- </tbody>
72
- </table>
73
-
74
- ## 🗺️ System Overview
75
-
76
- ![Vimoo system overview: Vimoo-PE structures the user prompt, Vimoo-Base generates 720p video, and Vimoo-Enhancer produces 1080p video.](assets/vimoo-system-overview.png)
77
-
78
- The complete Vimoo system consists of the following three modules:
79
-
80
- - **Vimoo-PE:** We developed a dedicated system that deeply interprets and refines incoming multimodal instructions, then transforms them into a format that Vimoo can easily process for generation. Vimoo-PE plays a crucial role in determining the quality of the final output; we highly recommend integrating it into your generation pipeline—or following the '[Prompt Guide](https://vimoo.ai/vimoo-docs/api#prompts)' to build your own prompt system.
81
- - **Vimoo-Base:** Generates 720p video based on the Vimoo-PE output.
82
- - **Vimoo-Enhancer:** Feeds the 720p video to regenerate the output at 1080p resolution. It combines the resolution and clarity enhancement associated with generative repair of defects in appearance and motion, enabling it to produce high-resolution outputs with more accurate details and greater visual fidelity.
83
-
84
- To help the community deploy Vimoo correctly, we provide three approaches.
85
-
86
- - **Open Platform API:** Since Vimoo consists of three modules: Vimoo-PE, Vimoo-Base, and Vimoo-Enhancer, we offer the [Open Platform API](https://vimoo.ai/) to support full end-to-end invocation of the complete pipeline, while the Enhancer is optional.
87
- - **OpenSource:** We have open-sourced the Vimoo-Base model to enable validation of 720p output. For better results, you can refer to the '[Prompt Guide](https://vimoo.ai/vimoo-docs/api#prompts)' section, which provides a detailed tutorial to help the community develop their own prompting systems. You may also further call the standalone Enhancer API to obtain high-definition 1080P results.
88
- - **Run Locally:** We provide locally deployable models, including ComfyUI and MLX versions, to support running Vimoo-Base on lower-end devices. Here too, the '[Prompt Guide](https://vimoo.ai/vimoo-docs/api#prompts)' section is essential.
89
-
90
- In addition, we provide an e-commerce video generation API, specifically designed for product and advertising video generation. It follows the same three-stage pipeline and outputs a 20-second story-driven e-commerce video.
91
-
92
- ## 📦 Model Zoo
93
-
94
- Vimoo 1.0 comes in two models, Vimoo 1.0 and Vimoo 1.0 - Lite. Each Hugging Face repository packages one of them for one runtime:
95
-
96
- <table>
97
- <thead>
98
- <tr>
99
- <th align="left">Model</th>
100
- <th align="left">Hugging Face</th>
101
- <th align="left">Inference code</th>
102
- <th align="left">Description</th>
103
- </tr>
104
- </thead>
105
- <tbody>
106
- <tr>
107
- <td rowspan="2"><strong>Vimoo 1.0</strong><br>≈11.7B per model</td>
108
- <td><a href="https://huggingface.co/Vimoo-AI/Vimoo-1.0"><img src="https://img.shields.io/badge/-Vimoo--1.0-f6f8fa?logo=huggingface&logoColor=FF9D00&labelColor=f6f8fa" alt="Vimoo-1.0"></a></td>
109
- <td><a href="https://github.com/Vimoo-AI/Vimoo-1.0"><img src="https://img.shields.io/badge/-Vimoo--1.0-f6f8fa?logo=github&logoColor=181717&labelColor=f6f8fa" alt="Vimoo-1.0"></a></td>
110
- <td>T2V and I2V for the Vimoo Diffusers fork</td>
111
- </tr>
112
- <tr>
113
- <td><a href="https://huggingface.co/Vimoo-AI/Vimoo-1.0-ComfyUI"><img src="https://img.shields.io/badge/-Vimoo--1.0--ComfyUI-f6f8fa?logo=huggingface&logoColor=FF9D00&labelColor=f6f8fa" alt="Vimoo-1.0-ComfyUI"></a></td>
114
- <td><a href="https://github.com/Vimoo-AI/ComfyUI-Vimoo"><img src="https://img.shields.io/badge/-ComfyUI--Vimoo-f6f8fa?logo=github&logoColor=181717&labelColor=f6f8fa" alt="ComfyUI-Vimoo"></a></td>
115
- <td>T2V, I2V and their Distilled versions for ComfyUI</td>
116
- </tr>
117
- <tr>
118
- <td rowspan="3"><strong>Vimoo 1.0 - Lite</strong><br>≈9.5B</td>
119
- <td><a href="https://huggingface.co/Vimoo-AI/Vimoo-1.0-Lite"><img src="https://img.shields.io/badge/-Vimoo--1.0--Lite-f6f8fa?logo=huggingface&logoColor=FF9D00&labelColor=f6f8fa" alt="Vimoo-1.0-Lite"></a></td>
120
- <td><a href="https://github.com/Vimoo-AI/Vimoo-1.0"><img src="https://img.shields.io/badge/-Vimoo--1.0-f6f8fa?logo=github&logoColor=181717&labelColor=f6f8fa" alt="Vimoo-1.0"></a></td>
121
- <td>TI2V for the Vimoo Diffusers fork</td>
122
- </tr>
123
- <tr>
124
- <td><a href="https://huggingface.co/Vimoo-AI/Vimoo-1.0-Lite-ComfyUI"><img src="https://img.shields.io/badge/-Vimoo--1.0--Lite--ComfyUI-f6f8fa?logo=huggingface&logoColor=FF9D00&labelColor=f6f8fa" alt="Vimoo-1.0-Lite-ComfyUI"></a></td>
125
- <td><a href="https://github.com/Vimoo-AI/ComfyUI-Vimoo"><img src="https://img.shields.io/badge/-ComfyUI--Vimoo-f6f8fa?logo=github&logoColor=181717&labelColor=f6f8fa" alt="ComfyUI-Vimoo"></a></td>
126
- <td>TI2V and TI2V Distilled for ComfyUI</td>
127
- </tr>
128
- <tr>
129
- <td><a href="https://huggingface.co/Vimoo-AI/Vimoo-1.0-Lite-MLX"><img src="https://img.shields.io/badge/-Vimoo--1.0--Lite--MLX-f6f8fa?logo=huggingface&logoColor=FF9D00&labelColor=f6f8fa" alt="Vimoo-1.0-Lite-MLX"></a></td>
130
- <td><a href="https://github.com/Vimoo-AI/Vimoo-1.0-MLX"><img src="https://img.shields.io/badge/-Vimoo--1.0--MLX-f6f8fa?logo=github&logoColor=181717&labelColor=f6f8fa" alt="Vimoo-1.0-MLX"></a></td>
131
- <td>TI2V Distilled for MLX on Apple Silicon</td>
132
- </tr>
133
- </tbody>
134
- </table>
135
-
136
- Each ComfyUI repository bundles its checkpoints, distilled LoRA adapters, shared encoders and VAE. Distilled models are available only for ComfyUI and MLX. Vimoo-1.0 T2V Distilled and I2V Distilled use different base checkpoints from Vimoo-1.0 T2V and I2V; download each task's matching base and adapter listed in the [ComfyUI guide](https://github.com/Vimoo-AI/ComfyUI-Vimoo#download-weights). The Vimoo-1.0 T2V Distilled, Vimoo-1.0 I2V Distilled and Vimoo-1.0-Lite TI2V Distilled adapters are not interchangeable. Parameters count the video denoiser only.
137
-
138
- ## 🚀 Quick Start
139
-
140
- ### Installation
141
-
142
- Use the [Vimoo inference code](https://github.com/Vimoo-AI/Vimoo-1.0) on Linux with an NVIDIA CUDA GPU:
143
-
144
- ```bash
145
- git clone https://github.com/Vimoo-AI/Vimoo-1.0.git
146
- cd Vimoo-1.0
147
- python -m pip install -r requirements.txt
148
- python -m pip install "git+https://github.com/Vimoo-AI/diffusers.git"
149
- ```
150
-
151
- See the [installation guide](https://github.com/Vimoo-AI/Vimoo-1.0#installation) for environment requirements.
152
-
153
- The T2V and I2V examples default to PyTorch SDPA, with no additional attention package. To select `--attention-backend fa2`, `fa3`, `fa4` or `sage`, first install that backend's dependencies from the [runtime options](https://github.com/Vimoo-AI/Vimoo-1.0#-runtime-options).
154
-
155
- ### Download weights
156
-
157
- ```bash
158
- hf download Vimoo-AI/Vimoo-1.0 --local-dir ./models/Vimoo-1.0
159
- ```
160
-
161
- To download one task only, add `--exclude "transformer_i2v/*"` for T2V or `--exclude "transformer/*"` for I2V. On the first run, Diffusers downloads Qwen2.5-VL-7B-Instruct, the Wan 2.2 VAE and, for I2V, SigLIP from Hugging Face at the revisions recorded in `modular_model_index.json`. For offline use, run once with network access, then set `HF_HUB_OFFLINE=1`.
162
-
163
- ### Generate video
164
-
165
- Run from the inference repository root, replacing the image with your own file:
166
-
167
- ```bash
168
- python examples/vimoo_1_0_t2v.py --model ./models/Vimoo-1.0 --prompt 'A young woman in a red coat walks through a snowy city street and looks up at the falling snow.' --output t2v.mp4
169
- python examples/vimoo_1_0_i2v.py --model ./models/Vimoo-1.0 --prompt 'The dog shakes its whole body, then sits back down in the same spot. The camera remains fixed throughout.' --image dog.png --output i2v.mp4
170
- ```
171
-
172
- The examples output 1280 × 720, 121 frames at 24 fps.
173
-
174
- ## 📝 Prompting Guide
175
-
176
- **Use English prompts.** The current open-source models have been validated only with English prompts. Generation quality and prompt adherence in other languages have not been validated. We recommend translating prompts into English before generation.
177
-
178
- **Write clear, detailed prompts.** Specific descriptions of the subject, scene, action sequence, and camera movement can help produce results that better match your intent than short, vague prompts. See the [Prompt Guide](https://vimoo.ai/vimoo-docs/api#prompts) for structure and examples, and focus on relevant, consistent visual details.
179
-
180
- The Prompt Guide describes automatic prompt enhancement in the hosted service. Local examples use your input prompt directly; follow the guide's writing structure and examples when preparing prompts.
181
-
182
- ## 📖 Technical Architecture
183
-
184
- Vimoo 1.0 uses a 40-block dual-stream MMDiT backbone. Joint attention connects the video and conditioning streams, combining prompt semantics, in-video text and optional reference-image features. A Wan 2.2 VAE encodes and decodes the video, while flow matching generates video latents.
185
-
186
- ![Vimoo base architecture: text and optional image encoders condition 40 dual-stream MMDiT blocks; the VAE decodes the sampled video latents.](assets/vimoo-architecture.png)
187
-
188
- Each Vimoo-1.0 Transformer has ≈11.7B denoiser parameters, excluding encoders and the VAE. See the [Vimoo 1.0 README](https://github.com/Vimoo-AI/Vimoo-1.0#-technical-architecture) for the model architecture and inference components.
189
-
190
- ### Highlights
191
-
192
- - **Prompt adherence:** a dedicated text encoder turns prompts into precise generation conditions. An optional prompt enhancer can add visual, cinematic, temporal, and contextual detail, or be disabled to preserve the original wording.
193
- - **Cinematic visual quality:** training on carefully curated aesthetic data, with detailed annotations for lighting, composition, contrast, color grading, and more, enables precise control over cinematic styles and a wide range of aesthetic preferences.
194
- - **Advanced motion generation:** a larger and more diverse training corpus improves generalization across motion, semantics, and visual aesthetics, delivering leading performance among open-source and proprietary video generation models.
195
- - **E-commerce video generation:** by faithfully highlighting product selling points and features while preserving fine-grained product details, it ensures strong product consistency across frames, delivering reliable and visually coherent results that meet the practical demands of e-commerce content creation.
196
- - **Efficient high-definition generation:** the lightweight variant uses 32×32×4 spatiotemporal compression and supports T2V and I2V at 720p and 24 fps.
197
-
198
- ## 📈 Evaluation & Benchmarks
199
-
200
- ### Generation Quality
201
-
202
- **Vimoo-VBench** is a human evaluation developed by the Vimoo team, with 500 prompts covering advertising, social media, storytelling, education and entertainment. T2V is evaluated for instruction following, frame aesthetics, visual quality and motion; I2V also measures image-video consistency.
203
-
204
- The tables compare model families on this evaluation set. Results for individual checkpoints depend on their weights and generation settings.
205
-
206
- **T2V human evaluation (%)**
207
-
208
- <table>
209
- <thead>
210
- <tr>
211
- <th rowspan="2" align="left">Metric</th>
212
- <th colspan="3" align="center">Other models</th>
213
- <th colspan="2" align="center">Vimoo</th>
214
- </tr>
215
- <tr>
216
- <th align="center">Wan 2.2</th>
217
- <th align="center">LTX 2.5</th>
218
- <th align="center">Veo 3.1</th>
219
- <th align="center">Vimoo 1.0 - Lite</th>
220
- <th align="center">Vimoo 1.0</th>
221
- </tr>
222
- </thead>
223
- <tbody>
224
- <tr>
225
- <td><strong>Overall</strong></td>
226
- <td align="center">23%</td>
227
- <td align="center">27%</td>
228
- <td align="center">34%</td>
229
- <td align="center"><strong>32%</strong></td>
230
- <td align="center"><strong>35%</strong></td>
231
- </tr>
232
- <tr>
233
- <td>Instruction following</td>
234
- <td align="center">58%</td>
235
- <td align="center">60%</td>
236
- <td align="center">85%</td>
237
- <td align="center"><strong>71%</strong></td>
238
- <td align="center"><strong>83%</strong></td>
239
- </tr>
240
- <tr>
241
- <td>Frame aesthetics</td>
242
- <td align="center">78%</td>
243
- <td align="center">77%</td>
244
- <td align="center">82%</td>
245
- <td align="center"><strong>87%</strong></td>
246
- <td align="center"><strong>91%</strong></td>
247
- </tr>
248
- <tr>
249
- <td>Visual quality</td>
250
- <td align="center">81%</td>
251
- <td align="center">82%</td>
252
- <td align="center">88%</td>
253
- <td align="center"><strong>84%</strong></td>
254
- <td align="center"><strong>88%</strong></td>
255
- </tr>
256
- <tr>
257
- <td>Motion effects</td>
258
- <td align="center">52%</td>
259
- <td align="center">55%</td>
260
- <td align="center">69%</td>
261
- <td align="center"><strong>51%</strong></td>
262
- <td align="center"><strong>53%</strong></td>
263
- </tr>
264
- </tbody>
265
- </table>
266
-
267
- **I2V human evaluation (%)**
268
-
269
- <table>
270
- <thead>
271
- <tr>
272
- <th rowspan="2" align="left">Metric</th>
273
- <th colspan="3" align="center">Other models</th>
274
- <th colspan="2" align="center">Vimoo</th>
275
- </tr>
276
- <tr>
277
- <th align="center">Wan 2.2</th>
278
- <th align="center">LTX 2.5</th>
279
- <th align="center">Veo 3.1</th>
280
- <th align="center">Vimoo 1.0 - Lite</th>
281
- <th align="center">Vimoo 1.0</th>
282
- </tr>
283
- </thead>
284
- <tbody>
285
- <tr>
286
- <td><strong>Overall</strong></td>
287
- <td align="center">30%</td>
288
- <td align="center">35%</td>
289
- <td align="center">44%</td>
290
- <td align="center"><strong>41%</strong></td>
291
- <td align="center"><strong>47%</strong></td>
292
- </tr>
293
- <tr>
294
- <td>Image-video consistency</td>
295
- <td align="center">70%</td>
296
- <td align="center">65%</td>
297
- <td align="center">84%</td>
298
- <td align="center"><strong>80%</strong></td>
299
- <td align="center"><strong>89%</strong></td>
300
- </tr>
301
- <tr>
302
- <td>Instruction following</td>
303
- <td align="center">56%</td>
304
- <td align="center">64%</td>
305
- <td align="center">88%</td>
306
- <td align="center"><strong>88%</strong></td>
307
- <td align="center"><strong>90%</strong></td>
308
- </tr>
309
- <tr>
310
- <td>Frame aesthetics</td>
311
- <td align="center">80%</td>
312
- <td align="center">77%</td>
313
- <td align="center">84%</td>
314
- <td align="center"><strong>81%</strong></td>
315
- <td align="center"><strong>89%</strong></td>
316
- </tr>
317
- <tr>
318
- <td>Visual quality</td>
319
- <td align="center">83%</td>
320
- <td align="center">86%</td>
321
- <td align="center">93%</td>
322
- <td align="center"><strong>89%</strong></td>
323
- <td align="center"><strong>91%</strong></td>
324
- </tr>
325
- <tr>
326
- <td>Motion effects</td>
327
- <td align="center">61%</td>
328
- <td align="center">65%</td>
329
- <td align="center">77%</td>
330
- <td align="center"><strong>59%</strong></td>
331
- <td align="center"><strong>63%</strong></td>
332
- </tr>
333
- </tbody>
334
- </table>
335
-
336
- ## 📁 Model Files
337
-
338
- | Path | Purpose |
339
- | --- | --- |
340
- | `transformer/` | Text-to-video model |
341
- | `transformer_i2v/` | Image-to-video model |
342
-
343
- [modular_model_index.json](modular_model_index.json) defines the required components.
344
-
345
- ### Component provenance
346
-
347
- The public model index records component locations and upstream revisions. Text conditioning uses [Qwen2.5-VL](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct) and a Glyph encoder; image conditioning uses [SigLIP](https://huggingface.co/google/siglip-so400m-patch14-384), and video decoding uses the [Wan VAE](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers). Keep the bundled Glyph encoder and tokenizer with the model.
348
-
349
- Glyph identities are recorded in [glyph_source.json](glyph_source.json); the public preparation helper is [prepare_glyph_encoder.py](prepare_glyph_encoder.py).
350
-
351
- ## 📜 License
352
-
353
- Vimoo-authored code and Vimoo model weights in this repository are provided under the [Apache License 2.0](https://huggingface.co/Vimoo-AI/Vimoo-1.0/blob/main/LICENSE).
354
-
355
- - Commercial use, modification, and redistribution are permitted under the terms of the license.
356
- - Redistribution must include a copy of the license, retain applicable copyright and attribution notices, and identify modified files.
357
- - Attribution and third-party component notices are provided in [THIRD_PARTY_NOTICES.md](https://huggingface.co/Vimoo-AI/Vimoo-1.0/blob/main/THIRD_PARTY_NOTICES.md). Third-party components remain subject to their own licenses.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
THIRD_PARTY_NOTICES.md DELETED
@@ -1,13 +0,0 @@
1
- # Third-party components
2
-
3
- Vimoo uses the following upstream software and model components. Their copyright notices and license terms continue to apply.
4
-
5
- | Component | Source |
6
- |---|---|
7
- | Diffusers runtime | [Hugging Face Diffusers](https://github.com/huggingface/diffusers), [Apache-2.0](https://github.com/huggingface/diffusers/blob/main/LICENSE) |
8
- | Qwen2.5-VL text tower and tokenizer | [Qwen/Qwen2.5-VL-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct), text tower and tokenizer |
9
- | Glyph-ByT5 and tokenizer | [nlpcvcode/Glyph-SDXL-v2](https://huggingface.co/nlpcvcode/Glyph-SDXL-v2), fine-tuned encoder weights and font/color vocabulary; base config and tokenizer from [google/byt5-small](https://huggingface.co/google/byt5-small) |
10
- | VAE | [Wan2.2-TI2V-5B-Diffusers](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers), `vae` subfolder |
11
- | SigLIP vision encoder | [google/siglip-so400m-patch14-384](https://huggingface.co/google/siglip-so400m-patch14-384), vision tower and image processor |
12
-
13
- Refer to the upstream repositories, model cards, and license files for the terms governing each component. The [Vimoo license](https://huggingface.co/Vimoo-AI/Vimoo-1.0/blob/main/LICENSE) does not replace those terms.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
glyph_source.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "weights": {
3
- "repo": "nlpcvcode/Glyph-SDXL-v2",
4
- "revision": "a5aac7f492e85819208e7ed14aa4402d9c0b1b65",
5
- "file": "checkpoints/byt5_model.pt"
6
- },
7
- "config_and_base_tokenizer": {
8
- "repo": "google/byt5-small",
9
- "revision": "68377bdc18a2ffec8a0533fef03b1c513a4dd49d"
10
- },
11
- "vocab_size": 1510,
12
- "conversion": "Prefix T5Stack keys with encoder.; share embedding without changing values",
13
- "tokenizer_extensions": {
14
- "repo": "nlpcvcode/Glyph-SDXL-v2",
15
- "revision": "a5aac7f492e85819208e7ed14aa4402d9c0b1b65",
16
- "files": [
17
- "assets/color_idx.json",
18
- "assets/multilingual_10-lang_idx.json"
19
- ],
20
- "order": "125 base extra IDs, followed by colors, then multilingual fonts in JSON order"
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
guider/guider_config.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "_class_name": "ClassifierFreeGuidance",
3
- "_diffusers_version": "0.41.0.dev0",
4
- "guidance_scale": 4.5,
5
- "guidance_rescale": 1.2,
6
- "use_original_formulation": false,
7
- "start": 0.0,
8
- "stop": 1.0
9
- }
 
 
 
 
 
 
 
 
 
 
guider_i2v/guider_config.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "_class_name": "ClassifierFreeGuidance",
3
- "_diffusers_version": "0.41.0.dev0",
4
- "guidance_scale": 3.0,
5
- "guidance_rescale": 0.5,
6
- "use_original_formulation": false,
7
- "start": 0.0,
8
- "stop": 1.0
9
- }
 
 
 
 
 
 
 
 
 
 
inference_defaults.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "format": "vimoo-inference-defaults-v1",
3
- "task": "t2v",
4
- "model_version": "Vimoo-1.0",
5
- "num_inference_steps": 50,
6
- "solver": "unipc",
7
- "flow_shift": 12.0,
8
- "guidance_scale": 4.5,
9
- "guidance_rescale": 1.2,
10
- "seed": 1234,
11
- "width": 1280,
12
- "height": 720,
13
- "num_frames": 121,
14
- "fps": 24,
15
- "initial_noise": {
16
- "device": "cpu",
17
- "dtype": "bfloat16",
18
- "layout": "BCFHW"
19
- },
20
- "temporal_rope_ref_fps": 16.0,
21
- "vae_tiling": false,
22
- "block_modulation_rank": 1536,
23
- "block_modulation_precision": "bf16_expand_fp32_bias"
24
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
modular_model_index.json DELETED
@@ -1,241 +0,0 @@
1
- {
2
- "_class_name": "VimooModularPipeline",
3
- "_blocks_class_name": "VimooBlocks",
4
- "_diffusers_version": "0.41.0.dev0",
5
- "_vimoo_workflow": "t2v",
6
- "_upstream_sources": {
7
- "text_encoder": {
8
- "repo": "Qwen/Qwen2.5-VL-7B-Instruct",
9
- "revision": "cc594898137f460bfe9f0759e9844b3ce807cfb5",
10
- "component": "text tower"
11
- },
12
- "tokenizer": {
13
- "repo": "Qwen/Qwen2.5-VL-7B-Instruct",
14
- "revision": "cc594898137f460bfe9f0759e9844b3ce807cfb5"
15
- },
16
- "text_encoder_2": {
17
- "repo": "nlpcvcode/Glyph-SDXL-v2",
18
- "revision": "a5aac7f492e85819208e7ed14aa4402d9c0b1b65",
19
- "file": "checkpoints/byt5_model.pt",
20
- "config_source": {
21
- "repo": "google/byt5-small",
22
- "revision": "68377bdc18a2ffec8a0533fef03b1c513a4dd49d"
23
- },
24
- "local_component": "text_encoder_2",
25
- "conversion": "Original T5Stack state dict converted to T5EncoderModel; tensor values unchanged"
26
- },
27
- "tokenizer_2": {
28
- "repo": "google/byt5-small",
29
- "revision": "68377bdc18a2ffec8a0533fef03b1c513a4dd49d",
30
- "extensions": {
31
- "repo": "nlpcvcode/Glyph-SDXL-v2",
32
- "revision": "a5aac7f492e85819208e7ed14aa4402d9c0b1b65",
33
- "files": [
34
- "assets/color_idx.json",
35
- "assets/multilingual_10-lang_idx.json"
36
- ],
37
- "order": "125 base extra IDs, followed by colors, then multilingual fonts in JSON order"
38
- },
39
- "vocab_size": 1510,
40
- "local_component": "tokenizer_2",
41
- "conversion": "Base ByT5 tokenizer plus the original Glyph color/font special tokens"
42
- },
43
- "vae": {
44
- "repo": "Wan-AI/Wan2.2-TI2V-5B-Diffusers",
45
- "revision": "b8fff7315c768468a5333511427288870b2e9635",
46
- "subfolder": "vae"
47
- },
48
- "vision_encoder": {
49
- "repo": "google/siglip-so400m-patch14-384",
50
- "revision": "9fdffc58afc957d1a03a25b10dba0329ab15c2a3"
51
- },
52
- "image_processor": {
53
- "repo": "google/siglip-so400m-patch14-384",
54
- "revision": "9fdffc58afc957d1a03a25b10dba0329ab15c2a3"
55
- }
56
- },
57
- "transformer": [
58
- "diffusers",
59
- "VimooTransformer3DModel",
60
- {
61
- "pretrained_model_name_or_path": ".",
62
- "revision": null,
63
- "subfolder": "transformer",
64
- "type_hint": [
65
- "diffusers",
66
- "VimooTransformer3DModel"
67
- ],
68
- "variant": null
69
- }
70
- ],
71
- "transformer_i2v": [
72
- "diffusers",
73
- "VimooTransformer3DModel",
74
- {
75
- "pretrained_model_name_or_path": ".",
76
- "revision": null,
77
- "subfolder": "transformer_i2v",
78
- "type_hint": [
79
- "diffusers",
80
- "VimooTransformer3DModel"
81
- ],
82
- "variant": null
83
- }
84
- ],
85
- "scheduler": [
86
- "diffusers",
87
- "VimooUniPCMultistepScheduler",
88
- {
89
- "pretrained_model_name_or_path": ".",
90
- "revision": null,
91
- "subfolder": "scheduler",
92
- "type_hint": [
93
- "diffusers",
94
- "VimooUniPCMultistepScheduler"
95
- ],
96
- "variant": null
97
- }
98
- ],
99
- "scheduler_i2v": [
100
- "diffusers",
101
- "VimooI2VFlowMatchEulerDiscreteScheduler",
102
- {
103
- "pretrained_model_name_or_path": ".",
104
- "revision": null,
105
- "subfolder": "scheduler_i2v",
106
- "type_hint": [
107
- "diffusers",
108
- "VimooI2VFlowMatchEulerDiscreteScheduler"
109
- ],
110
- "variant": null
111
- }
112
- ],
113
- "guider_i2v": [
114
- "diffusers",
115
- "ClassifierFreeGuidance",
116
- {
117
- "pretrained_model_name_or_path": ".",
118
- "revision": null,
119
- "subfolder": "guider_i2v",
120
- "type_hint": [
121
- "diffusers",
122
- "ClassifierFreeGuidance"
123
- ],
124
- "variant": null
125
- }
126
- ],
127
- "text_encoder": [
128
- "transformers",
129
- "Qwen2_5_VLTextModel",
130
- {
131
- "pretrained_model_name_or_path": "Qwen/Qwen2.5-VL-7B-Instruct",
132
- "revision": "cc594898137f460bfe9f0759e9844b3ce807cfb5",
133
- "subfolder": "",
134
- "type_hint": [
135
- "transformers",
136
- "Qwen2_5_VLTextModel"
137
- ],
138
- "variant": null
139
- }
140
- ],
141
- "tokenizer": [
142
- "transformers",
143
- "Qwen2TokenizerFast",
144
- {
145
- "pretrained_model_name_or_path": "Qwen/Qwen2.5-VL-7B-Instruct",
146
- "revision": "cc594898137f460bfe9f0759e9844b3ce807cfb5",
147
- "subfolder": "",
148
- "type_hint": [
149
- "transformers",
150
- "Qwen2TokenizerFast"
151
- ],
152
- "variant": null
153
- }
154
- ],
155
- "text_encoder_2": [
156
- "transformers",
157
- "T5EncoderModel",
158
- {
159
- "pretrained_model_name_or_path": ".",
160
- "revision": null,
161
- "subfolder": "text_encoder_2",
162
- "type_hint": [
163
- "transformers",
164
- "T5EncoderModel"
165
- ],
166
- "variant": null
167
- }
168
- ],
169
- "tokenizer_2": [
170
- "transformers",
171
- "ByT5Tokenizer",
172
- {
173
- "pretrained_model_name_or_path": ".",
174
- "revision": null,
175
- "subfolder": "tokenizer_2",
176
- "type_hint": [
177
- "transformers",
178
- "ByT5Tokenizer"
179
- ],
180
- "variant": null
181
- }
182
- ],
183
- "vision_encoder": [
184
- "transformers",
185
- "SiglipVisionModel",
186
- {
187
- "pretrained_model_name_or_path": "google/siglip-so400m-patch14-384",
188
- "revision": "9fdffc58afc957d1a03a25b10dba0329ab15c2a3",
189
- "subfolder": "",
190
- "type_hint": [
191
- "transformers",
192
- "SiglipVisionModel"
193
- ],
194
- "variant": null
195
- }
196
- ],
197
- "image_processor": [
198
- "transformers",
199
- "SiglipImageProcessorPil",
200
- {
201
- "pretrained_model_name_or_path": "google/siglip-so400m-patch14-384",
202
- "revision": "9fdffc58afc957d1a03a25b10dba0329ab15c2a3",
203
- "subfolder": "",
204
- "type_hint": [
205
- "transformers",
206
- "SiglipImageProcessorPil"
207
- ],
208
- "variant": null
209
- }
210
- ],
211
- "vae": [
212
- "diffusers",
213
- "AutoencoderKLWan",
214
- {
215
- "pretrained_model_name_or_path": "Wan-AI/Wan2.2-TI2V-5B-Diffusers",
216
- "revision": "b8fff7315c768468a5333511427288870b2e9635",
217
- "subfolder": "vae",
218
- "type_hint": [
219
- "diffusers",
220
- "AutoencoderKLWan"
221
- ],
222
- "variant": null
223
- }
224
- ],
225
- "guider": [
226
- "diffusers",
227
- "ClassifierFreeGuidance",
228
- {
229
- "pretrained_model_name_or_path": ".",
230
- "revision": null,
231
- "subfolder": "guider",
232
- "type_hint": [
233
- "diffusers",
234
- "ClassifierFreeGuidance"
235
- ],
236
- "variant": null
237
- }
238
- ],
239
- "_vimoo_conditioning_profile": "standard_t2v",
240
- "_vimoo_conditioning_profile_i2v": "standard_i2v"
241
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
prepare_glyph_encoder.py DELETED
@@ -1,67 +0,0 @@
1
- #!/usr/bin/env python3
2
- """Convert the original Glyph-SDXL-v2 encoder into local Transformers components."""
3
-
4
- import argparse
5
- import json
6
- from pathlib import Path
7
-
8
-
9
- GLYPH_REPO = "nlpcvcode/Glyph-SDXL-v2"
10
- GLYPH_REVISION = "a5aac7f492e85819208e7ed14aa4402d9c0b1b65"
11
- BASE_REPO = "google/byt5-small"
12
- BASE_REVISION = "68377bdc18a2ffec8a0533fef03b1c513a4dd49d"
13
-
14
-
15
- def main():
16
- parser = argparse.ArgumentParser(description=__doc__)
17
- parser.add_argument("--output", required=True, type=Path)
18
- args = parser.parse_args()
19
-
20
- import torch
21
- from huggingface_hub import snapshot_download
22
- from transformers import ByT5Tokenizer, T5Config, T5EncoderModel
23
-
24
- source = Path(snapshot_download(
25
- GLYPH_REPO, revision=GLYPH_REVISION,
26
- allow_patterns=["checkpoints/byt5_model.pt", "assets/color_idx.json",
27
- "assets/multilingual_10-lang_idx.json"],
28
- ))
29
- tokenizer = ByT5Tokenizer.from_pretrained(BASE_REPO, revision=BASE_REVISION)
30
- colors = json.loads((source / "assets/color_idx.json").read_text())
31
- fonts = json.loads((source / "assets/multilingual_10-lang_idx.json").read_text())
32
- # Preserve the original Glyph loader's insertion order and token IDs.
33
- tokens = [f"<color-{i}>" for i in range(len(colors))]
34
- tokens += [f"<{code[:2]}-font-{index}>" for code, index in fonts.items()]
35
- tokenizer.add_tokens(tokens, special_tokens=True)
36
- state = torch.load(source / "checkpoints/byt5_model.pt", map_location="cpu", weights_only=True)
37
- if state["embed_tokens.weight"].shape[0] != len(tokenizer):
38
- raise ValueError("Glyph embedding size and reconstructed tokenizer do not match")
39
- config = T5Config.from_pretrained(BASE_REPO, revision=BASE_REVISION)
40
- config.vocab_size = len(tokenizer)
41
- config.is_encoder_decoder = False
42
- config.use_cache = False
43
- with torch.device("meta"):
44
- encoder = T5EncoderModel(config)
45
- converted = {f"encoder.{key}": value for key, value in state.items()}
46
- converted["shared.weight"] = state["embed_tokens.weight"]
47
- encoder.load_state_dict(converted, strict=True, assign=True)
48
- encoder.save_pretrained(args.output / "text_encoder_2", safe_serialization=True)
49
- tokenizer.save_pretrained(args.output / "tokenizer_2")
50
- provenance = {
51
- "weights": {"repo": GLYPH_REPO, "revision": GLYPH_REVISION,
52
- "file": "checkpoints/byt5_model.pt"},
53
- "config_and_base_tokenizer": {"repo": BASE_REPO, "revision": BASE_REVISION},
54
- "tokenizer_extensions": {
55
- "repo": GLYPH_REPO, "revision": GLYPH_REVISION,
56
- "files": ["assets/color_idx.json", "assets/multilingual_10-lang_idx.json"],
57
- "order": "125 base extra IDs, followed by colors, then multilingual fonts in JSON order",
58
- },
59
- "vocab_size": len(tokenizer),
60
- "conversion": "Prefix T5Stack keys with encoder.; share embedding without changing values",
61
- }
62
- (args.output / "glyph_source.json").write_text(json.dumps(provenance, indent=2) + "\n")
63
- print(f"Saved Glyph encoder and {len(tokenizer)}-token vocabulary to {args.output}")
64
-
65
-
66
- if __name__ == "__main__":
67
- main()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
scheduler/scheduler_config.json DELETED
@@ -1,33 +0,0 @@
1
- {
2
- "_class_name": "VimooUniPCMultistepScheduler",
3
- "_diffusers_version": "0.41.0.dev0",
4
- "beta_end": 0.02,
5
- "beta_schedule": "linear",
6
- "beta_start": 0.0001,
7
- "disable_corrector": [],
8
- "dynamic_thresholding_ratio": 0.995,
9
- "final_sigmas_type": "zero",
10
- "flow_shift": 12.0,
11
- "lower_order_final": true,
12
- "num_train_timesteps": 1000,
13
- "predict_x0": true,
14
- "prediction_type": "flow_prediction",
15
- "rescale_betas_zero_snr": false,
16
- "sample_max_value": 1.0,
17
- "shift_terminal": null,
18
- "sigma_max": null,
19
- "sigma_min": null,
20
- "solver_order": 2,
21
- "solver_p": null,
22
- "solver_type": "bh2",
23
- "steps_offset": 0,
24
- "thresholding": false,
25
- "time_shift_type": "exponential",
26
- "timestep_spacing": "linspace",
27
- "trained_betas": null,
28
- "use_beta_sigmas": false,
29
- "use_dynamic_shifting": false,
30
- "use_exponential_sigmas": false,
31
- "use_flow_sigmas": true,
32
- "use_karras_sigmas": false
33
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
scheduler_i2v/scheduler_config.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "_class_name": "VimooI2VFlowMatchEulerDiscreteScheduler",
3
- "_diffusers_version": "0.41.0.dev0",
4
- "num_train_timesteps": 1000,
5
- "shift": 6.0
6
- }
 
 
 
 
 
 
 
text_encoder_2/config.json DELETED
@@ -1,34 +0,0 @@
1
- {
2
- "architectures": [
3
- "T5EncoderModel"
4
- ],
5
- "classifier_dropout": 0.0,
6
- "d_ff": 3584,
7
- "d_kv": 64,
8
- "d_model": 1472,
9
- "decoder_start_token_id": 0,
10
- "dense_act_fn": "gelu_new",
11
- "dropout_rate": 0.1,
12
- "dtype": "float32",
13
- "eos_token_id": 1,
14
- "feed_forward_proj": "gated-gelu",
15
- "gradient_checkpointing": false,
16
- "initializer_factor": 1.0,
17
- "is_decoder": false,
18
- "is_encoder_decoder": false,
19
- "is_gated_act": true,
20
- "layer_norm_epsilon": 1e-06,
21
- "model_type": "t5",
22
- "num_decoder_layers": 4,
23
- "num_heads": 6,
24
- "num_layers": 12,
25
- "pad_token_id": 0,
26
- "relative_attention_max_distance": 128,
27
- "relative_attention_num_buckets": 32,
28
- "scale_decoder_outputs": false,
29
- "tie_word_embeddings": true,
30
- "tokenizer_class": "ByT5Tokenizer",
31
- "transformers_version": "5.16.1",
32
- "use_cache": false,
33
- "vocab_size": 1510
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
transformer/config.json DELETED
@@ -1,37 +0,0 @@
1
- {
2
- "_class_name": "VimooTransformer3DModel",
3
- "_diffusers_version": "0.41.0.dev0",
4
- "attention_projection_layout": "contiguous",
5
- "block_modulation_precision": "bf16_expand_fp32_bias",
6
- "block_modulation_rank": 1536,
7
- "byt5_states_dim": 1472,
8
- "heads_num": 24,
9
- "hidden_size": 3072,
10
- "in_channels": 48,
11
- "mlp_width_ratio": 4,
12
- "mm_double_blocks_depth": 40,
13
- "numerical_profile": "standard",
14
- "out_channels": 48,
15
- "patch_architecture": "direct",
16
- "patch_size": [
17
- 1,
18
- 1,
19
- 1
20
- ],
21
- "precision_policy": "bf16",
22
- "rope_dim_list": [
23
- 16,
24
- 56,
25
- 56
26
- ],
27
- "rope_spatial_interpolation_ramp": "yarn",
28
- "rope_spatial_interpolation_ref_area": 1600.0,
29
- "rope_spatial_interpolation_strength": 1.0,
30
- "rope_temporal_interpolation_mode": "multiply_reciprocal",
31
- "rope_temporal_interpolation_ref_fps": 16.0,
32
- "rope_theta": 256,
33
- "sampling_profile": null,
34
- "text_states_dim": 3584,
35
- "vision_num_semantic_tokens": 729,
36
- "vision_states_dim": 1152
37
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
transformer/diffusion_pytorch_model.safetensors.index.json DELETED
The diff for this file is too large to render. See raw diff
 
transformer_i2v/config.json DELETED
@@ -1,37 +0,0 @@
1
- {
2
- "_class_name": "VimooTransformer3DModel",
3
- "_diffusers_version": "0.41.0.dev0",
4
- "attention_projection_layout": "contiguous",
5
- "block_modulation_precision": "bf16_expand_fp32_bias",
6
- "block_modulation_rank": 1536,
7
- "byt5_states_dim": 1472,
8
- "heads_num": 24,
9
- "hidden_size": 3072,
10
- "in_channels": 48,
11
- "mlp_width_ratio": 4,
12
- "mm_double_blocks_depth": 40,
13
- "numerical_profile": "standard",
14
- "out_channels": 48,
15
- "patch_architecture": "direct",
16
- "patch_size": [
17
- 1,
18
- 1,
19
- 1
20
- ],
21
- "precision_policy": "bf16",
22
- "rope_dim_list": [
23
- 16,
24
- 56,
25
- 56
26
- ],
27
- "rope_spatial_interpolation_ramp": "yarn",
28
- "rope_spatial_interpolation_ref_area": 1600.0,
29
- "rope_spatial_interpolation_strength": 1.0,
30
- "rope_temporal_interpolation_mode": "multiply_reciprocal",
31
- "rope_temporal_interpolation_ref_fps": 16.0,
32
- "rope_theta": 256,
33
- "sampling_profile": null,
34
- "text_states_dim": 3584,
35
- "vision_num_semantic_tokens": 729,
36
- "vision_states_dim": 1152
37
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
transformer_i2v/diffusion_pytorch_model.safetensors.index.json DELETED
The diff for this file is too large to render. See raw diff