Skip to content

bugkerb/tfjs-pacman

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 53.0%
  • HTML 24.9%
  • CSS 22.1%