akhaliq HF staff commited on
Commit
b936066
1 Parent(s): ad97e6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -8,9 +8,8 @@ import numpy as np
8
  model = hub.Module(name='MiDaS_Large', use_gpu=False)
9
 
10
  def inference(img):
11
- result = model.depth_estimation(images=[cv2.imread(img)])
12
- data32 = np.clip(result[0], -1, 1)
13
- return data32
14
 
15
 
16
  title="MiDaS_Large"
 
8
  model = hub.Module(name='MiDaS_Large', use_gpu=False)
9
 
10
  def inference(img):
11
+ model.depth_estimation(images=[cv2.imread(img)],visualization=True)
12
+ return './output/0.png'
 
13
 
14
 
15
  title="MiDaS_Large"