Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 13 |
print(f"Device is {device}")
|
| 14 |
torch_type = torch.float16 if device == "cuda" else torch.float32
|
| 15 |
pipe = StableDiffusionLDM3DPipeline.from_pretrained(
|
| 16 |
-
"Intel/ldm3d-
|
| 17 |
torch_dtype=torch_type
|
| 18 |
# , safety_checker=None
|
| 19 |
)
|
|
@@ -56,7 +56,7 @@ def predict(
|
|
| 56 |
negative_prompt=negative_prompt,
|
| 57 |
guidance_scale=guidance_scale,
|
| 58 |
generator=generator,
|
| 59 |
-
num_inference_steps=
|
| 60 |
) # type: ignore
|
| 61 |
rgb_image, depth_image = output.rgb[0], output.depth[0] # type: ignore
|
| 62 |
with NamedTemporaryFile(suffix=".png", delete=False, dir="tmp") as rgb_file:
|
|
|
|
| 13 |
print(f"Device is {device}")
|
| 14 |
torch_type = torch.float16 if device == "cuda" else torch.float32
|
| 15 |
pipe = StableDiffusionLDM3DPipeline.from_pretrained(
|
| 16 |
+
"Intel/ldm3d-pano",
|
| 17 |
torch_dtype=torch_type
|
| 18 |
# , safety_checker=None
|
| 19 |
)
|
|
|
|
| 56 |
negative_prompt=negative_prompt,
|
| 57 |
guidance_scale=guidance_scale,
|
| 58 |
generator=generator,
|
| 59 |
+
num_inference_steps=100,
|
| 60 |
) # type: ignore
|
| 61 |
rgb_image, depth_image = output.rgb[0], output.depth[0] # type: ignore
|
| 62 |
with NamedTemporaryFile(suffix=".png", delete=False, dir="tmp") as rgb_file:
|