Skip to content

Commit 6667433

Browse files
estelleaflAflalo
andauthored
[ldm3d] Fixed small typo (huggingface#3820)
* fixed typo * updated doc to be consistent in naming * make style/quality --------- Co-authored-by: Aflalo <[email protected]>
1 parent f7cc9ad commit 6667433

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/source/en/api/pipelines/stable_diffusion/ldm3d_diffusion.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Running LDM3D is straighforward with the [`StableDiffusionLDM3DPipeline`]:
3535
```python
3636
>>> from diffusers import StableDiffusionLDM3DPipeline
3737

38-
>>> pipe_ldm3d = StableDiffusionLDM3DPipeline.from_pretrained("Intel/ldm3d")
38+
>>> pipe = StableDiffusionLDM3DPipeline.from_pretrained("Intel/ldm3d")
3939
prompt ="A picture of some lemons on a table"
40-
output = pipe_ldm3d(prompt)
40+
output = pipe(prompt)
4141
rgb_image, depth_image = output.rgb, output.depth
4242
rgb_image[0].save("lemons_ldm3d_rgb.jpg")
4343
depth_image[0].save("lemons_ldm3d_depth.png")

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_ldm3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
>>> pipe = pipe.to("cuda")
5050
5151
>>> prompt = "a photo of an astronaut riding a horse on mars"
52-
>>> output = pipe_ldm3d(prompt)
52+
>>> output = pipe(prompt)
5353
>>> rgb_image, depth_image = output.rgb, output.depth
5454
```
5555
"""

0 commit comments

Comments
 (0)