tely, let’s write our own denoising process.
Load the model and scheduler:


	Copied
>>> from diffusers import DDPMScheduler, UNet2DModel

>>> scheduler = DDPMScheduler.from_pretrained("google/ddpm-cat-256")
>>> model = UNet2DModel.from_pretrained("google/ddpm-cat-256").to("cuda")
Set the number of timesteps to run the denoising process for:


	Copied
>>> scheduler.set_timesteps(50)
Setting the scheduler timesteps creates a tensor with evenly s