You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @yufan-aslp, thanks for your reminder. Actually, we follow the implementation of the official VQGAN repo, leading to the same bug. We haven’t tried the case where legacy is set to False, but it should have a small impact on the final performance.
quant_loss = torch.mean((z_q - z)**2) + torch.mean((z_q_2.detach()-z)**2) + self.beta * \ torch.mean((z_q_2 - z.detach()) ** 2)
this code is at src/IBQ/modules/vqvae/quantize.py 453
But in the paper eq10 the beta is for the z with the z_q_2.detach()
The text was updated successfully, but these errors were encountered: