Last active
February 16, 2020 02:26
-
-
Save alankbi/8375474aaf0c8a8f18f8618209832059 to your computer and use it in GitHub Desktop.
Use a pre-trained model with Detecto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from detecto import core, utils, visualize | |
image = utils.read_image('fruit.jpg') | |
model = core.Model() | |
labels, boxes, scores = model.predict_top(image) | |
visualize.show_labeled_image(image, boxes, labels) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment