Comments (6)
Further more, the model works all fine in Turi, I am able to make accurate predictions on new images. So not sure why this export to CoreML keeps crashing?
from turicreate.
@helloniklas Thanks for trying out the object detector! I'm sorry you are having this issue. I have never seen it before and it looks difficult for me to fix unless I can reproduce it. I suspect it may be something with your Python installation, so any additional information about your Python setup would help. For instance, is it the Python that comes with macOS or did you install it yourself (homebrew, macports, conda, etc.)?
Also, did you try export_coreml
for any of the other models? For instance, does the image classifier work?
from turicreate.
@gustavla So I haven't tried other models yet. I believe on this laptop python was installed with Homebrew, as well as the default Xcode install of python. However, I was under the impression that when following your install steps and setting it up with a virtualenv it would use the Python in that virtualenv. I'm new to the Python world. Is there a way I can ensure the virtualenv is using the correct python install?
Googling the error I get people do seem to mention it has to do with different python versions.
If I type which python it comes back with
/Users/niklas/development/turi/bin/python
And if I type python --version it comes back with
Python 2.7.14
from turicreate.
@gustavla So after setting up the virtualenv with virtualenv --python=/usr/bin/python2.7 turiAgain
It now seems to work, CoreML model is saved out. Good times.
I guess without specifying the python path to use it used some incompatible version, although it still was python2.7
from turicreate.
@helloniklas coremltools does not work with python installed via homebrew. That explains the error you are getting. I filed an issue with that repository (apple/coremltools#88)
from turicreate.
Got same error as @helloniklas. Everything worked in terms of training a model using the virtualenv (after lots of thrashing through docs - and me being unfamiliar with python).
But when it came to exporting to CoreML, I got the same fatal error.
Installing Anaconda resolved the issue for me.
from turicreate.
Related Issues (20)
- TuriCreate not saving nor exporting in Google Colab HOT 1
- Install turicreate on Google colab HOT 1
- Is the image similarity example broken for CoreML?
- Turi Create installation on anaconda virtual environment HOT 1
- issue seaborn
- GraphLab Create requires a license to use in linux HOT 1
- SFRAME problem and turicreate HOT 3
- Can you continue training ObjectDetector model?
- Object detection - Segfault after a large number of iterations
- available data sets in turicreate
- Mac M2 model.export_coreml('.mlmodel') Unable to export model HOT 1
- TuriCreate still doesn't work on M1 using rosetta terminal HOT 7
- While training object_detector in colab randomly Using CPU/GPU to create model.
- Trying to create a model on a larger dataset - Loss stuck at the same number and not moving, resulting model predictions detect nothing
- Support Python 3.9 HOT 1
- pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
- Simple Image Classification Model gives different confidence level (Between Coreml UI and iOS App)
- pip dependency conflicts: conda-repo-cli 1.0.20 requires nbformat==5.4.0, but you have nbformat 5.7.3 which is incompatible. HOT 1
- AttributeError: module 'numpy' has no attribute 'typeDict' HOT 1
- Cannot install and import TuriCreate HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turicreate.