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

Why add_noise before sample_loop #47

Open
LiuRicky opened this issue May 14, 2024 · 0 comments
Open

Why add_noise before sample_loop #47

LiuRicky opened this issue May 14, 2024 · 0 comments

Comments

@LiuRicky
Copy link

Thanks for your owesome work.

In run_tokenflow_pnp.py, why using "noisy_latents = self.scheduler.add_noise(self.latents, self.eps, self.scheduler.timesteps[0])" line257 before "edited_frames = self.sample_loop(noisy_latents, torch.arange(self.config["n_frames"]))" line 258.

It seems directly using "edited_frames = self.sample_loop(noisy_latents, torch.arange(self.config["n_frames"]))" is fine since it starts at timestamp 0. And the pnp-diffusers (https://github.com/MichalGeyer/pnp-diffusers, which this project may refer) just use "edited_img = self.sample_loop(self.eps)".

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