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鈥檒l 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 · 9 comments
Open

Training code for VAE #28

kl2004 opened this issue Apr 19, 2024 · 9 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
Collaborator

@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!

1 similar comment
@Junda24
Copy link

Junda24 commented May 15, 2024

Still looking forward!

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

9 participants