gherget commited on
Commit
e00031d
1 Parent(s): 57241c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -84,7 +84,7 @@ def predict(net, inputs_val, shapes_val, hypar, device):
84
 
85
  inputs_val_v = Variable(inputs_val, requires_grad=False).to(device) # wrap inputs in Variable
86
 
87
- ds_val = net(inputs_val_v)[0] # list of 6 results
88
 
89
  pred_val = ds_val[0][0,:,:,:] # B x 1 x H x W # we want the first one which is the most accurate prediction
90
 
 
84
 
85
  inputs_val_v = Variable(inputs_val, requires_grad=False).to(device) # wrap inputs in Variable
86
 
87
+ ds_val = net(inputs_val_v)[1] # list of 6 results
88
 
89
  pred_val = ds_val[0][0,:,:,:] # B x 1 x H x W # we want the first one which is the most accurate prediction
90