Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training code for VAE #28

Open
kl2004 opened this issue Apr 19, 2024 · 22 comments
Open

Training code for VAE #28

kl2004 opened this issue Apr 19, 2024 · 22 comments

Comments

@kl2004
Copy link

kl2004 commented Apr 19, 2024

Thanks for the great work and the released code base! 💯

After checking current training code, I notice that the VAE is loading from the pretrained checkpoint vae_ch160v4096z32.pth.

As mentioned #5, the training code for VAE will be released at https://github.com/FoundationVision/vae-pro. Is there a target date for it? I'm very interested in training a VAE model on my custom dataset.

@luohao123
Copy link

Same request here, @FoundationVision any plan to release the VAE training code?

@keyu-tian
Copy link
Contributor

@kl2004 @kl2004 we're actively cleaning the codes now. For a temporary reference you can refer to the VQVAE forward at https://github.com/FoundationVision/VAR/blob/main/models/vqvae.py#L56-L59.

@luohao123
Copy link

thanks,

def forward(self, inp, ret_usages=False):   # -> rec_B3HW, idx_N, loss
        VectorQuantizer2.forward
        h_BChw, usages, vq_loss, mean_entropy_loss = self.quantize(self.quant_conv(self.encoder(inp)), ret_usages=ret_usages)
        return self.decoder(self.post_quant_conv(h_BChw)), usages, vq_loss, mean_entropy_loss

does this runable code?

@RobertLuo1
Copy link

I would like to if the evaluation (e.g. FID LPIPS PSNR, etc.) code of VAE can be released?

@eanson023
Copy link

Still looking forward to it...

@ArmeriaWang
Copy link

Thanks for the great work @FoundationVision , still looking forward to the training code for multi-res VQVAE!

@FanqingM
Copy link

Still lokking forward

@StarCycle
Copy link

Still looking forward!

3 similar comments
@Junda24
Copy link

Junda24 commented May 15, 2024

Still looking forward!

@HalvesChen
Copy link

Still looking forward!

@SunzeY
Copy link

SunzeY commented May 27, 2024

Still looking forward!

@z379035389
Copy link

每天都来看一眼开源没👁️ 👁️

@StarCycle
Copy link

泪目啊,啥时候能开源

@keyu-tian
Copy link
Contributor

keyu-tian commented May 31, 2024

Dear all @kl2004 @luohao123 @RobertLuo1 @eanson023 @ArmeriaWang @FanqingM @StarCycle @Junda24 @HalvesChen @SunzeY @z379035389

Many thanks for your patience! Our VAE training and inference codebase and model weights would be released next week. Please stay tuned❤️!

I'll post the link here and in the README.

@HalvesChen
Copy link

Still looking forward!

@walking-shadow
Copy link

Dear all @kl2004 @luohao123 @RobertLuo1 @eanson023 @ArmeriaWang @FanqingM @StarCycle @Junda24 @HalvesChen @SunzeY @z379035389

Many thanks for your patience! Our VAE training and inference codebase and model weights would be released next week. Please stay tuned❤️!

I'll post the link here and in the README.

Still looking forward!

@Junda24
Copy link

Junda24 commented Jun 15, 2024

Still didn't opensouce?

Try ByteDance's work! They have a better work than this

What is the project link?Thanks!

@FoundationVision FoundationVision deleted a comment from luohao123 Jun 15, 2024
@kl2004
Copy link
Author

kl2004 commented Jun 25, 2024

Hi @keyu-tian, is the VAE training code being released at https://github.com/FoundationVision/vaex?

@mounchiliu
Copy link

Still looking forward!

@tomekster
Copy link

Hi @keyu-tian, are you still planning to release the training code? Looking forward to it!

@luohao123
Copy link

No, not planing.

@lxa9867
Copy link

lxa9867 commented Sep 4, 2024

Hi Guys,

I am trying to train the VQVAE (with multi-scale VQ) using the LlamaGen VAE training code. However, I found the codebook utilization rate remains low (about 58%). Does anyone have a good idea about this? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests