To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.
tensorflowjs 0.8.0
Dependency versions:
keras 2.2.2
tensorflow 1.12.0
N/A
tensorflowjs_converter cannot convert body-pix model to Keras
I have the following files from the body-pix model gathered:
But running:
tensorflowjs_converter --input_format=tensorflowjs --output_format=keras ./input/weights_manifest.json ./output/model.h5
returns the error:
The JSON content is required to be adict, but found <class 'list'>.
There does not appear to be a model.json file associated with the body-pix example since this link returns a 404 unlike other models. Is it possible to generate a model.json file with tensorflowjs_model.pb and weights_manifest.json? Or is it possible to run tensorflowjs_converter without model.json?
body-pix is converted from a TensorFlow SavedModel, not a keras or TensorFlow.js model. So it can't be converted to a keras model.
so is it possible to turn it back to a tensorflow saved model? Or export the model to something other than tensorflow.js?
@pyu10055 Is it possible to transform a tensorflowjs-format frozen model into a tensorflow SavedModel currently?
@caisq @pyu10055 @sam598
Is it possible to transform a tensorflowjs-format frozen model into a tensorflow SavedModel ?
Is there anyone who knows the answer to this question?
@caisq @kidapu It is not possible right now to reverse the conversion of tfjs graph model to TF saved model.
@pyu10055 Thank you for your response.
Is the body-pix training dataset published in public?
I would like to use body-pix by python..
Here you go https://github.com/ajaichemmanam/posenetv2-pythontf
You can work upon this to create bodypix version
Most helpful comment
@pyu10055 Thank you for your response.
Is the body-pix training dataset published in public?
I would like to use body-pix by python..