mirror of https://github.com/vladmandic/human
rebuild dependencies
parent
5218439796
commit
41aeadf00f
|
@ -12,8 +12,9 @@
|
|||
### **HEAD -> main** 2022/10/09 mandic00@live.com
|
||||
|
||||
|
||||
### **origin/main** 2022/10/02 mandic00@live.com
|
||||
### **2.11.1** 2022/10/09 mandic00@live.com
|
||||
|
||||
- add rvm segmentation model
|
||||
- add human.webcam methods
|
||||
- create funding.yml
|
||||
- fix rotation interpolation
|
||||
|
|
24
TODO.md
24
TODO.md
|
@ -51,27 +51,3 @@ No support for running in **web workers** as Safari still does not support `Offs
|
|||
|
||||
## Pending Release Changes
|
||||
|
||||
- New methods [`human.webcam.*`](https://vladmandic.github.io/human/typedoc/classes/WebCam.html)
|
||||
Enables built-in configuration and control of **WebCam** streams
|
||||
- New method [`human.video()`](https://vladmandic.github.io/human/typedoc/classes/Human.html#video)
|
||||
Runs continous detection of an input **video**
|
||||
instead of processing each frame manually using `human.detect()`
|
||||
- New demo for **webcam** and **video** methods [*Live*](https://vladmandic.github.io/human/demo/video/index.html) | [*Code*](https://github.com/vladmandic/human/blob/main/demo/video/index.html)
|
||||
*Full HTML and JavaScript code in less than a screen*
|
||||
- Redesigned [`human.segmentation`](https://vladmandic.github.io/human/typedoc/classes/Human.html#segmentation)
|
||||
*Breaking changes*
|
||||
- New model `rvm` for high-quality body segmentation in real-time
|
||||
*Not part of default deployment, download from [human-models](https://github.com/vladmandic/human-models/tree/main/models)*
|
||||
- New demo for **segmentation** methods [*Live*](https://vladmandic.github.io/human/demo/segmentation/index.html) | [*Code*](https://github.com/vladmandic/human/blob/main/demo/segmentation/index.html)
|
||||
*Full HTML and JavaScript code in less than a screen*
|
||||
- New advanced demo using **BabylonJS and VRM** [*Live*](https://vladmandic.github.io/human-bjs-vrm) | [*Code*](https://github.com/vladmandic/human-bjs-vrm)
|
||||
- Update **TypeDoc** generation [*Link*](https://vladmandic.github.io/human/typedoc)
|
||||
- Update **TypeDefs** bundle generation [*Link*](https://github.com/vladmandic/human/blob/main/types/human.d.ts)
|
||||
No external dependencies
|
||||
- Fix model caching when using web workers
|
||||
- Fix `face.rotation` when using interpolation
|
||||
- Improve NodeJS resolver when using ESM
|
||||
- Update demo `demo/typescript`
|
||||
- Update demo `demo/faceid`
|
||||
- Update demo `demo/nodejs/process-folder.js`
|
||||
and re-process `/samples` [*Link*](https://vladmandic.github.io/human/samples)
|
||||
|
|
|
@ -28,10 +28,10 @@ async function updateCached(req) {
|
|||
.then((update) => {
|
||||
// update cache if request is ok
|
||||
if (update.ok) {
|
||||
caches // eslint-disable-line promise/no-nesting
|
||||
caches
|
||||
.open(cacheName)
|
||||
.then((cache) => cache.put(req, update))
|
||||
.catch((err) => log('cache update error', err));
|
||||
.catch((err) => log('cache update error', err)); // eslint-disable-line promise/no-nesting
|
||||
}
|
||||
return true;
|
||||
})
|
||||
|
@ -76,8 +76,8 @@ async function getCached(evt) {
|
|||
|
||||
function cacheInit() {
|
||||
caches.open(cacheName)
|
||||
.then((cache) => cache.addAll(cacheFiles) // eslint-disable-line promise/no-nesting
|
||||
.then(
|
||||
.then((cache) => cache.addAll(cacheFiles)
|
||||
.then( // eslint-disable-line promise/no-nesting
|
||||
() => log('cache refresh:', cacheFiles.length, 'files'),
|
||||
(err) => log('cache error', err),
|
||||
))
|
||||
|
|
12
package.json
12
package.json
|
@ -68,7 +68,7 @@
|
|||
"devDependencies": {
|
||||
"@html-eslint/eslint-plugin": "^0.15.0",
|
||||
"@html-eslint/parser": "^0.15.0",
|
||||
"@microsoft/api-extractor": "^7.32.0",
|
||||
"@microsoft/api-extractor": "^7.33.1",
|
||||
"@tensorflow/tfjs": "^3.21.0",
|
||||
"@tensorflow/tfjs-backend-cpu": "^3.21.0",
|
||||
"@tensorflow/tfjs-backend-wasm": "^3.21.0",
|
||||
|
@ -82,10 +82,10 @@
|
|||
"@tensorflow/tfjs-node-gpu": "^3.21.0",
|
||||
"@tensorflow/tfjs-tflite": "0.0.1-alpha.9",
|
||||
"@types/emscripten": "^1.39.6",
|
||||
"@types/node": "^18.8.3",
|
||||
"@types/node": "^18.8.5",
|
||||
"@types/offscreencanvas": "^2019.7.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.39.0",
|
||||
"@typescript-eslint/parser": "^5.39.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
||||
"@typescript-eslint/parser": "^5.40.0",
|
||||
"@vladmandic/build": "^0.7.14",
|
||||
"@vladmandic/pilogger": "^0.4.6",
|
||||
"@vladmandic/tfjs": "github:vladmandic/tfjs",
|
||||
|
@ -98,13 +98,13 @@
|
|||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-json": "^3.1.0",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^6.0.1",
|
||||
"eslint-plugin-promise": "^6.1.0",
|
||||
"long": "^5.2.0",
|
||||
"node-fetch": "^3.2.10",
|
||||
"rimraf": "^3.0.2",
|
||||
"seedrandom": "^3.0.5",
|
||||
"tslib": "^2.4.0",
|
||||
"typedoc": "0.23.15",
|
||||
"typedoc": "0.23.16",
|
||||
"typescript": "4.8.4"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,40 +1,40 @@
|
|||
2022-10-09 14:32:18 [32mDATA: [39m Build {"name":"@vladmandic/human","version":"2.11.1"}
|
||||
2022-10-09 14:32:18 [36mINFO: [39m Application: {"name":"@vladmandic/human","version":"2.11.1"}
|
||||
2022-10-09 14:32:18 [36mINFO: [39m Environment: {"profile":"production","config":".build.json","package":"package.json","tsconfig":true,"eslintrc":true,"git":true}
|
||||
2022-10-09 14:32:18 [36mINFO: [39m Toolchain: {"build":"0.7.14","esbuild":"0.15.10","typescript":"4.8.4","typedoc":"0.23.15","eslint":"8.25.0"}
|
||||
2022-10-09 14:32:18 [36mINFO: [39m Build: {"profile":"production","steps":["clean","compile","typings","typedoc","lint","changelog"]}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Clean: {"locations":["dist/*","types/lib/*","typedoc/*"]}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Compile: {"name":"tfjs/nodejs/cpu","format":"cjs","platform":"node","input":"tfjs/tf-node.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":159,"outputBytes":608}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Compile: {"name":"human/nodejs/cpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node.js","files":78,"inputBytes":669029,"outputBytes":315176}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Compile: {"name":"tfjs/nodejs/gpu","format":"cjs","platform":"node","input":"tfjs/tf-node-gpu.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":167,"outputBytes":612}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Compile: {"name":"human/nodejs/gpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-gpu.js","files":78,"inputBytes":669033,"outputBytes":315180}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Compile: {"name":"tfjs/nodejs/wasm","format":"cjs","platform":"node","input":"tfjs/tf-node-wasm.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":206,"outputBytes":664}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Compile: {"name":"human/nodejs/wasm","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-wasm.js","files":78,"inputBytes":669085,"outputBytes":315230}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Compile: {"name":"tfjs/browser/version","format":"esm","platform":"browser","input":"tfjs/tf-version.ts","output":"dist/tfjs.version.js","files":1,"inputBytes":1125,"outputBytes":358}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Compile: {"name":"tfjs/browser/esm/nobundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":1088,"outputBytes":583}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Compile: {"name":"human/browser/esm/nobundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm-nobundle.js","files":78,"inputBytes":669004,"outputBytes":313912}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Compile: {"name":"tfjs/browser/esm/custom","format":"esm","platform":"browser","input":"tfjs/tf-custom.ts","output":"dist/tfjs.esm.js","files":11,"inputBytes":1265,"outputBytes":2814441}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Compile: {"name":"human/browser/iife/bundle","format":"iife","platform":"browser","input":"src/human.ts","output":"dist/human.js","files":78,"inputBytes":3482862,"outputBytes":1693611}
|
||||
2022-10-09 14:32:18 [35mSTATE:[39m Compile: {"name":"human/browser/esm/bundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm.js","files":78,"inputBytes":3482862,"outputBytes":3111620}
|
||||
2022-10-09 14:32:23 [35mSTATE:[39m Typings: {"input":"src/human.ts","output":"types/lib","files":15}
|
||||
2022-10-09 14:32:25 [35mSTATE:[39m TypeDoc: {"input":"src/human.ts","output":"typedoc","objects":76,"generated":true}
|
||||
2022-10-09 14:32:25 [35mSTATE:[39m Compile: {"name":"demo/typescript","format":"esm","platform":"browser","input":"demo/typescript/index.ts","output":"demo/typescript/index.js","files":1,"inputBytes":5684,"outputBytes":2632}
|
||||
2022-10-09 14:32:25 [35mSTATE:[39m Compile: {"name":"demo/faceid","format":"esm","platform":"browser","input":"demo/faceid/index.ts","output":"demo/faceid/index.js","files":2,"inputBytes":17155,"outputBytes":9175}
|
||||
2022-10-09 14:32:35 [35mSTATE:[39m Lint: {"locations":["*.json","src/**/*.ts","test/**/*.js","demo/**/*.js"],"files":114,"errors":0,"warnings":0}
|
||||
2022-10-09 14:32:35 [35mSTATE:[39m ChangeLog: {"repository":"https://github.com/vladmandic/human","branch":"main","output":"CHANGELOG.md"}
|
||||
2022-10-09 14:32:35 [35mSTATE:[39m Copy: {"input":"tfjs/tfjs.esm.d.ts"}
|
||||
2022-10-09 14:32:35 [36mINFO: [39m Done...
|
||||
2022-10-09 14:32:36 [35mSTATE:[39m API-Extractor: {"succeeeded":true,"errors":0,"warnings":197}
|
||||
2022-10-09 14:32:36 [35mSTATE:[39m Filter: {"input":"types/human.d.ts"}
|
||||
2022-10-09 14:32:36 [35mSTATE:[39m Link: {"input":"types/human.d.ts"}
|
||||
2022-10-09 14:32:36 [36mINFO: [39m Analyze models: {"folders":8,"result":"models/models.json"}
|
||||
2022-10-09 14:32:36 [35mSTATE:[39m Models {"folder":"./models","models":12}
|
||||
2022-10-09 14:32:36 [35mSTATE:[39m Models {"folder":"../human-models/models","models":43}
|
||||
2022-10-09 14:32:36 [35mSTATE:[39m Models {"folder":"../blazepose/model/","models":4}
|
||||
2022-10-09 14:32:36 [35mSTATE:[39m Models {"folder":"../anti-spoofing/model","models":1}
|
||||
2022-10-09 14:32:36 [35mSTATE:[39m Models {"folder":"../efficientpose/models","models":3}
|
||||
2022-10-09 14:32:36 [35mSTATE:[39m Models {"folder":"../insightface/models","models":5}
|
||||
2022-10-09 14:32:36 [35mSTATE:[39m Models {"folder":"../movenet/models","models":3}
|
||||
2022-10-09 14:32:36 [35mSTATE:[39m Models {"folder":"../nanodet/models","models":4}
|
||||
2022-10-09 14:32:36 [35mSTATE:[39m Models: {"count":58,"totalSize":386543911}
|
||||
2022-10-09 14:32:36 [36mINFO: [39m Human Build complete... {"logFile":"test/build.log"}
|
||||
2022-10-13 09:27:05 [32mDATA: [39m Build {"name":"@vladmandic/human","version":"2.11.1"}
|
||||
2022-10-13 09:27:05 [36mINFO: [39m Application: {"name":"@vladmandic/human","version":"2.11.1"}
|
||||
2022-10-13 09:27:05 [36mINFO: [39m Environment: {"profile":"production","config":".build.json","package":"package.json","tsconfig":true,"eslintrc":true,"git":true}
|
||||
2022-10-13 09:27:05 [36mINFO: [39m Toolchain: {"build":"0.7.14","esbuild":"0.15.10","typescript":"4.8.4","typedoc":"0.23.16","eslint":"8.25.0"}
|
||||
2022-10-13 09:27:05 [36mINFO: [39m Build: {"profile":"production","steps":["clean","compile","typings","typedoc","lint","changelog"]}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Clean: {"locations":["dist/*","types/lib/*","typedoc/*"]}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Compile: {"name":"tfjs/nodejs/cpu","format":"cjs","platform":"node","input":"tfjs/tf-node.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":159,"outputBytes":608}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Compile: {"name":"human/nodejs/cpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node.js","files":78,"inputBytes":669029,"outputBytes":315176}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Compile: {"name":"tfjs/nodejs/gpu","format":"cjs","platform":"node","input":"tfjs/tf-node-gpu.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":167,"outputBytes":612}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Compile: {"name":"human/nodejs/gpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-gpu.js","files":78,"inputBytes":669033,"outputBytes":315180}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Compile: {"name":"tfjs/nodejs/wasm","format":"cjs","platform":"node","input":"tfjs/tf-node-wasm.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":206,"outputBytes":664}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Compile: {"name":"human/nodejs/wasm","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-wasm.js","files":78,"inputBytes":669085,"outputBytes":315230}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Compile: {"name":"tfjs/browser/version","format":"esm","platform":"browser","input":"tfjs/tf-version.ts","output":"dist/tfjs.version.js","files":1,"inputBytes":1125,"outputBytes":358}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Compile: {"name":"tfjs/browser/esm/nobundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":1088,"outputBytes":583}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Compile: {"name":"human/browser/esm/nobundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm-nobundle.js","files":78,"inputBytes":669004,"outputBytes":313912}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Compile: {"name":"tfjs/browser/esm/custom","format":"esm","platform":"browser","input":"tfjs/tf-custom.ts","output":"dist/tfjs.esm.js","files":11,"inputBytes":1265,"outputBytes":2814441}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Compile: {"name":"human/browser/iife/bundle","format":"iife","platform":"browser","input":"src/human.ts","output":"dist/human.js","files":78,"inputBytes":3482862,"outputBytes":1693611}
|
||||
2022-10-13 09:27:05 [35mSTATE:[39m Compile: {"name":"human/browser/esm/bundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm.js","files":78,"inputBytes":3482862,"outputBytes":3111620}
|
||||
2022-10-13 09:27:10 [35mSTATE:[39m Typings: {"input":"src/human.ts","output":"types/lib","files":15}
|
||||
2022-10-13 09:27:12 [35mSTATE:[39m TypeDoc: {"input":"src/human.ts","output":"typedoc","objects":76,"generated":true}
|
||||
2022-10-13 09:27:12 [35mSTATE:[39m Compile: {"name":"demo/typescript","format":"esm","platform":"browser","input":"demo/typescript/index.ts","output":"demo/typescript/index.js","files":1,"inputBytes":5684,"outputBytes":2632}
|
||||
2022-10-13 09:27:12 [35mSTATE:[39m Compile: {"name":"demo/faceid","format":"esm","platform":"browser","input":"demo/faceid/index.ts","output":"demo/faceid/index.js","files":2,"inputBytes":17155,"outputBytes":9175}
|
||||
2022-10-13 09:27:23 [35mSTATE:[39m Lint: {"locations":["*.json","src/**/*.ts","test/**/*.js","demo/**/*.js"],"files":114,"errors":0,"warnings":0}
|
||||
2022-10-13 09:27:23 [35mSTATE:[39m ChangeLog: {"repository":"https://github.com/vladmandic/human","branch":"main","output":"CHANGELOG.md"}
|
||||
2022-10-13 09:27:23 [35mSTATE:[39m Copy: {"input":"tfjs/tfjs.esm.d.ts"}
|
||||
2022-10-13 09:27:23 [36mINFO: [39m Done...
|
||||
2022-10-13 09:27:24 [35mSTATE:[39m API-Extractor: {"succeeeded":true,"errors":0,"warnings":197}
|
||||
2022-10-13 09:27:24 [35mSTATE:[39m Filter: {"input":"types/human.d.ts"}
|
||||
2022-10-13 09:27:24 [35mSTATE:[39m Link: {"input":"types/human.d.ts"}
|
||||
2022-10-13 09:27:24 [36mINFO: [39m Analyze models: {"folders":8,"result":"models/models.json"}
|
||||
2022-10-13 09:27:24 [35mSTATE:[39m Models {"folder":"./models","models":12}
|
||||
2022-10-13 09:27:24 [35mSTATE:[39m Models {"folder":"../human-models/models","models":43}
|
||||
2022-10-13 09:27:24 [35mSTATE:[39m Models {"folder":"../blazepose/model/","models":4}
|
||||
2022-10-13 09:27:24 [35mSTATE:[39m Models {"folder":"../anti-spoofing/model","models":1}
|
||||
2022-10-13 09:27:24 [35mSTATE:[39m Models {"folder":"../efficientpose/models","models":3}
|
||||
2022-10-13 09:27:24 [35mSTATE:[39m Models {"folder":"../insightface/models","models":5}
|
||||
2022-10-13 09:27:24 [35mSTATE:[39m Models {"folder":"../movenet/models","models":3}
|
||||
2022-10-13 09:27:24 [35mSTATE:[39m Models {"folder":"../nanodet/models","models":4}
|
||||
2022-10-13 09:27:24 [35mSTATE:[39m Models: {"count":58,"totalSize":386543911}
|
||||
2022-10-13 09:27:24 [36mINFO: [39m Human Build complete... {"logFile":"test/build.log"}
|
||||
|
|
2002
test/test.log
2002
test/test.log
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue