s, such as CompVis/stable-diffusion-v1-4 and runwayml/stable-diffusion-v1-5 can be used for multiple tasks, e.g. text-to-image or image-to-image.
If you want to use those checkpoints for a task that is different from the default one, you have to load it directly from the corresponding task-specific pipeline class:


	Copied
from diffusers import StableDiffusionImg2ImgPipeline

repo_id = "runwayml/stable-diffusion-v1-5"
pipe = StableDiffusionImg