tfjs-models/blazeface/demo
..
.babelrc
README.md
demo.gif
index.html
index.js
package.json
yarn.lock

README.md

Blazeface demo

Contents

This demo shows how to use the Blazeface model to detect faces in a video stream.

Setup

cd into the demo folder:

cd blazeface/demo

Install dependencies and prepare the build directory:

yarn

To watch files for changes, and launch a dev server:

yarn watch

If you are developing blazeface locally, and want to test the changes in the demo

Cd into the blazeface folder:

cd blazeface

Install dependencies:

yarn

Publish blazeface locally:

yarn build && yarn yalc publish

Cd into the demo and install dependencies:

cd demo
yarn

Link the local blazeface to the demo:

yarn yalc link @tensorflow-models/blazeface

Start the dev demo server:

yarn watch

To get future updates from the blazeface source code:

# cd up into the blazeface directory
cd ../
yarn build && yarn yalc push