bartduis commited on
Commit
b78737e
·
verified ·
1 Parent(s): 67eee3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -166,7 +166,7 @@ def input_to_glb(outdir,img,depth_dict,mask,rotated=False):
166
  def depth_moge(input_img):
167
 
168
  input_img_torch = torch.tensor(input_img / 255, dtype=torch.float32, device=device).permute(2, 0, 1)
169
- output = moge_model.infer(input_img_torch)['depth'].cpu()
170
  return output
171
 
172
  @GPU(duration = 180)
 
166
  def depth_moge(input_img):
167
 
168
  input_img_torch = torch.tensor(input_img / 255, dtype=torch.float32, device=device).permute(2, 0, 1)
169
+ output = moge_model.infer(input_img_torch)
170
  return output
171
 
172
  @GPU(duration = 180)