3 ms·
Do you know how to consume model produced by python using tensorflow.js ?
by revskill 6y ago
Do you know how to consume model produced by python using tensorflow.js ?
- deleted 6y ago[deleted]
- ml_basics 6y agoI played around with tf.js a few weeks ago and learning to use python-trained models was the first hurdle. I made a minimal working example of this here, feel free to check it out: https://github.com/paruby/mnist https://github.com/paruby/mnist See model/mnist_js.ipynb to see how the model is trained and exported to a js readable format, and you can see in lines 13-15 in index.html how the model is loaded. Note: I have a decent amount of ML experience but almost no javascript experience, so YMMV
- johnx123-up 6y agoTF Lite to TFJS might be a good option. But, this ticket is pending for a long time https://github.com/tensorflow/tfjs/issues/991 https://github.com/tensorflow/tfjs/issues/991 Do you have any solution for this?
- jaster 6y agothere is a specific tool to convert from various formats to a tensorflow.js model: https://github.com/tensorflow/tfjs/tree/master/tfjs-converter https://github.com/tensorflow/tfjs/tree/master/tfjs-converte...