ImageAI
ImageAI copied to clipboard
Illegal instruction (core dumped)
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?