Pipelines The DiffusionPipeline is the quickest way to load any pretrained diffusion pipeline from the Hub for inference. You shouldn’t use the DiffusionPipeline class for training or finetuning a diffusion model. Individual
components (for example, UNet2DModel and UNet2DConditionModel) of diffusion pipelines are usually trained individually, so we suggest directly working with them instead. The pipeline type (for example StableDiffusionPipelin