OlafenwaMoses / ImageAI

A python library built to empower developers to build applications and systems with self-contained Computer Vision capabilities
https://www.genxr.co/#products
MIT License
8.48k stars 2.18k forks source link

TypeError: ClassificationModelTrainer.trainModel() got an unexpected keyword argument 'num_objects' #793

Closed russellcurtis closed 1 year ago

russellcurtis commented 1 year ago

I've been trying to follow these instructions on both Windows and Linux but I constantly come up against the error: TypeError: ClassificationModelTrainer.trainModel() got an unexpected keyword argument 'num_objects' when I run the training model.

Am I missing a dependency or something?

OlafenwaMoses commented 1 year ago

Kindly check the documentation: https://imageai.readthedocs.io/en/latest/customdetection/index.html

The function trainModel() no longer accept parameters. Parse them into setTrainConfig() instead