Text-to-3D
Diffusers
Safetensors
English
StableDiffusionLDM3DPipeline
stable-diffusion
stable-diffusion-diffusers
text-to-image
Eval Results (legacy)
Instructions to use Intel/ldm3d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Intel/ldm3d with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Intel/ldm3d", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -36,7 +36,8 @@ pipe_ldm3d.to("cuda")
|
|
| 36 |
prompt ="A picture of some lemons on a table"
|
| 37 |
name = "lemons"
|
| 38 |
|
| 39 |
-
|
|
|
|
| 40 |
rgb_image[0].save(name+"_ldm3d_rgb.jpg")
|
| 41 |
depth_image[0].save(name+"_ldm3d_depth.png")
|
| 42 |
```
|
|
|
|
| 36 |
prompt ="A picture of some lemons on a table"
|
| 37 |
name = "lemons"
|
| 38 |
|
| 39 |
+
output = pipe_ldm3d(prompt)
|
| 40 |
+
rgb_image, depth_image = output.rgb, output.depth
|
| 41 |
rgb_image[0].save(name+"_ldm3d_rgb.jpg")
|
| 42 |
depth_image[0].save(name+"_ldm3d_depth.png")
|
| 43 |
```
|