Skip to content

Latest commit

 

History

History
30 lines (29 loc) · 922 Bytes

README.md

File metadata and controls

30 lines (29 loc) · 922 Bytes

TensorFlow.js Deployment Guide

Upload a Trained Model

  1. Fork this repository
  2. Create a new file mobilenet_1/README.md
  3. Extract model.zip
  4. Upload all files into mobilenet_1 folder
  5. Click model.json > Raw
  6. Copy raw URL of model.json
  7. Download and extract this forked repository
  8. Replace the model URL in index.js at tf.loadModel()

Setup Environment

  1. Install Docker
  1. Pull Docker image (~200MB)
docker pull mrteera/tfjs:base
  1. Run Docker docker run -it --rm -v :/root/tfjs-pacman -p 1234:1234 mrteera/tfjs:base /bin/bash
  2. install TensorFlow.js
cd /root/tfjs-pacman
yarn add @tensorflow/tfjs
yarn add @tensorflow/tfjs-node
yarn
  1. Run yarn watch