Skip to content

Instantly share code, notes, and snippets.

@OlafenwaMoses
Last active January 5, 2021 15:08
Show Gist options
  • Save OlafenwaMoses/e43907f6f33605ffc94ff03872373058 to your computer and use it in GitHub Desktop.
Save OlafenwaMoses/e43907f6f33605ffc94ff03872373058 to your computer and use it in GitHub Desktop.
from imageai.Classification.Custom import ClassificationModelTrainer
model_trainer = ClassificationModelTrainer()
model_trainer.setModelTypeAsResNet50()
model_trainer.setDataDirectory("idenprof")
model_trainer.trainModel(num_objects=10, num_experiments=200, enhance_data=True, batch_size=32, show_network_summary=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment