Skip to content

Instantly share code, notes, and snippets.

@alankbi
Created February 11, 2020 01:48
Show Gist options
  • Save alankbi/9f58abf4134c33b48ef93fa3448ae97f to your computer and use it in GitHub Desktop.
Save alankbi/9f58abf4134c33b48ef93fa3448ae97f to your computer and use it in GitHub Desktop.
Train a custom model with Detecto in 4 lines of code
from detecto import core, utils, visualize
dataset = core.Dataset('images/')
model = core.Model(['alien', 'bat', 'witch'])
model.fit(dataset)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment