-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 BodyPix to TensorFlow Lite #2043
Comments
@tylerzhu-github can you answer this question? thanks. |
Thanks for adding me Ping! For PoseNet, we have released the model in .tflite format here: Here is a contribution from our community users: You are right that currently tfjs_convertor doesn't support converting the TensorFlow.js GraphModel back to SavedModel format. We will try to release a BodyPix model in TensorFlow Lite format with demos. Quick question for Ping is: can we host non TensorFlow.js model/assets (e.g. TensorFlow Lite file)? |
@tylerzhu-github I think we can host the tflite file on TFHub storage. |
Thanks for the replies, so reading this there is a TensorFlow Lite model kicking around somewhere but it just needs hosting? |
I would also like to have this model data for my project if available pls inform thx a lot in advance! |
@tylerzhu-github I would like to use BodyPix in a Python project. Is it possible to get the original TensorFlow model? |
Why was this issue closed? As I am waiting on one of you guys / tensor-flow guys to respond, or at least point me where I can get the original model for use with TensorFlow Lite |
That would be great! Bodypix and Posenet are truly marvelous project. I would like to use them on other platform on which tfjs is not compatible. |
I'd love to use this with TFLite for Android so if it would be great if you could release the original tensorflow model or at least the the tflite version |
Hi @JakeWade3, @gdgggithub, @sreed101, @darcula1993, @dallarosa, Sorry for the delayed reply! Thx for the patience!! Best, |
@tylerzhu-github thank you very much for your reply. I convert a mobilenetV1_float_100 posenet tfjs model into a keras h5 model here just in case anyone need it: |
@JakeWade3 was your question answered ? |
@rthadur Not yet, still haven't had any links or information for when the body pix TensorFlow lite model ready. |
@tylerzhu-github gentle ping if you have any update ? |
@darcula1993 could you please explain how you converted the posenet to an hd5 file? I can only see the function to convert the graph model to a tensorflow graph model (.pb file). |
Using https://github.com/patlevin/tfjs-to-tf, you can extract weight from tfjs model. Then I build the model architecture using keras and loading weights layer by layer.Since we have layer name, it is not that hard. |
Thanks for this! It should probably do the job for me. I'll check it out :) |
Can we have some example usage of the boypix model in python? |
|
Was wondering if there's any updates for this? For BodyPix on Tensorflow Lite? |
@KapoorHitesh You can refer this ml5js and p5js example code. |
For my personal project, i had to use bodypix in android so I ended up re implementing a part of bodypix in python( specifically SegmentMultiPersonParts using mobilenet). Sample results below Hope this helps! |
@tylerzhu-github Hi Tyler, Has BodyPix model to a TensorFlow Lite model for iOS development been released yet? Would love to use it for mobile application development Thanks |
Does anyone have a solution for this?^ |
Guys i think instead of BodyPix TensorFlow Lite model we can use Segmentation from TensorFlow lite. Is there any difference between these two? Because both are performing image segmentation. |
@mianaliasjad from my (very limited) experience, BodyPix seems to perform more accurately |
Will be closing this issue as we will be using latest body segmentation model for same purpose. |
Hello, I was wondering if its possible to convert the BodyPix model to a TensorFlow Lite model for running on Android and iOS. I found a discussion on this GitHub about this
#1280
The issue was closed as it was not possible to convert this model back into a tensorflow saved model, I was wondering if this is now available/possible.
Thanks
The text was updated successfully, but these errors were encountered: