Created
August 1, 2019 13:21
-
-
Save OlafenwaMoses/99dfd9522145926e828e956bb6678e1b to your computer and use it in GitHub Desktop.
Code to evaluate saved detection models using ImageAI
This file contains hidden or 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 imageai.Detection.Custom import DetectionModelTrainer | |
trainer = DetectionModelTrainer() | |
trainer.setModelTypeAsYOLOv3() | |
trainer.setDataDirectory(data_directory="hololens") | |
trainer.evaluateModel(model_path="hololens/models", json_path="hololens/json/detection_config.json", iou_threshold=0.5, object_threshold=0.3, nms_threshold=0.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment