Loading video...

Video Failed to Load

Go Home

AI Toolkit now officially supports training Lightricks LTX-2 LoRAs.

18,799 views • 10 months ago •via X (Twitter)

30 Comments

Ostris's profile picture
Ostris10 months ago

I will work on getting some docs and a tutorial put together today/tomorrow, but basically for the dataset, just make sure it is trimmed to the proper length for 24 fps. Frame count is (seconds * 24) + 1. So 5 second videos is 121 frames. 5 * 24 + 1 = 121

Ostris's profile picture
Ostris10 months ago

If you appreciate my work or find it useful, please consider contributing.

Ostris's profile picture
Ostris10 months ago

These are the important settings to train on 5 second videos on a 5090 with 64 GB of CPU ram.

Hug Life's profile picture
Hug Life10 months ago

@Lightricks

Thalion Gilrandir's profile picture
Thalion Gilrandir10 months ago

@Lightricks Amazing, thanks for your hard work with all the models !!!

Christopher Moonlight Productions's profile picture
Christopher Moonlight Productions10 months ago

@Lightricks I'm just about to install LTX-2 into my new rig with a 5090. So far I'm terrible at all this but I want to lean how to train it. Where do I begin?

ka chun cheng's profile picture
ka chun cheng10 months ago

@Lightricks Thank you for your work!

XRWorld's profile picture
XRWorld10 months ago

@Lightricks Would be great if AI Toolkit could work with comfyui models and not diffusers. It is painful to download all these shards.

Ivan Fioravanti ᯅ's profile picture
Ivan Fioravanti ᯅ10 months ago

@Lightricks Pure power! Amazing job! 🔥

Movan's profile picture
Movan10 months ago

@Lightricks Can we train on 30 fps ?

Ostris's profile picture
Ostris10 months ago

@Lightricks Currently it is hardcoded to 24fps in order to sync the audio. Also, temporal compression is a factor of 8, so anything other than 8, 16, 24, 32, etc is not possible.

Movan's profile picture
Movan10 months ago

@Lightricks I see

Open Source AI's profile picture
Open Source AI10 months ago

@Lightricks Fantastic , started my first lora with 300 pictures , gpu load is around 13% on a Blackwell 6000 (7.5s/Iter) , other models are at 100% . Any idea ?

Ostris's profile picture
Ostris10 months ago

@Lightricks Cache latents (pull latest first) and text embeddings, turn off offloading.

Open Source AI's profile picture
Open Source AI10 months ago

@Lightricks thank you 🙏

ρŁ𝐀𝔰Mʘ's profile picture
ρŁ𝐀𝔰Mʘ10 months ago

@Lightricks YES

legarth's profile picture
legarth10 months ago

@Lightricks And VRAM considerations for a RTX 6000? Or do i not need to worry about it. Also can you do character lora's with images only?

John D. Pope  🦒's profile picture
John D. Pope 🦒10 months ago

@Lightricks Well done.👍 how long ?

shanzhu's profile picture
shanzhu10 months ago

@Lightricks nice

T8star's profile picture
T8star10 months ago

Hello, I have a question. When I train with images, the results are very good. However, when I train with videos, I found a problem. The audio fits faster, but the video part hasn't been fully fitted yet. If I continue training, LoRa will force it to read according to the audio text, completely ignoring the prompt words. But if the number of steps is not enough, the audio can be controlled, but the training of video, such as face recognition, hasn't been fully fitted. Currently, when the number of steps is not particularly high, I can only reduce the weight of LoRa, but the effect is still not very good because the model weights of audio and video cannot be separated. What are your good suggestions

Ostris's profile picture
Ostris10 months ago

@Lightricks You could try training with both an image dataset and a video dataset at the same time.

T8star's profile picture
T8star10 months ago

@Lightricks thanks,let me try

HeyLGros's profile picture
HeyLGros10 months ago

@Lightricks "Ostris Ai Toolclit" My brain is playing tricks on me.

Lucas P YEHUA ⬛️🟨⬜️ 🇹🇼's profile picture
Lucas P YEHUA ⬛️🟨⬜️ 🇹🇼10 months ago

@Lightricks Legend!

The Gaslight Detective ®'s profile picture
The Gaslight Detective ®10 months ago

@Lightricks Holy shit

BigFuLove's profile picture
BigFuLove10 months ago

@Lightricks Can I train Lora on rtx 5080 + 64 GB RAM?

Alpha Girth 🔞's profile picture
Alpha Girth 🔞10 months ago

@Lightricks I am getting a dataset error. It says there are no images, but I have a dataset of 14 videos with captions in the dataset. Any idea? : AssertionErrorAssertionError: : no images found in /app/ai-toolkit/datasets/loratestno images found in /app/ai-toolkit/datasets/loratest

Ostris's profile picture
Ostris10 months ago

@Lightricks On the dataset, you have to designate number of frames. If it is 1, it looks for images, if it is more than 1, it looks for videos. I assume you have it set to 1.

Alpha Girth 🔞's profile picture
Alpha Girth 🔞10 months ago

@Lightricks yep. that was 100% it! Sorry to take your time with such a newb question. Sending $20 your way via PayPal when I cash out from Patreon this evening. I truly appreciate your hard work!

Ostris's profile picture
Ostris10 months ago

@Lightricks Thank you. No issue at all, I need to surface that error, better, you are not the first today to run into it.

Related Videos