google-coral / project-bodypix

BodyPix model demo application for Google Coral
Apache License 2.0
275 stars 52 forks source link

Can I try to convert bodypix tflite/tfjs model to tf pb? #11

Closed tbjszhu closed 3 years ago

tbjszhu commented 3 years ago

Hi,

I found the bodypix tfjs live demo is very fascinating and I am very interested in this network. Can I try to covert this bodypix tflite/tfjs model to tensorflow pb frozen model to do some demo (not for commercial use)? Thanks for your attention.

Namburger commented 3 years ago

@tbjszhu Hello, thanks for the inputs. Unfortunately, there is no way to convert a tflite back to pb and at this time we haven't made plan to share the training process for this model :/

tbjszhu commented 3 years ago

@Namburger Hi Namburger,

Thanks for the reply. Oh, maybe I didn't asked in a clear way, I'm not trying to get the training stage. : -D. So for the bodypix tfjs live demo in https://github.com/tensorflow/tfjs-models/tree/master/body-pix, the tfjs model of this demo is stored in some path under https://storage.googleapis.com/tfjs-models and is pretty readable and understandable. I think it could be interesting if I could give it a shot to convert it to tf frozen model and do some forward inference demo only. Does this idea seem OK to you ?

tbjszhu commented 3 years ago

For short, do the models under https://storage.googleapis.com/tfjs-models/savedmodel/bodypix/ follow the save license as the bodypix project, which is Apache License 2.0 ?

Namburger commented 3 years ago

Hello, actually, I don't know much about the tfjs model @mbrooksx do you have any idea?

mbrooksx commented 3 years ago

It's not possible to go from TFLite to TF but it is possible to go from TF.js. I believe https://github.com/patlevin/tfjs-to-tf has been previously used for Bodypix, but I haven't tried it.

On Mon, Dec 7, 2020 at 6:37 AM Nam Vu notifications@github.com wrote:

Assigned #11 https://github.com/google-coral/project-bodypix/issues/11 to @mbrooksx https://github.com/mbrooksx.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/google-coral/project-bodypix/issues/11#event-4079964429, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVHDICWBVOW4KDFL3O4VI3STTSB7ANCNFSM4UNEYZ3A .

tbjszhu commented 3 years ago

@mbrooksx Hi mbrooksx,

Thanks for your reply. Then we will use the tfjs model converted to do some demo :-D

Naveen-Dodda commented 3 years ago

Closing this as the information to full fill the requirement has been shared. Please feel free to reopen if you have more questions.