Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS implementation #43

Open
eupston opened this issue Aug 27, 2018 · 3 comments
Open

iOS implementation #43

eupston opened this issue Aug 27, 2018 · 3 comments

Comments

@eupston
Copy link

eupston commented Aug 27, 2018

Hi there,

First off thanks for the classification model! I was wondering if you had any ideas about how to implement this in swift? I believe I successfully converted the HDF5 to a MLmodel, but it wants to accept an MLmultiarray as input. Any ideas about how to convert an audio stream to such an array? Thanks in advance!

@drscotthawley
Copy link
Owner

Hi @eupston! I have no experience with an iOS implementation, but I'd be interested in finding out the answer if you figure it out!

@scinfu
Copy link

scinfu commented Oct 14, 2018

How did you converted HDF5 to MLmodel?

@eupston
Copy link
Author

eupston commented Oct 14, 2018

@scinfu this right here mate:

from keras.models import load_model
import coremltools

coreml_model = coremltools.converters.keras.convert('weights.hdf5')
coreml_model.save('MyModel.mlmodel')

you can include class labels as a parameter in the convert as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants