I used the ImagedataGenerator
and flow from directory
to train a CNN model for the task and saved into a .h5
file. While prediction the logits or an array of numbers are being displayed and not the labels.
I need the labels to be displayed while prediction.
One possible way I tried was to reassign value of each logit to the desired label or string but I think it could be a tediuos task
what I got:
[[1 0 0]]
what I need: "steve rogers"