From 4a81cd70324e7828d2adafeaae0a5d60d8bf7cfa Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 29 Oct 2020 00:09:29 -0400 Subject: [PATCH] updated dependencies --- README.md | 14 +------------- package.json | 10 +++++----- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 14b7c841..03f89805 100644 --- a/README.md +++ b/README.md @@ -465,19 +465,7 @@ For example, it can perform multiple face detections at 60+ FPS, but drops to ~1 - Hand: 40 FPS (standalone) - Body: 10 FPS (standalone) -For performance details, see output of `result.performance` object during runtime - -
- -## Limitations - -`Human` library can be used in any modern Browser or NodeJS environment, but there are several items to be aware of: - -- **NodeJS**: Due to a missing feature in `tfjs-node`, only some models are available - For unsupported models, error is: `TypeError: forwardFunc is not a function` - -- **Browser**: Module `filters` cannot be used when using web workers - +For performance details, see output of `result.performance` object during after running inference
diff --git a/package.json b/package.json index 96f65a40..9539dd06 100644 --- a/package.json +++ b/package.json @@ -39,11 +39,11 @@ "scripts": { "start": "node --trace-warnings --unhandled-rejections=strict --trace-uncaught --no-deprecation src/node.js", "lint": "eslint src/*.js demo/*.js", - "build-iife": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=iife --external:fs --global-name=Human --metafile=dist/human.json --outfile=dist/human.js src/human.js", - "build-esm-bundle": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:fs --metafile=dist/human.esm.json --outfile=dist/human.esm.js src/human.js", - "build-esm-nobundle": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:@tensorflow --external:fs --metafile=dist/human.esm-nobundle.json --outfile=dist/human.esm-nobundle.js src/human.js", - "build-node": "esbuild --bundle --platform=node --sourcemap --target=esnext --format=cjs --metafile=dist/human.node.json --outfile=dist/human.node.js src/human.js", - "build-node-nobundle": "esbuild --bundle --platform=node --sourcemap --target=esnext --format=cjs --external:@tensorflow --metafile=dist/human.node.json --outfile=dist/human.node-nobundle.js src/human.js", + "build-iife": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=iife --external:fs --external:seedrandom --global-name=Human --metafile=dist/human.json --outfile=dist/human.js src/human.js", + "build-esm-bundle": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:fs --external:seedrandom --metafile=dist/human.esm.json --outfile=dist/human.esm.js src/human.js", + "build-esm-nobundle": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:@tensorflow --external:fs --external:seedrandom --metafile=dist/human.esm-nobundle.json --outfile=dist/human.esm-nobundle.js src/human.js", + "build-node": "esbuild --bundle --platform=node --sourcemap --target=esnext --format=cjs --metafile=dist/human.node.json --external:seedrandom --outfile=dist/human.node.js src/human.js", + "build-node-nobundle": "esbuild --bundle --platform=node --sourcemap --target=esnext --format=cjs --external:@tensorflow --external:seedrandom --metafile=dist/human.node.json --outfile=dist/human.node-nobundle.js src/human.js", "build": "rimraf dist/* && npm run build-iife && npm run build-esm-bundle && npm run build-esm-nobundle && npm run build-node && npm run build-node-nobundle && ls -l dist/", "update": "npm update --depth 20 --force && npm dedupe && npm prune && npm audit", "changelog": "node changelog.js"