Unverified Commit 66674330 authored by estelleafl's avatar estelleafl Committed by GitHub
Browse files

[ldm3d] Fixed small typo (#3820)



* fixed typo

* updated doc to be consistent in naming

* make style/quality

---------
Co-authored-by: default avatarAflalo <estellea@isl-iam1.rr.intel.com>
parent f7cc9adc
...@@ -35,9 +35,9 @@ Running LDM3D is straighforward with the [`StableDiffusionLDM3DPipeline`]: ...@@ -35,9 +35,9 @@ Running LDM3D is straighforward with the [`StableDiffusionLDM3DPipeline`]:
```python ```python
>>> from diffusers import StableDiffusionLDM3DPipeline >>> from diffusers import StableDiffusionLDM3DPipeline
>>> pipe_ldm3d = StableDiffusionLDM3DPipeline.from_pretrained("Intel/ldm3d") >>> pipe = StableDiffusionLDM3DPipeline.from_pretrained("Intel/ldm3d")
prompt ="A picture of some lemons on a table" prompt ="A picture of some lemons on a table"
output = pipe_ldm3d(prompt) output = pipe(prompt)
rgb_image, depth_image = output.rgb, output.depth rgb_image, depth_image = output.rgb, output.depth
rgb_image[0].save("lemons_ldm3d_rgb.jpg") rgb_image[0].save("lemons_ldm3d_rgb.jpg")
depth_image[0].save("lemons_ldm3d_depth.png") depth_image[0].save("lemons_ldm3d_depth.png")
......
...@@ -49,7 +49,7 @@ EXAMPLE_DOC_STRING = """ ...@@ -49,7 +49,7 @@ EXAMPLE_DOC_STRING = """
>>> pipe = pipe.to("cuda") >>> pipe = pipe.to("cuda")
>>> prompt = "a photo of an astronaut riding a horse on mars" >>> prompt = "a photo of an astronaut riding a horse on mars"
>>> output = pipe_ldm3d(prompt) >>> output = pipe(prompt)
>>> rgb_image, depth_image = output.rgb, output.depth >>> rgb_image, depth_image = output.rgb, output.depth
``` ```
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment