rebuild dependencies

pull/356/head
Vladimir Mandic 2022-10-13 09:30:33 -04:00
parent 5218439796
commit 41aeadf00f
6 changed files with 1054 additions and 1075 deletions

View File

@ -12,8 +12,9 @@
### **HEAD -> main** 2022/10/09 mandic00@live.com ### **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 - add human.webcam methods
- create funding.yml - create funding.yml
- fix rotation interpolation - fix rotation interpolation

24
TODO.md
View File

@ -51,27 +51,3 @@ No support for running in **web workers** as Safari still does not support `Offs
## Pending Release Changes ## 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)

View File

@ -28,10 +28,10 @@ async function updateCached(req) {
.then((update) => { .then((update) => {
// update cache if request is ok // update cache if request is ok
if (update.ok) { if (update.ok) {
caches // eslint-disable-line promise/no-nesting caches
.open(cacheName) .open(cacheName)
.then((cache) => cache.put(req, update)) .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; return true;
}) })
@ -76,8 +76,8 @@ async function getCached(evt) {
function cacheInit() { function cacheInit() {
caches.open(cacheName) caches.open(cacheName)
.then((cache) => cache.addAll(cacheFiles) // eslint-disable-line promise/no-nesting .then((cache) => cache.addAll(cacheFiles)
.then( .then( // eslint-disable-line promise/no-nesting
() => log('cache refresh:', cacheFiles.length, 'files'), () => log('cache refresh:', cacheFiles.length, 'files'),
(err) => log('cache error', err), (err) => log('cache error', err),
)) ))

View File

@ -68,7 +68,7 @@
"devDependencies": { "devDependencies": {
"@html-eslint/eslint-plugin": "^0.15.0", "@html-eslint/eslint-plugin": "^0.15.0",
"@html-eslint/parser": "^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": "^3.21.0",
"@tensorflow/tfjs-backend-cpu": "^3.21.0", "@tensorflow/tfjs-backend-cpu": "^3.21.0",
"@tensorflow/tfjs-backend-wasm": "^3.21.0", "@tensorflow/tfjs-backend-wasm": "^3.21.0",
@ -82,10 +82,10 @@
"@tensorflow/tfjs-node-gpu": "^3.21.0", "@tensorflow/tfjs-node-gpu": "^3.21.0",
"@tensorflow/tfjs-tflite": "0.0.1-alpha.9", "@tensorflow/tfjs-tflite": "0.0.1-alpha.9",
"@types/emscripten": "^1.39.6", "@types/emscripten": "^1.39.6",
"@types/node": "^18.8.3", "@types/node": "^18.8.5",
"@types/offscreencanvas": "^2019.7.0", "@types/offscreencanvas": "^2019.7.0",
"@typescript-eslint/eslint-plugin": "^5.39.0", "@typescript-eslint/eslint-plugin": "^5.40.0",
"@typescript-eslint/parser": "^5.39.0", "@typescript-eslint/parser": "^5.40.0",
"@vladmandic/build": "^0.7.14", "@vladmandic/build": "^0.7.14",
"@vladmandic/pilogger": "^0.4.6", "@vladmandic/pilogger": "^0.4.6",
"@vladmandic/tfjs": "github:vladmandic/tfjs", "@vladmandic/tfjs": "github:vladmandic/tfjs",
@ -98,13 +98,13 @@
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.26.0",
"eslint-plugin-json": "^3.1.0", "eslint-plugin-json": "^3.1.0",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.1", "eslint-plugin-promise": "^6.1.0",
"long": "^5.2.0", "long": "^5.2.0",
"node-fetch": "^3.2.10", "node-fetch": "^3.2.10",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"seedrandom": "^3.0.5", "seedrandom": "^3.0.5",
"tslib": "^2.4.0", "tslib": "^2.4.0",
"typedoc": "0.23.15", "typedoc": "0.23.16",
"typescript": "4.8.4" "typescript": "4.8.4"
} }
} }

View File

@ -1,40 +1,40 @@
2022-10-09 14:32:18 DATA:  Build {"name":"@vladmandic/human","version":"2.11.1"} 2022-10-13 09:27:05 DATA:  Build {"name":"@vladmandic/human","version":"2.11.1"}
2022-10-09 14:32:18 INFO:  Application: {"name":"@vladmandic/human","version":"2.11.1"} 2022-10-13 09:27:05 INFO:  Application: {"name":"@vladmandic/human","version":"2.11.1"}
2022-10-09 14:32:18 INFO:  Environment: {"profile":"production","config":".build.json","package":"package.json","tsconfig":true,"eslintrc":true,"git":true} 2022-10-13 09:27:05 INFO:  Environment: {"profile":"production","config":".build.json","package":"package.json","tsconfig":true,"eslintrc":true,"git":true}
2022-10-09 14:32:18 INFO:  Toolchain: {"build":"0.7.14","esbuild":"0.15.10","typescript":"4.8.4","typedoc":"0.23.15","eslint":"8.25.0"} 2022-10-13 09:27:05 INFO:  Toolchain: {"build":"0.7.14","esbuild":"0.15.10","typescript":"4.8.4","typedoc":"0.23.16","eslint":"8.25.0"}
2022-10-09 14:32:18 INFO:  Build: {"profile":"production","steps":["clean","compile","typings","typedoc","lint","changelog"]} 2022-10-13 09:27:05 INFO:  Build: {"profile":"production","steps":["clean","compile","typings","typedoc","lint","changelog"]}
2022-10-09 14:32:18 STATE: Clean: {"locations":["dist/*","types/lib/*","typedoc/*"]} 2022-10-13 09:27:05 STATE: Clean: {"locations":["dist/*","types/lib/*","typedoc/*"]}
2022-10-09 14:32:18 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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 STATE: 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:05 STATE: 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 STATE: Typings: {"input":"src/human.ts","output":"types/lib","files":15} 2022-10-13 09:27:10 STATE: Typings: {"input":"src/human.ts","output":"types/lib","files":15}
2022-10-09 14:32:25 STATE: TypeDoc: {"input":"src/human.ts","output":"typedoc","objects":76,"generated":true} 2022-10-13 09:27:12 STATE: TypeDoc: {"input":"src/human.ts","output":"typedoc","objects":76,"generated":true}
2022-10-09 14:32:25 STATE: 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 STATE: 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 STATE: 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:12 STATE: 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 STATE: Lint: {"locations":["*.json","src/**/*.ts","test/**/*.js","demo/**/*.js"],"files":114,"errors":0,"warnings":0} 2022-10-13 09:27:23 STATE: Lint: {"locations":["*.json","src/**/*.ts","test/**/*.js","demo/**/*.js"],"files":114,"errors":0,"warnings":0}
2022-10-09 14:32:35 STATE: ChangeLog: {"repository":"https://github.com/vladmandic/human","branch":"main","output":"CHANGELOG.md"} 2022-10-13 09:27:23 STATE: ChangeLog: {"repository":"https://github.com/vladmandic/human","branch":"main","output":"CHANGELOG.md"}
2022-10-09 14:32:35 STATE: Copy: {"input":"tfjs/tfjs.esm.d.ts"} 2022-10-13 09:27:23 STATE: Copy: {"input":"tfjs/tfjs.esm.d.ts"}
2022-10-09 14:32:35 INFO:  Done... 2022-10-13 09:27:23 INFO:  Done...
2022-10-09 14:32:36 STATE: API-Extractor: {"succeeeded":true,"errors":0,"warnings":197} 2022-10-13 09:27:24 STATE: API-Extractor: {"succeeeded":true,"errors":0,"warnings":197}
2022-10-09 14:32:36 STATE: Filter: {"input":"types/human.d.ts"} 2022-10-13 09:27:24 STATE: Filter: {"input":"types/human.d.ts"}
2022-10-09 14:32:36 STATE: Link: {"input":"types/human.d.ts"} 2022-10-13 09:27:24 STATE: Link: {"input":"types/human.d.ts"}
2022-10-09 14:32:36 INFO:  Analyze models: {"folders":8,"result":"models/models.json"} 2022-10-13 09:27:24 INFO:  Analyze models: {"folders":8,"result":"models/models.json"}
2022-10-09 14:32:36 STATE: Models {"folder":"./models","models":12} 2022-10-13 09:27:24 STATE: Models {"folder":"./models","models":12}
2022-10-09 14:32:36 STATE: Models {"folder":"../human-models/models","models":43} 2022-10-13 09:27:24 STATE: Models {"folder":"../human-models/models","models":43}
2022-10-09 14:32:36 STATE: Models {"folder":"../blazepose/model/","models":4} 2022-10-13 09:27:24 STATE: Models {"folder":"../blazepose/model/","models":4}
2022-10-09 14:32:36 STATE: Models {"folder":"../anti-spoofing/model","models":1} 2022-10-13 09:27:24 STATE: Models {"folder":"../anti-spoofing/model","models":1}
2022-10-09 14:32:36 STATE: Models {"folder":"../efficientpose/models","models":3} 2022-10-13 09:27:24 STATE: Models {"folder":"../efficientpose/models","models":3}
2022-10-09 14:32:36 STATE: Models {"folder":"../insightface/models","models":5} 2022-10-13 09:27:24 STATE: Models {"folder":"../insightface/models","models":5}
2022-10-09 14:32:36 STATE: Models {"folder":"../movenet/models","models":3} 2022-10-13 09:27:24 STATE: Models {"folder":"../movenet/models","models":3}
2022-10-09 14:32:36 STATE: Models {"folder":"../nanodet/models","models":4} 2022-10-13 09:27:24 STATE: Models {"folder":"../nanodet/models","models":4}
2022-10-09 14:32:36 STATE: Models: {"count":58,"totalSize":386543911} 2022-10-13 09:27:24 STATE: Models: {"count":58,"totalSize":386543911}
2022-10-09 14:32:36 INFO:  Human Build complete... {"logFile":"test/build.log"} 2022-10-13 09:27:24 INFO:  Human Build complete... {"logFile":"test/build.log"}

File diff suppressed because it is too large Load Diff