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
Each image prediction also includes an attribute class_names with all the classes names that the model tries to predict, here is an example:
images_predictions=model.predict(IMAGES)
forimage_predictioninimages_predictions:
class_names=image_prediction.class_names# List of class names the model tries to predict for in the imagelabels=image_prediction.prediction.labelsconfidence=image_prediction.prediction.confidencebboxes=image_prediction.prediction.bboxes_xyxyfori, (label, conf, bbox) inenumerate(zip(labels, confidence, bboxes)):
print("prediction: ", i)
print("label_id: ", label)
print("label_name: ", class_names[int(label)])
print("confidence: ", conf)
print("bbox: ", bbox)
print("--"*10)
@maninka123 we just released a new documentation on model.predict() was added, check it out for more information, and feel free to let us know if anything is unclear.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: