jahnsonblack commited on
Commit
5f0e154
·
verified ·
1 Parent(s): 3187861

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* 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
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ JoyAI-Echo-release.safetensors filter=lfs diff=lfs merge=lfs -text
37
+ assets/image.png filter=lfs diff=lfs merge=lfs -text
JoyAI-Echo-release.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0df52a16eb328bcc9d903bbfa32aecf7b98e354503d095c235f9183b049b9d7c
3
+ size 46139885414
README.md CHANGED
@@ -1,5 +1,259 @@
1
  ---
2
  license: other
3
- license_name: ltx2
4
- license_link: LICENSE
 
 
 
 
 
 
 
 
 
5
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: other
3
+ license_name: ltx-2-community-license-agreement
4
+ license_link: https://github.com/Lightricks/LTX-2/blob/main/LICENSE
5
+ pipeline_tag: text-to-video
6
+ tags:
7
+ - text-to-video
8
+ - video-generation
9
+ - audio-video-generation
10
+ - long-video
11
+ - multi-shot
12
+ - dmd
13
+ library_name: ltx-video
14
  ---
15
+ <p align="center">
16
+ <img src="assets/image.png" alt="JoyAI-Echo generated video gallery" width="100%">
17
+ </p>
18
+
19
+ <div align="center">
20
+
21
+ <h1>JoyAI-Echo</h1>
22
+
23
+ <p><strong>🎬 Pushing the Frontier of Long Video Generation</strong></p>
24
+
25
+ <p>Standalone, inference-only release for <strong>minute-level multi-shot audio-video generation</strong> with a distilled DMD generator, paired cross-modal memory, and story-level consistency.</p>
26
+
27
+ <p><strong>For academic research and non-commercial use only.</strong></p>
28
+
29
+ <p>
30
+ <a href="https://github.com/jd-opensource/JoyAI-Echo/blob/main/joyai-echo%20tech%20report.pdf"><b>📄 Paper</b></a> |
31
+ <a href="https://echo-team-joy-future-academy-jd.github.io/Echo-LongVideo-Page/"><b>🌐 Project Page</b></a> |
32
+ <a href="#quickstart"><b>🚀 Quickstart</b></a> |
33
+ <a href="#results"><b>📊 Results</b></a> |
34
+ <a href="#citation"><b>📝 Citation</b></a>
35
+ </p>
36
+
37
+ <p>
38
+ <img src="https://img.shields.io/badge/Python-3.11-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11">
39
+ <img src="https://img.shields.io/badge/PyTorch-2.8-EE4C2C?style=flat-square&logo=pytorch&logoColor=white" alt="PyTorch 2.8">
40
+ <img src="https://img.shields.io/badge/CUDA-12.8-76B900?style=flat-square&logo=nvidia&logoColor=white" alt="CUDA 12.8">
41
+ <img src="https://img.shields.io/badge/Release-Inference--Only-black?style=flat-square" alt="Inference">
42
+ <img src="https://img.shields.io/badge/Long%20Video-5%20min-d61f2c?style=flat-square" alt="5 minute long video">
43
+ </p>
44
+
45
+ </div>
46
+
47
+ ## Abstract
48
+
49
+ Long video generation still suffers from error accumulation, weak temporal coherence, and prohibitive latency, limiting its applicability to interactive scenarios. We present **JoyAI-Echo**, a framework that breaks these barriers through four key advances.
50
+ Central to its performance, a cross-modal audio-visual memory bank preserves character appearance and voice timbre consistently over five-minute videos, while a post-training pipeline combines memory-based reinforcement learning with distribution matching distillation for a **7.5× speedup** to substantially boost visual quality and alignment.
51
+ Empowered by these two components, **JoyAI-Echo** decisively outperforms *HappyOyster* (directing mode) on long-form generation and even surpasses the short-video specialist *Wan 2.6* on human-centric tasks.
52
+ Beyond raw generation quality, an interactive agent enables real-time user editing through conversational instructions, and a lightweight super-resolution module maintains high definition under streaming latency, further elevating the overall experience and delivering instantly editable, conversation-speed video creation.
53
+ For the first time, **JoyAI-Echo** simultaneously achieves long-range cross-modal consistency, real-time inference for minute-long video, conversational interactivity, and high-resolution output — without compromise, inaugurating a new era of interactive video generation.
54
+ Codes and weights will be open-sourced.
55
+
56
+ ## Highlights
57
+
58
+ - 🎞️ **Minute-level multi-shot stories**: generate a sequence of coherent shots from one prompt JSON.
59
+ - ⚡ **DMD-distilled few-step inference**: ~7.5x faster than the original pipeline.
60
+ - 🔊 **Joint audio-video generation**: one pipeline produces synchronized video and audio.
61
+ - 🧠 **Paired cross-modal memory bank**: conditions each new shot on prior visual identity and voice context for story-level consistency.
62
+
63
+ ## Demo Gallery
64
+
65
+ Explore long-form and short-form JoyAI-Echo cases on the [Project Page](https://echo-team-joy-future-academy-jd.github.io/Echo-LongVideo-Page/). 🍿
66
+
67
+ ## Results
68
+
69
+ ### Reported Scale
70
+
71
+ | Item | Value |
72
+ | --- | ---: |
73
+ | 🎬 Long-form coherent story length | **5 min** |
74
+ | ⚡ Generation speedup over the original multi-step pipeline | **7.5x** |
75
+ | 📚 Benchmark stories | **100** |
76
+ | 🎞️ Generated evaluation shots | **3,000** |
77
+ | 🕒 Frames per shot | **241 @ 25 fps** |
78
+
79
+ ### Human Evaluation
80
+
81
+ GSB user study on long- and short-video generation. The numbers denote the percentage of user preferences.
82
+
83
+ | Aspect<br>(Long Video) | JoyAI-Echo | Tie | HappyOyster<br> (Directing) |
84
+ | --- | ---: | ---: | ---: |
85
+ | Visual aesthetics | **63.6%** | 8.8% | 27.6% |
86
+ | Audio quality | **81.7%** | 6.5% | 11.8% |
87
+ | Prompt following | **80.6%** | 13.5% | 5.9% |
88
+ | IP consistency | **59.4%** | 12.9% | 27.7% |
89
+
90
+ | Aspect<br>(Short Video) | JoyAI-Echo | Tie | Wan 2.6 |
91
+ | --- | ---: | ---: | ---: |
92
+ | Visual aesthetics | **58.8%** | 14.7% | 26.5% |
93
+ | Audio quality | 32.3% | 30.9% | 36.8% |
94
+ | Prompt following | 33.8% | 36.8% | 29.4% |
95
+
96
+
97
+ ## Quickstart
98
+
99
+ ### 1. Clone
100
+
101
+ Get the Repo at first!
102
+
103
+ ```bash
104
+
105
+ git clone https://github.com/jd-opensource/JoyAI-Echo.git
106
+ cd JoyAI-Echo
107
+ ```
108
+
109
+ ### 2. Create the environment
110
+
111
+ The reference environment is **Python 3.11 + PyTorch 2.8 + CUDA 12.8**.
112
+
113
+ With conda:
114
+
115
+ ```bash
116
+ conda env create -f environment.yml
117
+ conda activate echo-long
118
+ ```
119
+
120
+ With `uv`:
121
+
122
+ ```bash
123
+ uv venv --python 3.11 .venv
124
+ source .venv/bin/activate
125
+ uv pip install --extra-index-url https://download.pytorch.org/whl/cu128 -r requirements.txt
126
+ ```
127
+
128
+ [`ffmpeg`](https://ffmpeg.org/download.html) must be available on `PATH` for shot concatenation. The conda recipe includes it. If you use `uv`, install it with your system package manager:
129
+
130
+ ```bash
131
+ sudo apt install ffmpeg
132
+ # macOS:
133
+ brew install ffmpeg
134
+ ```
135
+
136
+ ### 3. Download checkpoint
137
+
138
+ Download the JoyAI-Echo release checkpoint and Gemma text encoder:
139
+
140
+ | File | Description | Size | Link |
141
+ | --- | --- | --- | --- |
142
+ | `echo-longvideo-release.safetensors` | Full model (transformer + VAE + vocoder) | ~46 GB |[`JoyAI-Echo`](https://huggingface.co/jdopensource/JoyAI-Echo) |
143
+ | `gemma-3-12b/` | Instruction-tuned model (text encoder) | ~24 GB | [`gemma-3-12b-it`](https://huggingface.co/google/gemma-3-12b-it) |
144
+
145
+ Place them under `checkpoints/`:
146
+
147
+ ```text
148
+ checkpoints/
149
+ +-- echo-longvideo-release.safetensors
150
+ `-- gemma-3-12b/
151
+ ```
152
+
153
+ ### 4. Write a story prompt
154
+
155
+ Create a JSON file under `prompts/`.
156
+
157
+ Each string is one complete shot description. A single prompt creates a single shot. Multiple prompts create a multi-shot story conditioned through the paired audio-video memory bank.
158
+
159
+ ### 5. Run inference
160
+
161
+ ```bash
162
+ python inference.py
163
+ ```
164
+
165
+ This loads the model once and processes all prompt files under `prompts/`.
166
+
167
+ > 💡 **Note**: The inference pipeline is optimized to run on lower-VRAM
168
+ > GPUs. Peak GPU usage is around **46–50 GB**, at the cost of slightly
169
+ > longer per-shot inference time.
170
+
171
+ Outputs are written to:
172
+
173
+ ```text
174
+ inference_result/outputs/<prompt-name>/inference_<timestamp>/
175
+ ```
176
+
177
+ ## Configuration
178
+
179
+ All inference parameters are managed in `configs/inference.yaml`. The file is organized into sections:
180
+
181
+ | Section | Contents |
182
+ | --- | --- |
183
+ | `paths` | Checkpoint path, prompts directory, output root |
184
+ | `video` | Resolution, frame count, FPS, seed |
185
+ | `denoising` | Step list and sigma schedule |
186
+ | `memory` | Memory bank size, save mode, LoRA settings |
187
+ | `audio_memory` | Audio window, mel-spectrogram params |
188
+ | `inference` | Device, dtype, grad scale |
189
+
190
+ ### Override via CLI
191
+
192
+ Any YAML parameter can be overridden from the command line:
193
+
194
+ ```bash
195
+ python inference.py --seed 42 --num-frames 121 --video-height 480 --video-width 832
196
+ ```
197
+
198
+ Use a custom config file:
199
+
200
+ ```bash
201
+ python inference.py --config configs/my_experiment.yaml
202
+ ```
203
+
204
+ The Python entrypoint exposes the full configuration surface:
205
+
206
+ ```bash
207
+ python inference.py --help
208
+ ```
209
+
210
+ ## Hardware
211
+
212
+ Peak GPU usage is around **46–50 GB** for the default **25 fps x 241 frames x 1280 x 736** setting, so a single H100/A100-class (80 GB) or 48 GB GPU is sufficient.
213
+
214
+ For smaller GPUs, reduce resolution/frames:
215
+
216
+ ```bash
217
+ python inference.py --num-frames 121 --video-height 480 --video-width 832
218
+ ```
219
+
220
+ ## TODO List
221
+
222
+ - [x] Release inference code
223
+ - [x] Release model checkpoints
224
+ - [x] Add prompt examples
225
+ - [ ] Release Director Agent
226
+
227
+ ## Links
228
+
229
+ - Project page: [`https://echo-team-joy-future-academy-jd.github.io/Echo-LongVideo-Page/`](https://echo-team-joy-future-academy-jd.github.io/Echo-LongVideo-Page/)
230
+ - Repository: [`https://github.com/jd-opensource/JoyAI-Echo`](https://github.com/jd-opensource/JoyAI-Echo)
231
+ - huggingface: [`https://huggingface.co/jdopensource/JoyAI-Echo`](https://huggingface.co/jdopensource/JoyAI-Echo)
232
+
233
+ ## Acknowledgements
234
+
235
+ We gratefully acknowledge the open-source projects this work builds upon — in particular [LTX2.3](https://huggingface.co/Lightricks/LTX-2.3) for the base video generator and [Gemma](https://huggingface.co/google/gemma-3-12b-it) for the text encoder. Thanks to the broader research community whose contributions made this release possible.
236
+
237
+ ## Citation
238
+
239
+ If JoyAI-Echo helps your research or products, please cite:
240
+
241
+ ```bibtex
242
+ @techreport{echo2026longvideo,
243
+ title = {JoyAI-Echo: Pushing the Frontier of Long Video Generation},
244
+ author = {{Echo Team @ Joy Future Academy, JD}},
245
+ institution = {Joy Future Academy, JD},
246
+ year = {2026},
247
+ month = {May}
248
+ }
249
+ ```
250
+
251
+ ## License
252
+
253
+ This project is based on LTX-2 by Lightricks Ltd.
254
+
255
+ Portions of the original LTX-2 codebase have been modified by JD.com for academic and research purposes only.
256
+ This project is not intended for commercial use. For commercial use of LTX-2 or its derivatives, please contact Lightricks Ltd.
257
+
258
+ All original copyright, license, patent, trademark, and attribution notices from LTX-2 are retained.
259
+ This project remains subject to the LTX-2 Community License Agreement.
assets/image.png ADDED

Git LFS Details

  • SHA256: 279a85d73e5ffb5332295872dc155017261840cfa638c0c47def18c4a1d6a3a6
  • Pointer size: 132 Bytes
  • Size of remote file: 7.18 MB
config.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "model_type": "JoyAI-Echo"
3
+ }
model_index.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "_class_name": "InferenceEngine"
3
+ }