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

Get the prev sample like in diffusers API #92

Open
Abc11c opened this issue Mar 30, 2024 · 0 comments
Open

Get the prev sample like in diffusers API #92

Abc11c opened this issue Mar 30, 2024 · 0 comments

Comments

@Abc11c
Copy link

Abc11c commented Mar 30, 2024

Hi @cvignac ,

I'm unclear about the sampling part in the code base.

Like the add_noise step here

I'm wondering if there is a prev_sample while performing reverse process?

for k in self.noise_scheduler.timesteps:
            # predict noise
            # inverse diffusion step (remove noise)
            noise_pred = ema_nets['noise_pred_net'](
                sample=naction,
                timestep=k,
                global_cond=obs_cond
            )

            # inverse diffusion step (remove noise)
            naction = self.noise_scheduler.step(
                model_output=noise_pred,
                timestep=k,
                sample=naction
            ).prev_sample

Any pointers are helpful

Thanks!

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