e class from the checkpoint, downloads, and caches all the required configuration and weight files, and returns a pipeline instance ready for inference.   Copied from diffusers import DiffusionPipeline

repo_id = "runwayml/stable-diffusion-v1-5"
pipe = DiffusionPipeline.from_pretrained(repo_id, use_safetensors=True) You can also load a checkpoint with its specific pipeline class. The example above loaded a Stable Diffusion model; to get the sam