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.5k stars 2.19k forks source link

Custom Model Type Detector #194

Closed AndrewBrenev closed 5 years ago

AndrewBrenev commented 5 years ago

Hi, I've trained my model and now I'd like to detect this objects. Here I found that "The models supported are RetinaNet, YOLOv3 and TinyYOLOv3".
Is there any custom model type detector, exept this three? Or is there any other way to detect objects on the model I trained? Here ids the code I use:

from imageai.Detection import ObjectDetection
import os
execution_path = os.getcwd()
detector = ObjectDetection()
detector.setModelTypeAsRetinaNet()
detector.setModelPath( os.path.join(execution_path , "model_ex-020_acc-0.500000.h5"))
detector.loadModel()
detections=detector.detectObjectsFromImage(input_image=os.path.join(execution_path,"icon.jpg"),
output_image_path=os.path.join(execution_path , "iconnew.jpg"))
for eachObject in detections:
print(eachObject["name"] , " : " , eachObject["percentage_probability"] )

Compilation of this code gives an error about disparity layers. Thank you for your reply.

JStuve commented 5 years ago

I too am waiting for this. It seems that it was mentioned that this feature will be release in the next update. That was back on Feb 22nd of this year.

bread-on-toast commented 5 years ago

Hopefully there will be progress soon...

OlafenwaMoses commented 5 years ago

Keep up to date with this thread. #8