Text-to-3D
Diffusers
Safetensors
English
StableDiffusionUpscaleLDM3DPipeline
stable-diffusion
stable-diffusion-diffusers
text-to-image
Eval Results (legacy)
Instructions to use Intel/ldm3d-sr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Intel/ldm3d-sr 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-sr", 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
|
@@ -77,7 +77,7 @@ pipe_ldm3d_upscale = DiffusionPipeline.from_pretrained("Intel/ldm3d-sr", custom_
|
|
| 77 |
pipe_ldm3d_upscale.to("cuda")
|
| 78 |
|
| 79 |
low_res_img = Image.open(f"lemons_ldm3d_rgb.jpg").convert("RGB")
|
| 80 |
-
low_res_depth = Image.open(f"lemons_ldm3d_depth.png")
|
| 81 |
outputs = pipe_ldm3d_upscale(prompt="high quality high resolution uhd 4k image", rgb=low_res_img, depth=low_res_depth, num_inference_steps=50, target_res=[1024, 1024])
|
| 82 |
|
| 83 |
upscaled_rgb, upscaled_depth =outputs.rgb[0], outputs.depth[0]
|
|
|
|
| 77 |
pipe_ldm3d_upscale.to("cuda")
|
| 78 |
|
| 79 |
low_res_img = Image.open(f"lemons_ldm3d_rgb.jpg").convert("RGB")
|
| 80 |
+
low_res_depth = Image.open(f"lemons_ldm3d_depth.png")
|
| 81 |
outputs = pipe_ldm3d_upscale(prompt="high quality high resolution uhd 4k image", rgb=low_res_img, depth=low_res_depth, num_inference_steps=50, target_res=[1024, 1024])
|
| 82 |
|
| 83 |
upscaled_rgb, upscaled_depth =outputs.rgb[0], outputs.depth[0]
|