Skip to content

Commit d3f9c39

Browse files
Update src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py
Co-authored-by: Patrick von Platen <[email protected]>
1 parent 0cfa4ac commit d3f9c39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,8 @@ def __call__(
517517
>>> pipe = StableDiffusionDepth2ImgPipeline.from_pretrained(
518518
... "stabilityai/stable-diffusion-2-depth",
519519
... torch_dtype=torch.float16,
520-
... ).to("cuda")
520+
... )
521+
>>> pipe.to("cuda")
521522
522523
523524
>>> url = "http://images.cocodataset.org/val2017/000000039769.jpg"

0 commit comments

Comments
 (0)