jahnsonblack commited on
Commit
9789b58
Β·
verified Β·
1 Parent(s): 6a15bdf

update prompts

Browse files
Files changed (1) hide show
  1. README.md +91 -165
README.md CHANGED
@@ -12,256 +12,182 @@ tags:
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
- ## Current Release Scope
64
-
65
- JoyAI-Echo currently focuses on **text-to-video (T2V)** and **multi-shot long-video generation with paired audio-video memory**. The memory used in our official pipeline is built from generated T2V shots.
66
-
67
- Please note that **image-to-video (I2V)** is **not supported in the current release**.
68
-
69
- We are actively working on I2V support and plan to release it in a future version.
70
-
71
- ## Demo Gallery
72
-
73
- 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/). 🍿
74
-
75
- ## Results
76
-
77
- ### Reported Scale
78
-
79
- | Item | Value |
80
- | --- | ---: |
81
- | 🎬 Long-form coherent story length | **5 min** |
82
- | ⚑ Generation speedup over the original multi-step pipeline | **7.5x** |
83
- | πŸ“š Benchmark stories | **100** |
84
- | 🎞️ Generated evaluation shots | **3,000** |
85
- | πŸ•’ Frames per shot | **241 @ 25 fps** |
86
-
87
- ### Human Evaluation
88
 
89
- GSB user study on long- and short-video generation. The numbers denote the percentage of user preferences.
90
 
91
- | Aspect<br>(Long Video) | JoyAI-Echo | Tie | HappyOyster<br> (Directing) |
92
- | --- | ---: | ---: | ---: |
93
- | Visual aesthetics | **63.6%** | 8.8% | 27.6% |
94
- | Audio quality | **81.7%** | 6.5% | 11.8% |
95
- | Prompt following | **80.6%** | 13.5% | 5.9% |
96
- | IP consistency | **59.4%** | 12.9% | 27.7% |
97
 
98
- | Aspect<br>(Short Video) | JoyAI-Echo | Tie | Wan 2.6 |
99
- | --- | ---: | ---: | ---: |
100
- | Visual aesthetics | **58.8%** | 14.7% | 26.5% |
101
- | Audio quality | 32.3% | 30.9% | 36.8% |
102
- | Prompt following | 33.8% | 36.8% | 29.4% |
103
 
 
104
 
105
- ## Quickstart
 
 
 
 
 
 
 
106
 
107
- ### 1. Clone
108
-
109
- Get the Repo at first!
110
-
111
- ```bash
112
-
113
- git clone https://github.com/jd-opensource/JoyAI-Echo.git
114
- cd JoyAI-Echo
115
- ```
116
-
117
- ### 2. Create the environment
118
 
119
- The reference environment is **Python 3.11 + PyTorch 2.8 + CUDA 12.8**.
 
 
 
120
 
121
- With conda:
122
 
123
- ```bash
124
- conda env create -f environment.yml
125
- conda activate echo-long
126
- ```
127
 
128
- With `uv`:
129
 
130
  ```bash
131
- uv venv --python 3.11 .venv
132
- source .venv/bin/activate
133
- uv pip install --extra-index-url https://download.pytorch.org/whl/cu128 -r requirements.txt
134
  ```
135
 
136
- [`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:
137
 
138
  ```bash
139
- sudo apt install ffmpeg
140
- # macOS:
141
- brew install ffmpeg
142
  ```
143
 
144
- ### 3. Download checkpoint
145
-
146
- Download the JoyAI-Echo release checkpoint and Gemma text encoder:
147
-
148
- | File | Description | Size | Link |
149
- | --- | --- | --- | --- |
150
- | `echo-longvideo-release.safetensors` | Full model (transformer + VAE + vocoder) | ~46 GB |[`JoyAI-Echo`](https://huggingface.co/jdopensource/JoyAI-Echo) |
151
- | `gemma-3-12b/` | Instruction-tuned model (text encoder) | ~24 GB | [`gemma-3-12b-it`](https://huggingface.co/google/gemma-3-12b-it) |
152
-
153
- Place them under `checkpoints/`:
154
 
155
  ```text
156
  checkpoints/
157
- +-- echo-longvideo-release.safetensors
158
- `-- gemma-3-12b/
159
  ```
160
 
161
- ### 4. Write a story prompt
162
-
163
- Create a JSON file under `prompts/`.
164
-
165
- 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.
166
-
167
- ### 5. Run inference
168
 
169
  ```bash
170
- python inference.py
 
171
  ```
172
 
173
- This loads the model once and processes all prompt files under `prompts/`.
174
 
175
- > πŸ’‘ **Note**: The inference pipeline is optimized to run on lower-VRAM
176
- > GPUs. Peak GPU usage is around **46–50 GB**, at the cost of slightly
177
- > longer per-shot inference time.
178
 
179
- Outputs are written to:
180
 
181
- ```text
182
- inference_result/outputs/<prompt-name>/inference_<timestamp>/
183
- ```
184
-
185
- ## Configuration
186
 
187
- All inference parameters are managed in `configs/inference.yaml`. The file is organized into sections:
188
 
189
- | Section | Contents |
190
  | --- | --- |
191
- | `paths` | Checkpoint path, prompts directory, output root |
192
- | `video` | Resolution, frame count, FPS, seed |
193
- | `denoising` | Step list and sigma schedule |
194
- | `memory` | Memory bank size, save mode, LoRA settings |
195
- | `audio_memory` | Audio window, mel-spectrogram params |
196
- | `inference` | Device, dtype, grad scale |
197
-
198
- ### Override via CLI
199
 
200
- Any YAML parameter can be overridden from the command line:
201
 
202
- ```bash
203
- python inference.py --seed 42 --num-frames 121 --video-height 480 --video-width 832
204
- ```
205
 
206
- Use a custom config file:
207
 
208
  ```bash
209
- python inference.py --config configs/my_experiment.yaml
210
  ```
211
 
212
- The Python entrypoint exposes the full configuration surface:
213
-
214
- ```bash
215
- python inference.py --help
216
- ```
217
 
218
  ## Hardware
219
 
220
- 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.
221
-
222
- For smaller GPUs, reduce resolution/frames:
223
 
224
  ```bash
225
  python inference.py --num-frames 121 --video-height 480 --video-width 832
226
  ```
227
 
228
- ## TODO List
229
 
230
- - [x] Release inference code
231
- - [x] Release model checkpoints
232
- - [x] Add prompt examples
233
- - [ ] Release Director Agent
234
 
235
- ## Links
 
 
 
 
 
 
236
 
237
- - 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/)
238
- - Repository: [`https://github.com/jd-opensource/JoyAI-Echo`](https://github.com/jd-opensource/JoyAI-Echo)
239
- - huggingface: [`https://huggingface.co/jdopensource/JoyAI-Echo`](https://huggingface.co/jdopensource/JoyAI-Echo)
 
 
 
 
 
 
 
 
 
 
 
 
 
240
 
241
  ## Acknowledgements
242
 
243
- 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.
244
 
245
  ## Citation
246
 
247
- If JoyAI-Echo helps your research or products, please cite:
248
 
249
  ```bibtex
250
  @techreport{echo2026longvideo,
251
- title = {JoyAI-Echo: Pushing the Frontier of Long Video Generation},
252
  author = {{Echo Team @ Joy Future Academy, JD}},
253
  institution = {Joy Future Academy, JD},
254
  year = {2026},
255
- month = {May}
 
256
  }
257
  ```
258
 
259
  ## License
260
 
261
- This project is based on LTX-2 by Lightricks Ltd.
262
-
263
- Portions of the original LTX-2 codebase have been modified by JD.com for academic and research purposes only.
264
- This project is not intended for commercial use. For commercial use of LTX-2 or its derivatives, please contact Lightricks Ltd.
265
-
266
- All original copyright, license, patent, trademark, and attribution notices from LTX-2 are retained.
267
- This project remains subject to the LTX-2 Community License Agreement.
 
12
  - dmd
13
  library_name: ltx-video
14
  ---
15
+
16
  <p align="center">
17
+ <img src="assets/image.png" alt="Echo-LongVideo generated video gallery" width="100%">
18
  </p>
19
 
20
  <div align="center">
21
 
22
+ <h1>Echo-LongVideo</h1>
23
 
24
  <p><strong>🎬 Pushing the Frontier of Long Video Generation</strong></p>
25
 
26
+ <p>Official model weights for <strong>minute-level multi-shot audio-video generation</strong> with a distilled DMD generator, paired cross-modal memory, and story-level consistency.</p>
 
 
27
 
28
  <p>
29
+ <a href="LongVideo_Tech_Report.pdf"><b>πŸ“„ Paper</b></a> |
30
+ <a href="https://github.com/Echo-Team-Joy-Future-Academy-JD/JoyAI-Echo"><b>πŸ’» Inference Code</b></a> |
31
+ <a href="#model-details"><b>🧬 Model</b></a> |
32
+ <a href="#usage"><b>πŸš€ Usage</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/Task-Text--to--Video-blue?style=flat-square" alt="Text-to-Video">
39
+ <img src="https://img.shields.io/badge/Modality-Audio%2BVideo-purple?style=flat-square" alt="Audio + Video">
 
 
40
  <img src="https://img.shields.io/badge/Long%20Video-5%20min-d61f2c?style=flat-square" alt="5 minute long video">
41
+ <img src="https://img.shields.io/badge/Release-Model%20Weights-black?style=flat-square" alt="Model Weights">
42
  </p>
43
 
44
  </div>
45
 
46
+ ## Model Summary
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
+ **Echo-LongVideo** (a.k.a. **JoyAI-Echo**) is a long-form, multi-shot, audio-video generation model. A cross-modal audio-visual memory bank preserves character appearance and voice timbre consistently across up to **five-minute** videos, and a post-training pipeline combining memory-based reinforcement learning with distribution matching distillation (DMD) delivers a **7.5Γ— inference speedup** without sacrificing quality.
49
 
50
+ In human evaluation, Echo-LongVideo decisively outperforms *HappyOyster* (directing mode) on long-form generation and surpasses the short-video specialist *Wan 2.6* on human-centric tasks.
 
 
 
 
 
51
 
52
+ This repository hosts the **released checkpoint**. Inference code is released separately β€” see the [Usage](#usage) section.
 
 
 
 
53
 
54
+ ## Model Details
55
 
56
+ - **Developed by:** Echo Team @ Joy Future Academy, JD
57
+ - **Model type:** Text-to-(Audio+Video) diffusion transformer, DMD 8-step
58
+ - **Modality:** Text β†’ synchronized video + audio
59
+ - **Backbone:** Built on top of [LTX-Video](https://github.com/Lightricks/LTX-Video)
60
+ - **Text encoder:** [`google/gemma-3-12b-it`](https://huggingface.co/google/gemma-3-12b-it) (downloaded separately)
61
+ - **Resolution / length (by default):** 1280 Γ— 736, 241 frames @ 25 fps per shot
62
+ - **Max story length:** up to 5 minutes (multi-shot)
63
+ - **License:** LTX-2 Community License Agreement
64
 
65
+ ## Highlights
 
 
 
 
 
 
 
 
 
 
66
 
67
+ - 🎞️ **Minute-level multi-shot stories** from a single prompt JSON.
68
+ - ⚑ **DMD-distilled few-step inference**, ~7.5Γ— faster than the original pipeline.
69
+ - πŸ”Š **Joint audio-video generation** in a single pipeline.
70
+ - 🧠 **Paired cross-modal memory bank** for story-level identity and voice consistency.
71
 
72
+ ## Usage
73
 
74
+ Inference is run with the standalone **Echo-LongVideo** inference repository.
 
 
 
75
 
76
+ ### 1. Download the checkpoint
77
 
78
  ```bash
79
+ huggingface-cli download <org>/Echo-LongVideo \
80
+ --local-dir checkpoints
 
81
  ```
82
 
83
+ Also download the Gemma text encoder:
84
 
85
  ```bash
86
+ huggingface-cli download google/gemma-3-12b-it \
87
+ --local-dir checkpoints/gemma-3-12b
 
88
  ```
89
 
90
+ Expected layout:
 
 
 
 
 
 
 
 
 
91
 
92
  ```text
93
  checkpoints/
94
+ β”œβ”€β”€ echo-longvideo-release.safetensors
95
+ └── gemma-3-12b/
96
  ```
97
 
98
+ ### 2. Get the inference code
 
 
 
 
 
 
99
 
100
  ```bash
101
+ git clone https://github.com/Echo-Team-Joy-Future-Academy-JD/JoyAI-Echo.git
102
+ cd JoyAI-Echo
103
  ```
104
 
105
+ Environment: **Python 3.11 + PyTorch 2.8 + CUDA 12.8** (see the inference repo's `environment.yml` / `requirements.txt`).
106
 
107
+ ### 3. Write a story prompt
 
 
108
 
109
+ **Enhance your prompt first.** We provide prompt enhancers β€” system prompts that expand a short story or idea into well-formed shot prompts: **`prompts/long_story_writer_system_prompt.md`** for long, multi-shot video, and **`prompts/short_story_writer_system_prompt.md`** for single-shot short video. We **strongly recommend** running your input through the matching enhancer before inference; un-enhanced prompts tend to produce noticeably weaker results.
110
 
111
+ Create a JSON file under `prompts/`. Each file is a single object with a `prompts` list, where **every string is one complete shot**. A single string produces one shot; multiple strings produce a multi-shot story, with each new shot conditioned on the previous ones through the paired audio-video memory bank.
 
 
 
 
112
 
113
+ Inside each string, write these parts in order:
114
 
115
+ | Part | What to describe |
116
  | --- | --- |
117
+ | **Roles & Subjects** | Describe the appearance of all visible people, including age, build, hair, face, wardrobe, and speaking voice timbre when applicable. |
118
+ | **Action & Dialogue** | What the subject does and speaks. |
119
+ | **Style** | The overall visual and emotional aesthetic β€” e.g. realistic motorsport film language, cool daylight, restrained cinematic tension. |
120
+ | **Camera Movement** | The shot type and framing or movement β€” e.g. a stable close-up on the face, or a medium shot from the waist up. |
121
+ | **Background** | The setting and scene details behind the subject. |
122
+ | **Sound Effects & BGM** | The sounds in the scene and the background music β€” e.g. room tone, wind, footsteps and fabric, with a soft low music bed under the dialogue or nobackground music |
 
 
123
 
124
+ A more convenient prompt-writing workflow will be released as a **director agent** for everyone to use.
125
 
 
 
 
126
 
127
+ ### 4. Run
128
 
129
  ```bash
130
+ python inference.py
131
  ```
132
 
133
+ Outputs land in `inference_result/outputs/<prompt-name>/inference_<timestamp>/`.
 
 
 
 
134
 
135
  ## Hardware
136
 
137
+ Peak GPU memory is **~46–50 GB** at the default 1280 Γ— 736 Γ— 241 frame setting β€” a single H100/A100 (80 GB) or 48 GB GPU is sufficient. For smaller GPUs, lower resolution or frame count:
 
 
138
 
139
  ```bash
140
  python inference.py --num-frames 121 --video-height 480 --video-width 832
141
  ```
142
 
143
+ ## Results
144
 
145
+ ### Reported Scale
 
 
 
146
 
147
+ | Item | Value |
148
+ | --- | ---: |
149
+ | 🎬 Long-form coherent story length | **5 min** |
150
+ | ⚑ Speedup over the original multi-step pipeline | **7.5Γ—** |
151
+ | πŸ“š Benchmark stories | **100** |
152
+ | 🎞️ Generated evaluation shots | **3,000** |
153
+ | πŸ•’ Frames per shot | **241 @ 25 fps** |
154
 
155
+ ### Human Evaluation
156
+
157
+ GSB user study. Values are the percentage of user preferences.
158
+
159
+ | Aspect (Long Video) | JoyAI-Echo | Tie | HappyOyster (Directing) |
160
+ | --- | ---: | ---: | ---: |
161
+ | Visual aesthetics | **63.6%** | 8.8% | 27.6% |
162
+ | Audio quality | **81.7%** | 6.5% | 11.8% |
163
+ | Prompt following | **80.6%** | 13.5% | 5.9% |
164
+ | IP consistency | **59.4%** | 12.9% | 27.7% |
165
+
166
+ | Aspect (Short Video) | JoyAI-Echo | Tie | Wan 2.6 |
167
+ | --- | ---: | ---: | ---: |
168
+ | Visual aesthetics | **58.8%** | 14.7% | 26.5% |
169
+ | Audio quality | 32.3% | 30.9% | 36.8% |
170
+ | Prompt following | 33.8% | 36.8% | 29.4% |
171
 
172
  ## Acknowledgements
173
 
174
+ We gratefully acknowledge [LTX-Video](https://github.com/Lightricks/LTX-Video) for the base video generator and [Gemma](https://huggingface.co/google/gemma-3-12b-it) for the text encoder, along with the broader open-source community.
175
 
176
  ## Citation
177
 
178
+ If Echo-LongVideo helps your research or products, please cite:
179
 
180
  ```bibtex
181
  @techreport{echo2026longvideo,
182
+ title = {Echo-LongVideo: Pushing the Frontier of Long Video Generation},
183
  author = {{Echo Team @ Joy Future Academy, JD}},
184
  institution = {Joy Future Academy, JD},
185
  year = {2026},
186
+ month = {June},
187
+ url = {https://github.com/Echo-Team-Joy-Future-Academy-JD/JoyAI-Echo}
188
  }
189
  ```
190
 
191
  ## License
192
 
193
+ Released under the [LTX-2 Community License Agreement](https://github.com/Lightricks/LTX-2/blob/main/LICENSE). By downloading or using these weights, you agree to its terms. The bundled Gemma text encoder is governed by Google's separate Gemma license.