tfjs
tfjs copied to clipboard
interoperability - onxx exchange format
i would like to pre-train network models on the backend using just any other library (i prefer using spark for this operations) band then use the results within the tensor.js Framework in the frontend ...
can this already be achieved somehow? i am talking about importing / deserialization
i think this feature would be a game changer for this library.
onnx provides python package that converts onnx model to tensorflow format,
check onnx documentation (good starting point is https://github.com/onnx/onnx-tensorflow/)
once model is in tensorflow format, use tensorflowjs_converter
from python package (maintained by tfjs team) to convert from tf saved model format to tfjs graph model
sounds like a promising approach. i will surely have a look. thanks for the advice. i have tried to find this information on. the official tensorflow.js doc but it seemed to me that only Json (de)serialization was possible, which is not true. . probably a note in the doc to this issue would be good for fiture readers.
Here's the guide to convert from TensorFlow model to TF.js for serving in the frontend. https://www.tensorflow.org/js/guide/conversion
Hi, @dberardo
Apologize for the delayed response and we are re-visiting our older issues and checking whether those issues are resolved or not and May I know above workaround from @vladmandic resolved your issue or not ?
You can refer our official documentation w.r.t Model Conversion and also refer official documentation of TensorFlow.js converter which will help you to resolve your issue and if issue still persists please let us know ? Thank you!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you.
Closing as stale. Please @mention us if this needs more attention.