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

How to get pred_original_sample when using PNDMScheduler #24

Open
dzlab opened this issue Dec 6, 2022 · 1 comment
Open

How to get pred_original_sample when using PNDMScheduler #24

dzlab opened this issue Dec 6, 2022 · 1 comment
Assignees

Comments

@dzlab
Copy link

dzlab commented Dec 6, 2022

@johnowhitaker in the Stable Diffusion Deep Dive.ipynb notebook, section The UNET and CFG.

You get latents_x0 because the scheduler exposes pred_original_sample

    latents_x0 = scheduler.step(noise_pred, t, latents).pred_original_sample # Using the scheduler (Diffusers 0.4 and above)

How to get this pred_original_sample when using PNDMScheduler? As this scheduler does not expose this value.

@johnowhitaker
Copy link
Collaborator

I edited some schedulers to expose that a while back, I'll see how easy it is to do the same for PNDMScheduler, but that could take a while :)

@johnowhitaker johnowhitaker self-assigned this Dec 6, 2022
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