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

Illegal instruction (core dumped) #768

Open nohing opened 1 year ago

nohing commented 1 year ago

Hello, when I run this `code:

`execution_path = os.getcwd() prediction = ImagePrediction()

prediction.setModelTypeAsMobileNetV2()

prediction.setModelPath(os.path.join(execution_path, "mobilenet_v2.h5")) prediction.loadModel()

predictions, probabilities = prediction.classifyImage(os.path.join(execution_path, "giraffe.jpg"), result_count=5) for eachPrediction, eachProbability in zip(predictions, probabilities): print(eachPrediction, " : ", eachProbability)`

I get this error: Illegal instruction (core dumped)

What does it mean and how can I fix it?