Display results for one sample prediction

check the step 3 in below.
You can see you have three things. Catergory 33, tensor 33, and the tensor matrix.

  1. The first one is the array with the catergory name. For example,33 catergory and the first one is white dog.
  2. The second one in these 3 things is the one hot vector.
  3. The last one, which the tensor matrix, is the image if you are predicting image.

See the step 3 also use predict(img)? It is the same way as how you use.
Again, pred_class, pred_idx, outputs. #check those 1, 2 and 3 in above.
image

Need more help? Please reply in below or tag someone.
referees to Lesson 1. How to use saved model?

1 Like