@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 in the Stable Diffusion Deep Dive.ipynb notebook, section The UNET and CFG.
You get
latents_x0because the scheduler exposespred_original_sampleHow to get this
pred_original_samplewhen usingPNDMScheduler? As this scheduler does not expose this value.