RamAnanth1 commited on
Commit
a36a6fa
1 Parent(s): 529cac2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,9 +14,9 @@ DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
14
  zoe = model_zoe_n.to(DEVICE)
15
 
16
  def process_image(image):
17
- depth_numpy = zoe.infer_pil(image) # as numpy
18
- depth_pil = zoe.infer_pil(image, output_type="pil") # as 16-bit PIL Image
19
- colored_depth = colorize(depth_pil)
20
 
21
  return colored_depth
22
 
 
14
  zoe = model_zoe_n.to(DEVICE)
15
 
16
  def process_image(image):
17
+ depth = zoe.infer_pil(image) # as numpy
18
+
19
+ colored_depth = colorize(depth)
20
 
21
  return colored_depth
22