Mac M2 using turicreate module: zsh: illegal hardware instruction error. Help, I've been working on it for 2 weeks and still haven't solved it
I use : Mac 2022 M2 MacBook
Python : 3.6.3
This is my code
import turicreate as tc
image_folder = 'image1/test'
data = tc.image_analysis.load_images(image_folder, with_path=True)
data['label'] = data['path'].apply (lambda path: 'D_4015' if 'D_4015' in path else 'DB_013')
data.save('diller.sframe')
train_data, test_data = data.random_split(0.8, seed=2)
model = tc.image_classifier.create(train_data, target='label')
predictions = model.predict(test_data)
metrics = model.evaluate(test_data)
model.export_coreml('diller.mlmodel')
bug code
zsh: illegal hardware instruction /Users/kunhua/Documents/python/demo_turicreate/venv/bin/python
picture:
How can I solve this problem?
This is turicreate gituhub website:
https://github.com/apple/turicreate
I don't understand why Apple's code can't be used on Apple computers
MacBook Pro 13″, macOS 12.6