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

Question about the timestep #17

Open
ug-kim opened this issue Nov 5, 2024 · 0 comments
Open

Question about the timestep #17

ug-kim opened this issue Nov 5, 2024 · 0 comments

Comments

@ug-kim
Copy link

ug-kim commented Nov 5, 2024

Hi, thank you for sharing the great work.

I have a question about t~p(t), r~p(r | t, Iters).

  • Are these t and r timesteps between 0 and 1000, which is the same as the traditional DDPM timestep range?
  • In the loss code, you sampled the timestep with normal distribution with P_mean and P_std. When I checked the values of t, it is normally estimated to be close to 1. If our maximum timestep T=1000, is it the correct value? Or did you use any other timestep range?
# t ~ p(t) and r ~ p(r|t, iters) (Mapping fn)
rnd_normal = torch.randn([images.shape[0], 1, 1, 1], device=images.device)
t = (rnd_normal * self.P_std + self.P_mean).exp()
r = self.t_to_r(t)
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