Diffusers Tutorials
Pipelines, models and schedulers 解构基本pipeline pipeline是一种快速简便运行推理模型的方法,只需要四行代码即可生成图像 from diffusers import DDPMPipeline ddpm = DDPMPipeline.from_pretrained("google/ddpm-cat-256", use_safetensors=True).to("cuda") image = ddpm(num_inference_steps=25).images[0] image ...