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

Converting model to CoreML #23

Open
MetaDev opened this issue Feb 17, 2019 · 5 comments
Open

Converting model to CoreML #23

MetaDev opened this issue Feb 17, 2019 · 5 comments

Comments

@MetaDev
Copy link

MetaDev commented Feb 17, 2019

I would like to convert the model to CoreML to use it on the iPhone.
But the DSNTNN layer is not supported because of its flip and linspace pytroch operands.
Would it be possible to implement those operands in a different way, as such that it does convert?
I am also looking to implement a similar layer to do coordinate and heatmap based regression, as in https://github.com/JimmySuen/integral-human-pose.
These models are compatible with CoreML.

@Russzheng
Copy link

Hey, I am trying to convert it to coreml as well, any progress on your end?

@YuliangXiu
Copy link
Owner

I do not have a lot of time working on this...
Please send a pull request if you convert it to CoreML successfully.
Many Thanks

@MetaDev
Copy link
Author

MetaDev commented Mar 10, 2019

Hey, I am trying to convert it to coreml as well, any progress on your end?

I went to the DSNTNN repo. There was suggested I can convert the model without the final DSNTNN layer, as this layer basically doesn't have any weights. You would have to implement that layer in objective c or swift though. I will let you know once I have something running, should be doable.

@YuliangXiu
Copy link
Owner

wait for your good news! @MetaDev

@Russzheng
Copy link

Hey, I am trying to convert it to coreml as well, any progress on your end?

I went to the DSNTNN repo. There was suggested I can convert the model without the final DSNTNN layer, as this layer basically doesn't have any weights. You would have to implement that layer in objective c or swift though. I will let you once I have something running, should be doable.

Sounds great, our team don't wanna write custom layers, we are training from scratch now. Basically swapping OpenPose's VGG blocks with Shufflenet-like blocks.

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