Spidartist commited on
Commit
9a82fe2
·
1 Parent(s): 3798706

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -102,6 +102,7 @@ def ant_genus_classification(image):
102
  y_hat = model(image)
103
  y_hat = torch.nn.functional.softmax(y_hat, dim=1)
104
  preds = torch.argmax(y_hat, dim=1)
 
105
 
106
  confidences = {class_to_idx[i]: float(preds[i]) for i in range(len(classes))}
107
  return confidences
 
102
  y_hat = model(image)
103
  y_hat = torch.nn.functional.softmax(y_hat, dim=1)
104
  preds = torch.argmax(y_hat, dim=1)
105
+ print(preds.shape)
106
 
107
  confidences = {class_to_idx[i]: float(preds[i]) for i in range(len(classes))}
108
  return confidences