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

Can somebody convert this to coreml? #10

Open
ghost opened this issue Apr 15, 2020 · 6 comments
Open

Can somebody convert this to coreml? #10

ghost opened this issue Apr 15, 2020 · 6 comments

Comments

@ghost
Copy link

ghost commented Apr 15, 2020

No description provided.

@adrianboguszewski
Copy link

Hi malemo,

You can use coremltools from Apple https://apple.github.io/coremltools/. It's rather simple :)

@ghost
Copy link
Author

ghost commented May 14, 2020

Hi malemo,

You can use coremltools from Apple https://apple.github.io/coremltools/. It's rather simple :)

I thought it should be simple, but it's not.... I tried using coremltools. I was under the impression that it should be straight line conversion. Well it's not. You have to know original model well, because there're lots of debugging all the conversion errors you have to dig through. Given the fact that I know nothing about this model, how it wast build and all the ins and outs, makes it almost impossible for me to convert it. Thus I was wondering, somebody might have already converted it, or who's knowledgable enough to convert it.

@adrianboguszewski
Copy link

Which exact model do you want to convert?

You can use model.summary() to print all information about layers. The first one should be the input and the last one output.

@ghost
Copy link
Author

ghost commented May 15, 2020

I was trying to convert this face parsing model model, which didn't work, as there were lots of errors, which I have no ideas how to fix. Then I tried to convert same face parsing model, which was ported to Keras here:(https://github.com/shaoanlu/face_toolbox_keras), which didn't work either, again lots of errors.

model.summary() may be helpful but, again, I know noting about how model is build, layers, architecture etc. I just need this face parsing in model in .mlmodel format for iOS.

@adrianboguszewski
Copy link

Face parsing model is based on BiSeNet. You can find some information about this architecture here: https://arxiv.org/abs/1808.00897. I hope it will be useful.

@quangphap208
Copy link

hi @Malemo,
I have same issue. I tried convert to coreml, I am currently having problems "keras layer '<class 'keras.layers.core.lambda'>' not supported".

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

2 participants