Spaces:
Build error
Build error
Update app.py
Browse files
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)[
|
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 |
|