So i was following Transfer Learning for Computer Vision Tutorial — PyTorch Tutorials 1.11.0+cu102 documentation to make my program. The problem I am having is dealing with images with out the target, eg. a blank picture of idk grass. Currently t he program thinks everything is the target class. So i decided to print the probality of it being that class as a percentage.
This is my current code:
outputs = model(inputs)
print(nn.functional.softmax(outputs, dim=1))
The result is this:
tensor([[1.0000e+00, 2.2341e-06],
[1.0000e+00, 2.7773e-06],
[1.0000e+00, 3.9080e-06],
[9.9999e-01, 5.0023e-06]])
My question is: How do i turn theese numebrs into percentages