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

Question about the normalization of the input data for ddpm. #307

Open
MingCongSu opened this issue Apr 13, 2024 · 0 comments
Open

Question about the normalization of the input data for ddpm. #307

MingCongSu opened this issue Apr 13, 2024 · 0 comments

Comments

@MingCongSu
Copy link

MingCongSu commented Apr 13, 2024

Just want to ask two naive questions as I am new to the diffusion model. 馃槄

I noticed that in README.md, it says that the data is normalized from 0 to 1.

training_images = torch.rand(8, 3, 128, 128) # images are normalized from 0 to 1

  1. Why do we have to conduct this normalization on data? If we didn't do that, would DDPM still work properly?
  2. If the input is latent like LDM does, do I have to make sure the latent space is also from 0 to 1?
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

1 participant