LTX-Video-Trainer icon indicating copy to clipboard operation
LTX-Video-Trainer copied to clipboard

Are there any plans to release VAE training code?

Open ebartrum opened this issue 1 year ago • 9 comments

Many thanks for releasing this impressive work!

I am currently using LTX Video as a base model for a research project. For my specific use case, I need to modify and retrain the VAE, and have been having some trouble getting this to work. In particular, my retrained VAE often outputs videos which are stationary, with all video frames identical to the input image. I wondered if you have observed this kind of failure case before, or have any insights on it? Are you planning to release VAE training code at some point?

Thanks again and congratulations on the paper!

ebartrum avatar Mar 25 '25 10:03 ebartrum

Hi Ed.

We did not observe this kind of failure case. Please notice the videos fed into the VAE should have 1+8*k frames for it to work properly. Otherwise, I would suspect an issue in the training code or data.

Just to make sure - this issue happens when reconstructing videos with your retrained (finetuned?) VAE, right?

guyltrks avatar Mar 25 '25 12:03 guyltrks

OK, thanks. Yes, the issue happens when reconstructing videos with the retrained VAE only!

ebartrum avatar Mar 25 '25 16:03 ebartrum

Would you be able to release code for the Video DWT Loss mentioned in your paper section 2.1.5? That would be very helpful!

ebartrum avatar Mar 25 '25 17:03 ebartrum

@ebartrum just to make sure, with the original VAE before your retraining this doesn't happen? Because we know of a tendency of LTXV to create frozen or semi-frozen videos in I2V mode, which we mitigate by adding video codec compression artifacts to the conditioning image.

harelc avatar Mar 27 '25 10:03 harelc

Correct, I haven't seen it with the original VAE, although I see other artifacts in that case! After going through the decoder code, I got the impression that the VideoUpsampler3d blocks are indexing the hidden states in such a way that token 0 only represents frame 0 (as mentioned in the caption to figure 4) is that right? whereas the other tokens represent 8 frames? I suspect that might be the underlying reason for the effect I have observed - but still need to test this

ebartrum avatar Mar 27 '25 12:03 ebartrum

Yes, that is correct. The starting frame is the only one with a 1:1 mapping to latents, thereafter it's 8:1.

harelc avatar Mar 27 '25 13:03 harelc

I have additionally noticed an issue where the autoencoded frame 0 is noisier than the subsequent frames (again, this is in my trained LTX video autoencoder results). Do you have any insights into what may be causing that?

ebartrum avatar Mar 27 '25 14:03 ebartrum

Unfortunately, for some samples the RGB quality is poor even for decoded data... Hence, are there any plans to release the training code of VAE?

julia-joanna avatar Aug 04 '25 07:08 julia-joanna

Your paper mentioned that Video DWT Loss and gan loss can ensure the reconstruction of high-frequency details, which are important for VAE training. Thus, are you planning to release VAE training code?

xylshawn avatar Aug 09 '25 18:08 xylshawn