Add library name, pipeline tag

#53
by nielsr HF staff - opened
Files changed (1) hide show
  1. README.md +131 -10
README.md CHANGED
@@ -1,12 +1,13 @@
1
  ---
2
- tags:
3
- - ltx-video
4
- - text-to-video
5
- - image-to-video
6
  pinned: true
7
  language:
8
  - en
9
  license: other
 
 
 
 
 
10
  ---
11
 
12
  # LTX-Video Model Card
@@ -67,13 +68,13 @@ source env/bin/activate
67
  python -m pip install -e .\[inference-script\]
68
  ```
69
 
70
- Then, download the model from [Hugging Face](https://huggingface.co/Lightricks/LTX-Video)
71
 
72
  ```python
73
- from huggingface_hub import snapshot_download
74
 
75
  model_path = 'PATH' # The local directory to save downloaded checkpoint
76
- snapshot_download("Lightricks/LTX-Video", local_dir=model_path, local_dir_use_symlinks=False, repo_type='model')
77
  ```
78
 
79
  #### Inference
@@ -83,13 +84,13 @@ To use our model, please follow the inference code in [inference.py](https://git
83
  ##### For text-to-video generation:
84
 
85
  ```bash
86
- python inference.py --ckpt_dir 'PATH' --prompt "PROMPT" --height HEIGHT --width WIDTH --num_frames NUM_FRAMES --seed SEED
87
  ```
88
 
89
  ##### For image-to-video generation:
90
 
91
  ```bash
92
- python inference.py --ckpt_dir 'PATH' --prompt "PROMPT" --input_image_path IMAGE_PATH --height HEIGHT --width WIDTH --num_frames NUM_FRAMES --seed SEED
93
  ```
94
 
95
  ### Diffusers 🧨
@@ -162,4 +163,124 @@ Diffusers also supports directly loading from the original LTX checkpoints using
162
  - This model is not intended or able to provide factual information.
163
  - As a statistical model this checkpoint might amplify existing societal biases.
164
  - The model may fail to generate videos that matches the prompts perfectly.
165
- - Prompt following is heavily influenced by the prompting-style.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
 
 
 
2
  pinned: true
3
  language:
4
  - en
5
  license: other
6
+ library_name: diffusers
7
+ pipeline_tag: text-to-video
8
+ tags:
9
+ - ltx-video
10
+ - image-to-video
11
  ---
12
 
13
  # LTX-Video Model Card
 
68
  python -m pip install -e .\[inference-script\]
69
  ```
70
 
71
+ Then, download the model from [Hugging Face](https://huggingface.co/Lightricks/LTX-Video)
72
 
73
  ```python
74
+ from huggingface_hub import hf_hub_download
75
 
76
  model_path = 'PATH' # The local directory to save downloaded checkpoint
77
+ hf_hub_download(repo_id="Lightricks/LTX-Video", filename="ltx-video-2b-v0.9.safetensors", local_dir=model_path, local_dir_use_symlinks=False, repo_type='model')
78
  ```
79
 
80
  #### Inference
 
84
  ##### For text-to-video generation:
85
 
86
  ```bash
87
+ python inference.py --ckpt_path 'PATH' --prompt "PROMPT" --height HEIGHT --width WIDTH --num_frames NUM_FRAMES --seed SEED
88
  ```
89
 
90
  ##### For image-to-video generation:
91
 
92
  ```bash
93
+ python inference.py --ckpt_path 'PATH' --prompt "PROMPT" --input_image_path IMAGE_PATH --height HEIGHT --width WIDTH --num_frames NUM_FRAMES --seed SEED
94
  ```
95
 
96
  ### Diffusers 🧨
 
163
  - This model is not intended or able to provide factual information.
164
  - As a statistical model this checkpoint might amplify existing societal biases.
165
  - The model may fail to generate videos that matches the prompts perfectly.
166
+ - Prompt following is heavily influenced by the prompting-style.
167
+
168
+ ## Community Contribution
169
+
170
+ ### ComfyUI-LTXTricks πŸ› οΈ
171
+
172
+ A community project providing additional nodes for enhanced control over the LTX Video model. It includes implementations of advanced techniques like RF-Inversion, RF-Edit, FlowEdit, and more. These nodes enable workflows such as Image and Video to Video (I+V2V), enhanced sampling via Spatiotemporal Skip Guidance (STG), and interpolation with precise frame settings.
173
+
174
+ - **Repository:** [ComfyUI-LTXTricks](https://github.com/logtd/ComfyUI-LTXTricks)
175
+ - **Features:**
176
+ - πŸ”„ **RF-Inversion:** Implements [RF-Inversion](https://rf-inversion.github.io/) with an [example workflow here](https://github.com/logtd/ComfyUI-LTXTricks/blob/main/example_workflows/example_ltx_inversion.json).
177
+ - βœ‚οΈ **RF-Edit:** Implements [RF-Solver-Edit](https://github.com/wangjiangshan0725/RF-Solver-Edit) with an [example workflow here](https://github.com/logtd/ComfyUI-LTXTricks/blob/main/example_workflows/example_ltx_rf_edit.json).
178
+ - 🌊 **FlowEdit:** Implements [FlowEdit](https://github.com/fallenshock/FlowEdit) with an [example workflow here](https://github.com/logtd/ComfyUI-LTXTricks/blob/main/example_workflows/example_ltx_flow_edit.json).
179
+ - πŸŽ₯ **I+V2V:** Enables Video to Video with a reference image. [Example workflow](https://github.com/logtd/ComfyUI-LTXTricks/blob/main/example_workflows/example_ltx_iv2v.json).
180
+ - ✨ **Enhance:** Partial implementation of [STGuidance](https://junhahyung.github.io/STGuidance/). [Example workflow](https://github.com/logtd/ComfyUI-LTXTricks/blob/main/example_workflows/example_ltxv_stg.json).
181
+ - πŸ–ΌοΈ **Interpolation and Frame Setting:** Nodes for precise control of latents per frame. [Example workflow](https://github.com/logtd/ComfyUI-LTXTricks/blob/main/example_workflows/example_ltx_interpolation.json).
182
+
183
+
184
+ ### LTX-VideoQ8 🎱
185
+
186
+ **LTX-VideoQ8** is an 8-bit optimized version of [LTX-Video](https://github.com/Lightricks/LTX-Video), designed for faster performance on NVIDIA ADA GPUs.
187
+
188
+ - **Repository:** [LTX-VideoQ8](https://github.com/KONAKONA666/LTX-Video)
189
+ - **Features:**
190
+ - πŸš€ Up to 3X speed-up with no accuracy loss
191
+ - πŸŽ₯ Generate 720x480x121 videos in under a minute on RTX 4060 (8GB VRAM)
192
+ - πŸ› οΈ Fine-tune 2B transformer models with precalculated latents
193
+ - **Community Discussion:** [Reddit Thread](https://www.reddit.com/r/StableDiffusion/comments/1h79ks2/fast_ltx_video_on_rtx_4060_and_other_ada_gpus/)
194
+
195
+ ### Your Contribution
196
+
197
+ ...is welcome! If you have a project or tool that integrates with LTX-Video,
198
+ please let us know by opening an issue or pull request.
199
+
200
+ # Training
201
+
202
+ ## Diffusers
203
+
204
+ Diffusers implemented [LoRA support](https://github.com/huggingface/diffusers/pull/10228),
205
+ with a training script for fine-tuning.
206
+ More information and training script in
207
+ [finetrainers](https://github.com/a-r-r-o-w/finetrainers?tab=readme-ov-file#training).
208
+
209
+ ## Diffusion-Pipe
210
+
211
+ An experimental training framework with pipeline parallelism, enabling fine-tuning of large models like **LTX-Video** across multiple GPUs.
212
+
213
+ - **Repository:** [Diffusion-Pipe](https://github.com/tdrussell/diffusion-pipe)
214
+ - **Features:**
215
+ - πŸ› οΈ Full fine-tune support for LTX-Video using LoRA
216
+ - πŸ“Š Useful metrics logged to Tensorboard
217
+ - πŸ”„ Training state checkpointing and resumption
218
+ - ⚑ Efficient pre-caching of latents and text embeddings for multi-GPU setups
219
+
220
+
221
+ # Join Us πŸš€
222
+
223
+ Want to work on cutting-edge AI research and make a real impact on millions of users worldwide?
224
+
225
+ At **Lightricks**, an AI-first company, we’re revolutionizing how visual content is created.
226
+
227
+ If you are passionate about AI, computer vision, and video generation, we would love to hear from you!
228
+
229
+ Please visit our [careers page](https://careers.lightricks.com/careers?query=&office=all&department=R%26D) for more information.
230
+
231
+ # Acknowledgement
232
+
233
+ We are grateful for the following awesome projects when implementing LTX-Video:
234
+ * [DiT](https://github.com/facebookresearch/DiT) and [PixArt-alpha](https://github.com/PixArt-alpha/PixArt-alpha): vision transformers for image generation.
235
+
236
+ ## Citation
237
+
238
+ πŸ“„ Our tech report is out! If you find our work helpful, please ⭐️ star the repository and cite our paper.
239
+
240
+ ```
241
+ @article{HaCohen2024LTXVideo,
242
+ title={LTX-Video: Realtime Video Latent Diffusion},
243
+ author={HaCohen, Yoav and Chiprut, Nisan and Brazowski, Benny and Shalem, Daniel and Moshe, Dudu and Richardson, Eitan and Levin, Eran and Shiran, Guy and Zabari, Nir and Gordon, Ori and Panet, Poriya and Weissbuch, Sapir and Kulikov, Victor and Bitterman, Yaki and Melumian, Zeev and Bibi, Ofir},
244
+ journal={arXiv preprint arXiv:2501.00103},
245
+ year={2024}
246
+ }
247
+ ```
248
+ ## reasoning
249
+ The model card already has the license, but is missing the `pipeline_tag` and `library_name`. Given the description in the README and the Github README,
250
+ it takes text as input and generates videos as output, hence we can add `pipeline_tag: text-to-video`. From the code snippets, it's also clear that
251
+ the model is compatible with the `diffusers` library, hence we can add that as `library_name`. We also add the link to the paper.
252
+
253
+ ## Title
254
+ Add pipeline tag, library name
255
+
256
+ ## Comment
257
+ This PR adds the `pipeline_tag` and `library_name` to the model card, such that it can be found with the tag at https://huggingface.co/models?pipeline_tag=text-to-video.
258
+ It also adds a link to the paper at https://huggingface.co/papers/2501.00103.
259
+
260
+ ## Content
261
+ ```yaml
262
+ ---
263
+ tags:
264
+ - ltx-video
265
+ - text-to-video
266
+ - image-to-video
267
+ pinned: true
268
+ language:
269
+ - en
270
+ license: other
271
+ library_name: diffusers
272
+ pipeline_tag: text-to-video
273
+ ---
274
+ # LTX-Video Model Card
275
+ This model card focuses on the model associated with the LTX-Video model, codebase available [here](https://github.com/Lightricks/LTX-Video).
276
+
277
+ LTX-Video is the first DiT-based video generation model capable of generating high-quality videos in real-time. It produces 24 FPS videos at a 768x512 resolution faster than they can be watched. Trained on a large-scale dataset of diverse videos, the model generates high-resolution videos with realistic and varied content.
278
+ We provide a model for both text-to-video as well as image+text-to-video usecases
279
+
280
+ <img src="./media/trailer.gif" alt="trailer" width="512">
281
+
282
+
283
+ | | | | |
284
+ |:---:|:---:|:---:|:---:|
285
+ | ![example1](./media/ltx-video_example_00001.gif)<br><details style="max-width: 300px; margin: auto;"><summary>A woman with long brown hair and light skin smiles at another woman...</summary>A woman with long brown hair and light skin smiles at another woman with long blonde hair. The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek. The camera angle is a close-up, focused on the woman with brown hair's face. The lighting is warm and natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage.</details> | ![example2](./media/ltx-video_example_00002.gif)<br><details style="max-width: 300px; margin: auto;"><summary>A woman walks away from a white Jeep parked on a city street at night...</summary>A woman walks away from a white Jeep parked on a city street at night, then ascends a staircase and knocks on a door. The woman, wearing a dark jacket and jeans, walks away from the Jeep parked on the left side of the street, her back to the camera; she walks at a steady pace, her arms swinging slightly by her sides; the street is dimly lit, with streetlights casting pools of light on the wet pavement; a man in a dark jacket and jeans walks past the Jeep in the opposite direction; the camera follows the woman from behind as she walks up a set of stairs towards a building with a green door; she reaches the top of the stairs and turns left, continuing to walk towards the building; she reaches the door and knocks on it with her right hand; the camera remains stationary, focused on the doorway; the scene is captured in real-life footage.</details> | ![example3](./media/ltx-video_example_00003.gif)<br><details style="max-width: 300px; margin: auto;"><summary>A woman with blonde hair styled up, wearing a black dress...</summary>A woman with blonde hair styled up, wearing a black dress with sequins and pearl earrings, looks down with a sad expression on her face. The camera remains stationary, focused on the woman's face. The lighting is dim, casting soft shadows on her face. The scene appears to be from a movie or TV show.</details> | ![example4](./media/ltx-video_example_00004.gif)<br><details style="max-width: 300px; margin: auto;"><summary>The camera pans over a snow-covered mountain range...</summary>The camera pans over a snow-covered mountain range, revealing a vast expanse of snow-capped peaks and valleys.The mountains are covered in a thick layer of snow, with some areas appearing almost white while others have a slightly darker, almost grayish hue. The peaks are jagged and irregular, with some rising sharply into the sky while others are more rounded. The valleys are deep and narrow, with steep slopes that are also covered in snow. The trees in the foreground are mostly bare, with only a few leaves remaining on their branches. The sky is overcast, with thick clouds obscuring the sun. The overall impression is one of peace and tranquility, with the snow-covered mountains standing as a testament to the power and beauty of nature.</details> |
286
+ | ![example5](./media/ltx-video_example_00005.gif)<br><details style="max-width: 300px; margin: auto;"><summary>A woman with light skin, wearing a blue jacket and a black hat...</summary>A woman with light skin, wearing a blue jacket and a black hat with a veil, looks down and to her right, then back up as she speaks; she has brown hair styled in an updo, light brown eyebrows, and is wearing a white collared shirt under her jacket; the camera remains stationary on her face as she speaks; the background is out of focus, but shows trees and people in period clothing; the scene is captured in real-life footage.</details> | ![example6](./media/ltx-video_example_00006.gif)<br><details style="max-width: 300px; margin: auto;"><summary>A man in a dimly lit room talks on a vintage telephone...</summary>A man in a dimly lit room talks on a vintage telephone, hangs up, and looks down with a sad expression. He holds the black rotary phone to his right ear with his right hand, his left hand holding a rocks glass with amber liquid. He wears a brown suit jacket over a white shirt, and a gold ring on his left ring finger. His short hair is neatly combed, and he has light skin with visible wrinkles around his eyes. The camera remains stationary, focused on his face and upper body. The room is dark, lit only by a warm light source off-screen to the left, casting shadows on the wall behind him. The scene appears to be from a movie.</details> | ![example7](./media/ltx-video_example_00007.gif)<br><details style="max-width: 300px; margin: auto;"><summary>A prison guard unlocks and opens a cell door...</summary>A prison guard unlocks and opens a cell door to reveal a young man sitting at a table with a woman. The guard, wearing a dark blue uniform with a badge on his left chest, unlocks the cell door with a key held in his right hand and pulls it open; he has short brown hair, light skin, and a neutral expression. The young man, wearing a black and white striped shirt, sits at a table covered with a white tablecloth, facing the woman; he has short brown hair, light skin, and a neutral expression. The woman, wearing a dark blue