Skip to content

Instantly share code, notes, and snippets.

@alankbi
Last active February 16, 2020 02:26
Show Gist options
  • Save alankbi/8375474aaf0c8a8f18f8618209832059 to your computer and use it in GitHub Desktop.
Save alankbi/8375474aaf0c8a8f18f8618209832059 to your computer and use it in GitHub Desktop.
Use a pre-trained model with Detecto
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