estellea commited on
Commit
ca0f4ff
1 Parent(s): 8a900a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-4c",
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=50,
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: