Decodes the prediction of an ImageNet model.
View aliases
Main aliases
tf.keras.applications.resnet.decode_predictions
See Migration guide for more details.
`tf.compat.v1.keras.applications.resnet.decode_predictions`, `tf.compat.v1.keras.applications.resnet50.decode_predictions`
tf.keras.applications.resnet50.decode_predictions(
preds, top=5
)
Args | |
---|---|
preds
|
Numpy array encoding a batch of predictions. |
top
|
Integer, how many top-guesses to return. Defaults to 5. |
Returns | |
---|---|
A list of lists of top class prediction tuples
(class_name, class_description, score) .
One list of tuples per sample in batch input.
|