You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
" I'm not able to plot the ground truth and predictions."
What do you mean by plot? Like literally show the image using matplotlib? The predictions should be coming out in the shape of (batch size height, width, number of classes), so for you to visualize the prediction you need to use something like numpy.argmax(prediction, axis = 2) since we want an array that has only a single channel as opposed to 8. If you used to_categorical() then the ground truth will need to be treated the same way.
I have trained the model with 8 classes. But during prediction, I'm not able to plot the ground truth and predictions.
The text was updated successfully, but these errors were encountered: