from diffusers import DDPMPipeline pipeline = DDPMPipeline.from_pretrained('dlcvUIUC/ddpm-celebahq-finetuned-cartoonfaces-5') image = pipeline().images[0] image