Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Examples/use cases to cover #8

Open
4 tasks
davanstrien opened this issue Oct 6, 2020 · 1 comment
Open
4 tasks

Examples/use cases to cover #8

davanstrien opened this issue Oct 6, 2020 · 1 comment

Comments

@davanstrien
Copy link
Owner

From week 2 call discussion, some things that could be nice examples to try and prepare notebooks etc for.

  • Combining model inputs tabular (metadata) + images as input for models
  • Production examples - how to deploy models (docker + other options)
  • Tensorflow javascript - how to import weights so the model can be used from Javascript https://glitch.com/ (maybe used js from TensorFlow model)
  • ONNX - for ‘translating’ models between different frameworks
@barnabywalker
Copy link
Contributor

I had a quick look into this

  • Tensorflow javascript - how to import weights so the model can be used from Javascript https://glitch.com/ (maybe used js from TensorFlow model)

after the previous call.

I hadn't really looked into it before but after training a model with webcam images in Google's Teachable Machine, I realised that the option it gives you is a snippet of HTML to add your model to a webpage. The way it includes the trained model is as a link to a cloud hosting site. So I don't think you can just upload some weights from a different model.

I then found this tutorial on how to convert a PyTorch model to a TensorFlowJS model - and it uses ONNX!

It might be preferable to just use torchJS to directly host a PyTorch model instead, as ONNX might not support all the features of PyTorch.

If anyone wants to see some examples of TensorFlowJS apps that have been made using Teachable Machine, there is this showcase on glitch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants