Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
a0405u committed Dec 29, 2020
1 parent 0bc2346 commit 31d2902
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lab3/lab3.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def predict(image):
#output = model_trt(input)
output = model(input)

probability = torch.nn.Softmax(output)
sm = torch.nn.Softmax()
probability = sm(output)

print("image processed in {}s".format(round(time.time() - timest, 3)))

Expand Down

0 comments on commit 31d2902

Please sign in to comment.