| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f7cc9ad commit 6667433
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,9 +35,9 @@ Running LDM3D is straighforward with the [`StableDiffusionLDM3DPipeline`]: | |||
| 35 | 35 | ```python | |
| 36 | 36 | >>> from diffusers import StableDiffusionLDM3DPipeline | |
| 37 | 37 | ||
| 38 | - >>> pipe_ldm3d = StableDiffusionLDM3DPipeline.from_pretrained("Intel/ldm3d") | ||
| 38 | + >>> pipe = StableDiffusionLDM3DPipeline.from_pretrained("Intel/ldm3d") | ||
| 39 | 39 | prompt ="A picture of some lemons on a table" | |
| 40 | - output = pipe_ldm3d(prompt) | ||
| 40 | + output = pipe(prompt) | ||
| 41 | 41 | rgb_image, depth_image = output.rgb, output.depth | |
| 42 | 42 | rgb_image[0].save("lemons_ldm3d_rgb.jpg") | |
| 43 | 43 | depth_image[0].save("lemons_ldm3d_depth.png") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,7 +49,7 @@ | |||
| 49 | 49 | >>> pipe = pipe.to("cuda") | |
| 50 | 50 | ||
| 51 | 51 | >>> prompt = "a photo of an astronaut riding a horse on mars" | |
| 52 | - >>> output = pipe_ldm3d(prompt) | ||
| 52 | + >>> output = pipe(prompt) | ||
| 53 | 53 | >>> rgb_image, depth_image = output.rgb, output.depth | |
| 54 | 54 | ``` | |
| 55 | 55 | """ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments