opied
>>> less_noisy_sample = scheduler.step(model_output=noisy_residual, timestep=2, sample=noisy_sample).prev_sample
>>> less_noisy_sample.shape
The less_noisy_sample can be passed to the next timestep where it’ll get even less noisier! Let’s bring it all together now and visualize the entire denoising process. 
First, create a function that postprocesses and displays the denoised image as a PIL.Image:


	Copied
>>> import PIL.Image
>>> impor