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

No scaling factor? #4

Open
Tord-Zhang opened this issue Jun 9, 2024 · 1 comment
Open

No scaling factor? #4

Tord-Zhang opened this issue Jun 9, 2024 · 1 comment

Comments

@Tord-Zhang
Copy link

When using the encoder, there is no need to apply a scaling factor? which is used in sd1.5 vae.
latent = vae3d.encode(video).latent_dist.sample()
In SD 1.5, it should be
latent = vae3d.encode(video).latent_dist.sample().mul_(scaling_factor)

@Tord-Zhang Tord-Zhang changed the title New scaling factor? No scaling factor? Jun 9, 2024
@sijeh
Copy link
Collaborator

sijeh commented Jun 11, 2024

The scale factor of CV-VAE is the same as that of SD2.1, both being 0.18215. The scale factor is used for the input and output of Unet, but it is not necessary to use the scale factor when only encoding and decoding images and videos.

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

2 participants