From 7d7e7a36782e365a2eeaf824ab073639b44430ac Mon Sep 17 00:00:00 2001 From: Aryan Motgi Date: Thu, 21 May 2026 19:14:55 -0700 Subject: [PATCH] Fix from_pretrain typo in two pipeline docstrings The example snippets in StableCascadeDecoderPipeline and WuerstchenDecoderPipeline call .from_pretrain(...) instead of .from_pretrained(...). Users copy-pasting the rendered docs hit an AttributeError. The sibling prior-pipeline call on the line above already uses the correct from_pretrained. --- .../pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py | 2 +- .../pipelines/stable_cascade/pipeline_stable_cascade.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py b/src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py index b935733b744e..abad7d4cbf3d 100644 --- a/src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py +++ b/src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py @@ -45,7 +45,7 @@ >>> prior_pipe = WuerstchenPriorPipeline.from_pretrained( ... "warp-ai/wuerstchen-prior", torch_dtype=torch.float16 ... ).to("cuda") - >>> gen_pipe = WuerstchenDecoderPipeline.from_pretrain("warp-ai/wuerstchen", torch_dtype=torch.float16).to( + >>> gen_pipe = WuerstchenDecoderPipeline.from_pretrained("warp-ai/wuerstchen", torch_dtype=torch.float16).to( ... "cuda" ... ) diff --git a/src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py b/src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py index 80fe41c19d4e..3b9a4ffcdc66 100644 --- a/src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py +++ b/src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py @@ -44,7 +44,7 @@ >>> prior_pipe = StableCascadePriorPipeline.from_pretrained( ... "stabilityai/stable-cascade-prior", torch_dtype=torch.bfloat16 ... ).to("cuda") - >>> gen_pipe = StableCascadeDecoderPipeline.from_pretrain( + >>> gen_pipe = StableCascadeDecoderPipeline.from_pretrained( ... "stabilityai/stable-cascade", torch_dtype=torch.float16 ... ).to("cuda")