check the step 3 in below.
You can see you have three things. Catergory 33, tensor 33, and the tensor matrix.
- The first one is the array with the catergory name. For example,33 catergory and the first one is white dog.
- The second one in these 3 things is the one hot vector.
- 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.
Need more help? Please reply in below or tag someone.
referees to Lesson 1. How to use saved model?