ImageAI icon indicating copy to clipboard operation
ImageAI copied to clipboard

Illegal instruction (core dumped)

Open nohing opened this issue 2 years ago • 0 comments

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?

nohing avatar Oct 05 '22 15:10 nohing