mirror of https://github.com/vladmandic/human
update wasm path
parent
78e6de4516
commit
98d8ce6e8b
|
@ -39,7 +39,7 @@ const config: Config = {
|
||||||
backend: 'webgl', // select tfjs backend to use, leave empty to use default backend
|
backend: 'webgl', // select tfjs backend to use, leave empty to use default backend
|
||||||
// can be 'webgl', 'wasm', 'cpu', or 'humangl' which is a custom version of webgl
|
// can be 'webgl', 'wasm', 'cpu', or 'humangl' which is a custom version of webgl
|
||||||
modelBasePath: '../models/', // base path for all models
|
modelBasePath: '../models/', // base path for all models
|
||||||
wasmPath: '../node_modules/@tensorflow/tfjs-backend-wasm/dist//', // path for wasm binaries, only used for backend: wasm
|
wasmPath: '../node_modules/@tensorflow/tfjs-backend-wasm/dist/', // path for wasm binaries, only used for backend: wasm
|
||||||
debug: true, // print additional status messages to console
|
debug: true, // print additional status messages to console
|
||||||
async: true, // execute enabled models in parallel
|
async: true, // execute enabled models in parallel
|
||||||
warmup: 'full', // what to use for human.warmup(), can be 'none', 'face', 'full'
|
warmup: 'full', // what to use for human.warmup(), can be 'none', 'face', 'full'
|
||||||
|
@ -132,8 +132,8 @@ const config: Config = {
|
||||||
|
|
||||||
body: {
|
body: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
modelPath: 'posenet.json', // body model, can be absolute path or relative to modelBasePath
|
modelPath: 'movenet-lightning.json', // body model, can be absolute path or relative to modelBasePath
|
||||||
// can be 'posenet', 'blazepose', 'efficientpose', 'movenet'
|
// can be 'posenet', 'blazepose', 'efficientpose', 'movenet-lightning', 'movenet-thunder'
|
||||||
maxDetected: 1, // maximum number of people detected in the input
|
maxDetected: 1, // maximum number of people detected in the input
|
||||||
// should be set to the minimum number for performance
|
// should be set to the minimum number for performance
|
||||||
// only valid for posenet as other models detects single pose
|
// only valid for posenet as other models detects single pose
|
||||||
|
|
Loading…
Reference in New Issue