Branch: master
Find file History
hrldcpr and dsmilkov Missing command in posenet/demo README.md (#146)
If you try to run the current instructions on a fresh clone, `yarn watch` will fail. Adding a `yarn build` command fixes things.
Latest commit f8910f4 Feb 9, 2019

README.md

PoseNet Demos

Contents

Demo 1: Camera

The camera demo shows how to estimate poses in real-time from a webcam video stream.

cameraDemo

Demo 2: Coco Images

The coco images demo shows how to estimate poses in images. It also illustrates the differences between the single-person and multi-person pose detection algorithms.

cameraDemo

Setup

cd into the demos folder:

cd posenet/demos

Install dependencies and prepare the build directory:

yarn

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

yarn watch

If you are developing posenet locally, and want to test the changes in the demos

Install yalc:

npm i -g yalc

cd into the posenet folder:

cd posenet

Install dependencies:

yarn

Publish posenet locally:

yarn build && yalc push

Cd into the demos and install dependencies:

cd demos
yarn

Link the local posenet to the demos:

yalc link @tensorflow-models/posenet

Start the dev demo server:

yarn watch

To get future updates from the posenet source code:

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