Spaces:
Runtime error
Runtime error
File size: 315 Bytes
864dbf5 9c8bf95 4ecf70e 6cae4b7 4ecf70e 6cae4b7 4ecf70e 6cae4b7 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import os
os.environ["HF_HOME"] = "/tmp/hf_cache"
from diffusers import StableDiffusionLDM3DPipeline
pipe_ldm3d = StableDiffusionLDM3DPipeline.from_pretrained("Intel/ldm3d")
prompt = "A picture of a castle in the mountains"
output = pipe_ldm3d(prompt)
obj_file = output.obj
obj_file[0].save("castle_ldm3d.obj") |