update for tfjs 3.7.0

pull/134/head
Vladimir Mandic 2021-06-04 09:20:59 -04:00
parent d84fc4f64d
commit b04d39e9d3
12 changed files with 4588 additions and 200958 deletions

View File

@ -3,9 +3,7 @@
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jquery": true,
"es2020": true
},
"parser": "@typescript-eslint/parser",

View File

@ -9,8 +9,9 @@ Repository: **<git+https://github.com/vladmandic/human.git>**
## Changelog
### **HEAD -> main** 2021/06/02 mandic00@live.com
### **HEAD -> main** 2021/06/04 mandic00@live.com
- add live hints to demo
- switch worker from module to iife importscripts
- release candidate
- added samples to git

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

67520
dist/human.esm.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

67526
dist/human.js vendored

File diff suppressed because one or more lines are too long

59210
dist/tfjs.esm.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -53,24 +53,24 @@
"tensorflow"
],
"devDependencies": {
"@tensorflow/tfjs": "^3.6.0",
"@tensorflow/tfjs-backend-cpu": "^3.6.0",
"@tensorflow/tfjs-backend-wasm": "^3.6.0",
"@tensorflow/tfjs-backend-webgl": "^3.6.0",
"@tensorflow/tfjs-converter": "^3.6.0",
"@tensorflow/tfjs-core": "^3.6.0",
"@tensorflow/tfjs-data": "^3.6.0",
"@tensorflow/tfjs-layers": "^3.6.0",
"@tensorflow/tfjs-node": "^3.6.1",
"@tensorflow/tfjs-node-gpu": "^3.6.1",
"@types/node": "^15.9.0",
"@tensorflow/tfjs": "^3.7.0",
"@tensorflow/tfjs-backend-cpu": "^3.7.0",
"@tensorflow/tfjs-backend-wasm": "^3.7.0",
"@tensorflow/tfjs-backend-webgl": "^3.7.0",
"@tensorflow/tfjs-converter": "^3.7.0",
"@tensorflow/tfjs-core": "^3.7.0",
"@tensorflow/tfjs-data": "^3.7.0",
"@tensorflow/tfjs-layers": "^3.7.0",
"@tensorflow/tfjs-node": "^3.7.0",
"@tensorflow/tfjs-node-gpu": "^3.7.0",
"@types/node": "^15.12.0",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"@vladmandic/pilogger": "^0.2.17",
"canvas": "^2.8.0",
"chokidar": "^3.5.1",
"dayjs": "^1.10.5",
"esbuild": "^0.12.5",
"esbuild": "^0.12.6",
"eslint": "^7.27.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.23.4",

View File

@ -1,21 +1,21 @@
2021-06-03 09:38:51 INFO:  @vladmandic/human version 2.0.0
2021-06-03 09:38:51 INFO:  User: vlado Platform: linux Arch: x64 Node: v16.0.0
2021-06-03 09:38:51 INFO:  Toolchain: tfjs: 3.6.0 esbuild 0.12.5; typescript 4.2.4; typedoc: 0.20.36 eslint: 7.27.0
2021-06-03 09:38:51 INFO:  Build: file startup all type: production config: {"minifyWhitespace":true,"minifyIdentifiers":true,"minifySyntax":true}
2021-06-03 09:38:51 STATE: Build for: node type: tfjs: {"imports":1,"importBytes":102,"outputBytes":1292,"outputFiles":"dist/tfjs.esm.js"}
2021-06-03 09:38:51 STATE: Build for: node type: node: {"imports":40,"importBytes":420707,"outputBytes":371671,"outputFiles":"dist/human.node.js"}
2021-06-03 09:38:51 STATE: Build for: nodeGPU type: tfjs: {"imports":1,"importBytes":110,"outputBytes":1300,"outputFiles":"dist/tfjs.esm.js"}
2021-06-03 09:38:51 STATE: Build for: nodeGPU type: node: {"imports":40,"importBytes":420715,"outputBytes":371675,"outputFiles":"dist/human.node-gpu.js"}
2021-06-03 09:38:51 STATE: Build for: nodeWASM type: tfjs: {"imports":1,"importBytes":149,"outputBytes":1367,"outputFiles":"dist/tfjs.esm.js"}
2021-06-03 09:38:51 STATE: Build for: nodeWASM type: node: {"imports":40,"importBytes":420782,"outputBytes":371747,"outputFiles":"dist/human.node-wasm.js"}
2021-06-03 09:38:51 STATE: Build for: browserNoBundle type: tfjs: {"imports":1,"importBytes":2478,"outputBytes":1394,"outputFiles":"dist/tfjs.esm.js"}
2021-06-03 09:38:51 STATE: Build for: browserNoBundle type: esm: {"imports":40,"importBytes":420809,"outputBytes":244956,"outputFiles":"dist/human.esm-nobundle.js"}
2021-06-03 09:38:52 STATE: Build for: browserBundle type: tfjs: {"modules":1274,"moduleBytes":4114813,"imports":7,"importBytes":2478,"outputBytes":1111418,"outputFiles":"dist/tfjs.esm.js"}
2021-06-03 09:38:52 STATE: Build for: browserBundle type: iife: {"imports":40,"importBytes":1530833,"outputBytes":1352725,"outputFiles":"dist/human.js"}
2021-06-03 09:38:53 STATE: Build for: browserBundle type: esm: {"imports":40,"importBytes":1530833,"outputBytes":1352717,"outputFiles":"dist/human.esm.js"}
2021-06-03 09:38:53 INFO:  Running Linter: ["server/","demo/","src/","test/"]
2021-06-03 09:39:19 INFO:  Linter complete: files: 67 errors: 0 warnings: 0
2021-06-03 09:39:19 INFO:  Generate types: ["src/human.ts"]
2021-06-03 09:39:23 INFO:  Update Change log: ["/home/vlado/dev/human/CHANGELOG.md"]
2021-06-03 09:39:23 INFO:  Generate TypeDocs: ["src/human.ts"]
2021-06-03 09:39:42 INFO:  Documentation generated at /home/vlado/dev/human/typedoc 1
2021-06-04 09:18:36 INFO:  @vladmandic/human version 2.0.0
2021-06-04 09:18:36 INFO:  User: vlado Platform: linux Arch: x64 Node: v16.0.0
2021-06-04 09:18:36 INFO:  Toolchain: tfjs: 3.7.0 esbuild 0.12.6; typescript 4.2.4; typedoc: 0.20.36 eslint: 7.27.0
2021-06-04 09:18:36 INFO:  Build: file startup all type: production config: {"minifyWhitespace":true,"minifyIdentifiers":true,"minifySyntax":true}
2021-06-04 09:18:36 STATE: Build for: node type: tfjs: {"imports":1,"importBytes":102,"outputBytes":1292,"outputFiles":"dist/tfjs.esm.js"}
2021-06-04 09:18:36 STATE: Build for: node type: node: {"imports":40,"importBytes":420809,"outputBytes":371791,"outputFiles":"dist/human.node.js"}
2021-06-04 09:18:36 STATE: Build for: nodeGPU type: tfjs: {"imports":1,"importBytes":110,"outputBytes":1300,"outputFiles":"dist/tfjs.esm.js"}
2021-06-04 09:18:36 STATE: Build for: nodeGPU type: node: {"imports":40,"importBytes":420817,"outputBytes":371795,"outputFiles":"dist/human.node-gpu.js"}
2021-06-04 09:18:36 STATE: Build for: nodeWASM type: tfjs: {"imports":1,"importBytes":149,"outputBytes":1367,"outputFiles":"dist/tfjs.esm.js"}
2021-06-04 09:18:36 STATE: Build for: nodeWASM type: node: {"imports":40,"importBytes":420884,"outputBytes":371867,"outputFiles":"dist/human.node-wasm.js"}
2021-06-04 09:18:36 STATE: Build for: browserNoBundle type: tfjs: {"imports":1,"importBytes":2478,"outputBytes":1394,"outputFiles":"dist/tfjs.esm.js"}
2021-06-04 09:18:36 STATE: Build for: browserNoBundle type: esm: {"imports":40,"importBytes":420911,"outputBytes":245059,"outputFiles":"dist/human.esm-nobundle.js"}
2021-06-04 09:18:37 STATE: Build for: browserBundle type: tfjs: {"modules":1299,"moduleBytes":4230827,"imports":7,"importBytes":2478,"outputBytes":1140320,"outputFiles":"dist/tfjs.esm.js"}
2021-06-04 09:18:37 STATE: Build for: browserBundle type: iife: {"imports":40,"importBytes":1559837,"outputBytes":1381446,"outputFiles":"dist/human.js"}
2021-06-04 09:18:37 STATE: Build for: browserBundle type: esm: {"imports":40,"importBytes":1559837,"outputBytes":1381438,"outputFiles":"dist/human.esm.js"}
2021-06-04 09:18:37 INFO:  Running Linter: ["server/","demo/","src/","test/"]
2021-06-04 09:19:05 INFO:  Linter complete: files: 67 errors: 0 warnings: 0
2021-06-04 09:19:05 INFO:  Generate types: ["src/human.ts"]
2021-06-04 09:19:10 INFO:  Update Change log: ["/home/vlado/dev/human/CHANGELOG.md"]
2021-06-04 09:19:10 INFO:  Generate TypeDocs: ["src/human.ts"]
2021-06-04 09:19:28 INFO:  Documentation generated at /home/vlado/dev/human/typedoc 1

View File

@ -1,169 +1,120 @@
2021-06-02 13:20:17 INFO:  @vladmandic/human version 2.0.0
2021-06-02 13:20:17 INFO:  User: vlado Platform: linux Arch: x64 Node: v16.0.0
2021-06-02 13:20:17 INFO:  tests: ["test-node.js","test-node-gpu.js","test-node-wasm.js"]
2021-06-02 13:20:17 INFO:  test-node.js start
2021-06-02 13:20:18 STATE: test-node.js passed: create human
2021-06-02 13:20:18 INFO:  test-node.js human version: 2.0.0
2021-06-02 13:20:18 INFO:  test-node.js platform: linux x64 agent: NodeJS v16.0.0
2021-06-02 13:20:18 INFO:  test-node.js tfjs version: 3.6.0
2021-06-02 13:20:18 STATE: test-node.js passed: set backend: tensorflow
2021-06-02 13:20:18 STATE: test-node.js passed: load models
2021-06-02 13:20:18 STATE: test-node.js result: defined models: 13 loaded models: 6
2021-06-02 13:20:18 STATE: test-node.js passed: warmup: none default
2021-06-02 13:20:20 STATE: test-node.js passed: warmup: face default
2021-06-02 13:20:20 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.73,"keypoints":5}
2021-06-02 13:20:20 DATA:  test-node.js result: performance: load: 332 total: 1557
2021-06-02 13:20:21 STATE: test-node.js passed: warmup: body default
2021-06-02 13:20:21 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-02 13:20:21 DATA:  test-node.js result: performance: load: 332 total: 1589
2021-06-02 13:20:21 INFO:  test-node.js test body variants
2021-06-02 13:20:23 STATE: test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-02 13:20:24 STATE: test-node.js passed: detect: samples/ai-body.jpg posenet
2021-06-02 13:20:24 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.96,"keypoints":16}
2021-06-02 13:20:24 DATA:  test-node.js result: performance: load: 332 total: 1011
2021-06-02 13:20:25 STATE: test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-02 13:20:25 STATE: test-node.js passed: detect: samples/ai-body.jpg movenet
2021-06-02 13:20:25 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-02 13:20:25 DATA:  test-node.js result: performance: load: 332 total: 329
2021-06-02 13:20:26 STATE: test-node.js passed: detect: random default
2021-06-02 13:20:26 DATA:  test-node.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 0 person: 0 {} {} {"score":0,"keypoints":0}
2021-06-02 13:20:26 DATA:  test-node.js result: performance: load: 332 total: 846
2021-06-02 13:20:26 INFO:  test-node.js test: first instance
2021-06-02 13:20:26 STATE: test-node.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
2021-06-02 13:20:28 STATE: test-node.js passed: detect: samples/ai-upper.jpg default
2021-06-02 13:20:28 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.78,"keypoints":7}
2021-06-02 13:20:28 DATA:  test-node.js result: performance: load: 332 total: 1373
2021-06-02 13:20:28 INFO:  test-node.js test: second instance
2021-06-02 13:20:28 STATE: test-node.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
2021-06-02 13:20:29 STATE: test-node.js passed: detect: samples/ai-upper.jpg default
2021-06-02 13:20:29 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.78,"keypoints":7}
2021-06-02 13:20:29 DATA:  test-node.js result: performance: load: 5 total: 1272
2021-06-02 13:20:29 INFO:  test-node.js test: concurrent
2021-06-02 13:20:29 STATE: test-node.js passed: load image: samples/ai-face.jpg [1,256,256,3]
2021-06-02 13:20:29 STATE: test-node.js passed: load image: samples/ai-face.jpg [1,256,256,3]
2021-06-02 13:20:30 STATE: test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-02 13:20:31 STATE: test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-02 13:20:37 STATE: test-node.js passed: detect: samples/ai-face.jpg default
2021-06-02 13:20:37 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.73,"keypoints":17}
2021-06-02 13:20:37 DATA:  test-node.js result: performance: load: 332 total: 5496
2021-06-02 13:20:37 STATE: test-node.js passed: detect: samples/ai-face.jpg default
2021-06-02 13:20:37 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.73,"keypoints":17}
2021-06-02 13:20:37 DATA:  test-node.js result: performance: load: 5 total: 5496
2021-06-02 13:20:37 STATE: test-node.js passed: detect: samples/ai-body.jpg default
2021-06-02 13:20:37 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-02 13:20:37 DATA:  test-node.js result: performance: load: 332 total: 5496
2021-06-02 13:20:37 STATE: test-node.js passed: detect: samples/ai-body.jpg default
2021-06-02 13:20:37 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-02 13:20:37 DATA:  test-node.js result: performance: load: 5 total: 5496
2021-06-02 13:20:37 INFO:  test-node.js test complete: 18941 ms
2021-06-02 13:20:37 INFO:  test-node-gpu.js start
2021-06-02 13:20:37 WARN:  test-node-gpu.js stderr: 2021-06-02 13:20:37.822445: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2021-06-02 13:20:37 WARN:  test-node-gpu.js stderr: 2021-06-02 13:20:37.875354: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2021-06-02 13:20:37 WARN:  test-node-gpu.js stderr: 2021-06-02 13:20:37.875595: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (wyse): /proc/driver/nvidia/version does not exist
2021-06-02 13:20:37 STATE: test-node-gpu.js passed: create human
2021-06-02 13:20:37 INFO:  test-node-gpu.js human version: 2.0.0
2021-06-02 13:20:37 INFO:  test-node-gpu.js platform: linux x64 agent: NodeJS v16.0.0
2021-06-02 13:20:37 INFO:  test-node-gpu.js tfjs version: 3.6.0
2021-06-02 13:20:38 STATE: test-node-gpu.js passed: set backend: tensorflow
2021-06-02 13:20:38 STATE: test-node-gpu.js passed: load models
2021-06-02 13:20:38 STATE: test-node-gpu.js result: defined models: 13 loaded models: 6
2021-06-02 13:20:38 STATE: test-node-gpu.js passed: warmup: none default
2021-06-02 13:20:40 STATE: test-node-gpu.js passed: warmup: face default
2021-06-02 13:20:40 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.73,"keypoints":5}
2021-06-02 13:20:40 DATA:  test-node-gpu.js result: performance: load: 328 total: 1683
2021-06-02 13:20:41 STATE: test-node-gpu.js passed: warmup: body default
2021-06-02 13:20:41 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-02 13:20:41 DATA:  test-node-gpu.js result: performance: load: 328 total: 1535
2021-06-02 13:20:41 INFO:  test-node-gpu.js test body variants
2021-06-02 13:20:42 STATE: test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-02 13:20:43 STATE: test-node-gpu.js passed: detect: samples/ai-body.jpg posenet
2021-06-02 13:20:43 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.96,"keypoints":16}
2021-06-02 13:20:43 DATA:  test-node-gpu.js result: performance: load: 328 total: 977
2021-06-02 13:20:44 STATE: test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-02 13:20:44 STATE: test-node-gpu.js passed: detect: samples/ai-body.jpg movenet
2021-06-02 13:20:44 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-02 13:20:44 DATA:  test-node-gpu.js result: performance: load: 328 total: 336
2021-06-02 13:20:45 STATE: test-node-gpu.js passed: detect: random default
2021-06-02 13:20:45 DATA:  test-node-gpu.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 1 person: 0 {} {"score":0.72,"class":"person"} {"score":0,"keypoints":0}
2021-06-02 13:20:45 DATA:  test-node-gpu.js result: performance: load: 328 total: 181
2021-06-02 13:20:45 INFO:  test-node-gpu.js test: first instance
2021-06-02 13:20:45 STATE: test-node-gpu.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
2021-06-02 13:20:45 STATE: test-node-gpu.js passed: detect: samples/ai-upper.jpg default
2021-06-02 13:20:45 DATA:  test-node-gpu.js result: face: 0 body: 1 hand: 0 gesture: 1 object: 1 person: 0 {} {"score":0.72,"class":"person"} {"score":0.78,"keypoints":7}
2021-06-02 13:20:45 DATA:  test-node-gpu.js result: performance: load: 328 total: 121
2021-06-02 13:20:45 INFO:  test-node-gpu.js test: second instance
2021-06-02 13:20:46 STATE: test-node-gpu.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
2021-06-02 13:20:47 STATE: test-node-gpu.js passed: detect: samples/ai-upper.jpg default
2021-06-02 13:20:47 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.78,"keypoints":7}
2021-06-02 13:20:47 DATA:  test-node-gpu.js result: performance: load: 4 total: 1327
2021-06-02 13:20:47 INFO:  test-node-gpu.js test: concurrent
2021-06-02 13:20:47 STATE: test-node-gpu.js passed: load image: samples/ai-face.jpg [1,256,256,3]
2021-06-02 13:20:47 STATE: test-node-gpu.js passed: load image: samples/ai-face.jpg [1,256,256,3]
2021-06-02 13:20:48 STATE: test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-02 13:20:49 STATE: test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-02 13:20:55 STATE: test-node-gpu.js passed: detect: samples/ai-face.jpg default
2021-06-02 13:20:55 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.73,"keypoints":17}
2021-06-02 13:20:55 DATA:  test-node-gpu.js result: performance: load: 328 total: 5502
2021-06-02 13:20:55 STATE: test-node-gpu.js passed: detect: samples/ai-face.jpg default
2021-06-02 13:20:55 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.73,"keypoints":17}
2021-06-02 13:20:55 DATA:  test-node-gpu.js result: performance: load: 4 total: 5502
2021-06-02 13:20:55 STATE: test-node-gpu.js passed: detect: samples/ai-body.jpg default
2021-06-02 13:20:55 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-02 13:20:55 DATA:  test-node-gpu.js result: performance: load: 328 total: 5502
2021-06-02 13:20:55 STATE: test-node-gpu.js passed: detect: samples/ai-body.jpg default
2021-06-02 13:20:55 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-02 13:20:55 DATA:  test-node-gpu.js result: performance: load: 4 total: 5502
2021-06-02 13:20:55 INFO:  test-node-gpu.js test complete: 17165 ms
2021-06-02 13:20:55 INFO:  test-node-wasm.js start
2021-06-02 13:20:55 STATE: test-node-wasm.js passed: model server: http://localhost:10030/models/
2021-06-02 13:20:55 STATE: test-node-wasm.js passed: create human
2021-06-02 13:20:55 INFO:  test-node-wasm.js human version: 2.0.0
2021-06-02 13:20:55 INFO:  test-node-wasm.js platform: linux x64 agent: NodeJS v16.0.0
2021-06-02 13:20:55 INFO:  test-node-wasm.js tfjs version: 3.6.0
2021-06-02 13:20:56 STATE: test-node-wasm.js passed: set backend: wasm
2021-06-02 13:20:56 STATE: test-node-wasm.js passed: load models
2021-06-02 13:20:56 STATE: test-node-wasm.js result: defined models: 13 loaded models: 5
2021-06-02 13:20:56 STATE: test-node-wasm.js passed: warmup: none default
2021-06-02 13:20:56 ERROR: test-node-wasm.js failed: warmup: face default
2021-06-02 13:20:56 ERROR: test-node-wasm.js failed: warmup: body default
2021-06-02 13:20:56 INFO:  test-node-wasm.js test body variants
2021-06-02 13:20:58 STATE: test-node-wasm.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-02 13:21:01 STATE: test-node-wasm.js passed: detect: samples/ai-body.jpg posenet
2021-06-02 13:21:01 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 0 person: 1 {"age":28.5,"gender":"female"} {} {"score":0.96,"keypoints":16}
2021-06-02 13:21:01 DATA:  test-node-wasm.js result: performance: load: 698 total: 3201
2021-06-02 13:21:03 STATE: test-node-wasm.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-02 13:21:05 STATE: test-node-wasm.js passed: detect: samples/ai-body.jpg movenet
2021-06-02 13:21:05 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 0 person: 1 {"age":28.5,"gender":"female"} {} {"score":0.93,"keypoints":17}
2021-06-02 13:21:05 DATA:  test-node-wasm.js result: performance: load: 698 total: 1905
2021-06-02 13:21:05 STATE: test-node-wasm.js passed: detect: random default
2021-06-02 13:21:05 DATA:  test-node-wasm.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 0 person: 0 {} {} {"score":0,"keypoints":0}
2021-06-02 13:21:05 DATA:  test-node-wasm.js result: performance: load: 698 total: 232
2021-06-02 13:21:05 INFO:  test-node-wasm.js test: first instance
2021-06-02 13:21:06 STATE: test-node-wasm.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
2021-06-02 13:21:06 STATE: test-node-wasm.js passed: detect: samples/ai-upper.jpg default
2021-06-02 13:21:06 DATA:  test-node-wasm.js result: face: 0 body: 1 hand: 0 gesture: 1 object: 0 person: 0 {} {} {"score":0.78,"keypoints":7}
2021-06-02 13:21:06 DATA:  test-node-wasm.js result: performance: load: 698 total: 236
2021-06-02 13:21:06 INFO:  test-node-wasm.js test: second instance
2021-06-02 13:21:07 STATE: test-node-wasm.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
2021-06-02 13:21:09 STATE: test-node-wasm.js passed: detect: samples/ai-upper.jpg default
2021-06-02 13:21:09 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 0 person: 1 {"age":29.5,"gender":"female"} {} {"score":0.78,"keypoints":7}
2021-06-02 13:21:09 DATA:  test-node-wasm.js result: performance: load: 5 total: 2340
2021-06-02 13:21:09 INFO:  test-node-wasm.js test: concurrent
2021-06-02 13:21:09 STATE: test-node-wasm.js passed: load image: samples/ai-face.jpg [1,256,256,3]
2021-06-02 13:21:09 STATE: test-node-wasm.js passed: load image: samples/ai-face.jpg [1,256,256,3]
2021-06-02 13:21:11 STATE: test-node-wasm.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-02 13:21:13 STATE: test-node-wasm.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-02 13:21:22 STATE: test-node-wasm.js passed: detect: samples/ai-face.jpg default
2021-06-02 13:21:22 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 0 person: 1 {"age":23.6,"gender":"female"} {} {"score":0.73,"keypoints":17}
2021-06-02 13:21:22 DATA:  test-node-wasm.js result: performance: load: 698 total: 9110
2021-06-02 13:21:22 STATE: test-node-wasm.js passed: detect: samples/ai-face.jpg default
2021-06-02 13:21:22 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 0 person: 1 {"age":23.6,"gender":"female"} {} {"score":0.73,"keypoints":17}
2021-06-02 13:21:22 DATA:  test-node-wasm.js result: performance: load: 5 total: 9110
2021-06-02 13:21:22 STATE: test-node-wasm.js passed: detect: samples/ai-body.jpg default
2021-06-02 13:21:22 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 0 person: 1 {"age":28.5,"gender":"female"} {} {"score":0.93,"keypoints":17}
2021-06-02 13:21:22 DATA:  test-node-wasm.js result: performance: load: 698 total: 9110
2021-06-02 13:21:22 STATE: test-node-wasm.js passed: detect: samples/ai-body.jpg default
2021-06-02 13:21:22 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 0 person: 1 {"age":28.5,"gender":"female"} {} {"score":0.93,"keypoints":17}
2021-06-02 13:21:22 DATA:  test-node-wasm.js result: performance: load: 5 total: 9110
2021-06-02 13:21:22 INFO:  test-node-wasm.js test complete: 26992 ms
2021-06-02 13:21:22 INFO:  status: {"passed":68,"failed":2}
2021-06-04 09:20:07 INFO:  @vladmandic/human version 2.0.0
2021-06-04 09:20:07 INFO:  User: vlado Platform: linux Arch: x64 Node: v16.0.0
2021-06-04 09:20:07 INFO:  tests: ["test-node.js","test-node-gpu.js","test-node-wasm.js"]
2021-06-04 09:20:07 INFO:  test-node.js start
2021-06-04 09:20:08 STATE: test-node.js passed: create human
2021-06-04 09:20:08 INFO:  test-node.js human version: 2.0.0
2021-06-04 09:20:08 INFO:  test-node.js platform: linux x64 agent: NodeJS v16.0.0
2021-06-04 09:20:08 INFO:  test-node.js tfjs version: 3.7.0
2021-06-04 09:20:08 STATE: test-node.js passed: set backend: tensorflow
2021-06-04 09:20:08 STATE: test-node.js passed: load models
2021-06-04 09:20:08 STATE: test-node.js result: defined models: 13 loaded models: 6
2021-06-04 09:20:08 STATE: test-node.js passed: warmup: none default
2021-06-04 09:20:10 STATE: test-node.js passed: warmup: face default
2021-06-04 09:20:10 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.73,"keypoints":5}
2021-06-04 09:20:10 DATA:  test-node.js result: performance: load: 449 total: 1590
2021-06-04 09:20:12 STATE: test-node.js passed: warmup: body default
2021-06-04 09:20:12 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-04 09:20:12 DATA:  test-node.js result: performance: load: 449 total: 1594
2021-06-04 09:20:12 INFO:  test-node.js test body variants
2021-06-04 09:20:13 STATE: test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-04 09:20:14 STATE: test-node.js passed: detect: samples/ai-body.jpg posenet
2021-06-04 09:20:14 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.96,"keypoints":16}
2021-06-04 09:20:14 DATA:  test-node.js result: performance: load: 449 total: 1012
2021-06-04 09:20:15 STATE: test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-04 09:20:15 STATE: test-node.js passed: detect: samples/ai-body.jpg movenet
2021-06-04 09:20:15 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-04 09:20:15 DATA:  test-node.js result: performance: load: 449 total: 194
2021-06-04 09:20:16 STATE: test-node.js passed: detect: random default
2021-06-04 09:20:16 DATA:  test-node.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 0 person: 0 {} {} {"score":0,"keypoints":0}
2021-06-04 09:20:16 DATA:  test-node.js result: performance: load: 449 total: 865
2021-06-04 09:20:16 INFO:  test-node.js test: first instance
2021-06-04 09:20:16 STATE: test-node.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
2021-06-04 09:20:18 STATE: test-node.js passed: detect: samples/ai-upper.jpg default
2021-06-04 09:20:18 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.78,"keypoints":7}
2021-06-04 09:20:18 DATA:  test-node.js result: performance: load: 449 total: 1551
2021-06-04 09:20:18 INFO:  test-node.js test: second instance
2021-06-04 09:20:18 STATE: test-node.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
2021-06-04 09:20:20 STATE: test-node.js passed: detect: samples/ai-upper.jpg default
2021-06-04 09:20:20 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.78,"keypoints":7}
2021-06-04 09:20:20 DATA:  test-node.js result: performance: load: 4 total: 1338
2021-06-04 09:20:20 INFO:  test-node.js test: concurrent
2021-06-04 09:20:20 STATE: test-node.js passed: load image: samples/ai-face.jpg [1,256,256,3]
2021-06-04 09:20:20 STATE: test-node.js passed: load image: samples/ai-face.jpg [1,256,256,3]
2021-06-04 09:20:21 STATE: test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-04 09:20:22 STATE: test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-04 09:20:27 STATE: test-node.js passed: detect: samples/ai-face.jpg default
2021-06-04 09:20:27 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.73,"keypoints":17}
2021-06-04 09:20:27 DATA:  test-node.js result: performance: load: 449 total: 5555
2021-06-04 09:20:27 STATE: test-node.js passed: detect: samples/ai-face.jpg default
2021-06-04 09:20:27 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.73,"keypoints":17}
2021-06-04 09:20:27 DATA:  test-node.js result: performance: load: 4 total: 5555
2021-06-04 09:20:27 STATE: test-node.js passed: detect: samples/ai-body.jpg default
2021-06-04 09:20:27 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-04 09:20:27 DATA:  test-node.js result: performance: load: 449 total: 5555
2021-06-04 09:20:27 STATE: test-node.js passed: detect: samples/ai-body.jpg default
2021-06-04 09:20:27 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-04 09:20:27 DATA:  test-node.js result: performance: load: 4 total: 5555
2021-06-04 09:20:27 INFO:  test-node.js test complete: 19371 ms
2021-06-04 09:20:27 INFO:  test-node-gpu.js start
2021-06-04 09:20:28 WARN:  test-node-gpu.js stderr: 2021-06-04 09:20:28.514106: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2021-06-04 09:20:28 WARN:  test-node-gpu.js stderr: 2021-06-04 09:20:28.621943: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2021-06-04 09:20:28 WARN:  test-node-gpu.js stderr: 2021-06-04 09:20:28.621974: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (wyse): /proc/driver/nvidia/version does not exist
2021-06-04 09:20:28 STATE: test-node-gpu.js passed: create human
2021-06-04 09:20:28 INFO:  test-node-gpu.js human version: 2.0.0
2021-06-04 09:20:28 INFO:  test-node-gpu.js platform: linux x64 agent: NodeJS v16.0.0
2021-06-04 09:20:28 INFO:  test-node-gpu.js tfjs version: 3.7.0
2021-06-04 09:20:29 STATE: test-node-gpu.js passed: set backend: tensorflow
2021-06-04 09:20:29 STATE: test-node-gpu.js passed: load models
2021-06-04 09:20:29 STATE: test-node-gpu.js result: defined models: 13 loaded models: 6
2021-06-04 09:20:29 STATE: test-node-gpu.js passed: warmup: none default
2021-06-04 09:20:30 STATE: test-node-gpu.js passed: warmup: face default
2021-06-04 09:20:30 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.73,"keypoints":5}
2021-06-04 09:20:30 DATA:  test-node-gpu.js result: performance: load: 338 total: 1639
2021-06-04 09:20:32 STATE: test-node-gpu.js passed: warmup: body default
2021-06-04 09:20:32 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-04 09:20:32 DATA:  test-node-gpu.js result: performance: load: 338 total: 1534
2021-06-04 09:20:32 INFO:  test-node-gpu.js test body variants
2021-06-04 09:20:33 STATE: test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-04 09:20:34 STATE: test-node-gpu.js passed: detect: samples/ai-body.jpg posenet
2021-06-04 09:20:34 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.96,"keypoints":16}
2021-06-04 09:20:34 DATA:  test-node-gpu.js result: performance: load: 338 total: 1167
2021-06-04 09:20:35 STATE: test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-04 09:20:35 STATE: test-node-gpu.js passed: detect: samples/ai-body.jpg movenet
2021-06-04 09:20:35 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-04 09:20:35 DATA:  test-node-gpu.js result: performance: load: 338 total: 200
2021-06-04 09:20:36 STATE: test-node-gpu.js passed: detect: random default
2021-06-04 09:20:36 DATA:  test-node-gpu.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 0 person: 0 {} {} {"score":0,"keypoints":0}
2021-06-04 09:20:36 DATA:  test-node-gpu.js result: performance: load: 338 total: 851
2021-06-04 09:20:36 INFO:  test-node-gpu.js test: first instance
2021-06-04 09:20:37 STATE: test-node-gpu.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
2021-06-04 09:20:38 STATE: test-node-gpu.js passed: detect: samples/ai-upper.jpg default
2021-06-04 09:20:38 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.78,"keypoints":7}
2021-06-04 09:20:38 DATA:  test-node-gpu.js result: performance: load: 338 total: 1355
2021-06-04 09:20:38 INFO:  test-node-gpu.js test: second instance
2021-06-04 09:20:38 STATE: test-node-gpu.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
2021-06-04 09:20:40 STATE: test-node-gpu.js passed: detect: samples/ai-upper.jpg default
2021-06-04 09:20:40 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.78,"keypoints":7}
2021-06-04 09:20:40 DATA:  test-node-gpu.js result: performance: load: 3 total: 1275
2021-06-04 09:20:40 INFO:  test-node-gpu.js test: concurrent
2021-06-04 09:20:40 STATE: test-node-gpu.js passed: load image: samples/ai-face.jpg [1,256,256,3]
2021-06-04 09:20:40 STATE: test-node-gpu.js passed: load image: samples/ai-face.jpg [1,256,256,3]
2021-06-04 09:20:41 STATE: test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-04 09:20:42 STATE: test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
2021-06-04 09:20:47 STATE: test-node-gpu.js passed: detect: samples/ai-face.jpg default
2021-06-04 09:20:47 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.73,"keypoints":17}
2021-06-04 09:20:47 DATA:  test-node-gpu.js result: performance: load: 338 total: 5529
2021-06-04 09:20:47 STATE: test-node-gpu.js passed: detect: samples/ai-face.jpg default
2021-06-04 09:20:47 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.73,"keypoints":17}
2021-06-04 09:20:47 DATA:  test-node-gpu.js result: performance: load: 3 total: 5529
2021-06-04 09:20:47 STATE: test-node-gpu.js passed: detect: samples/ai-body.jpg default
2021-06-04 09:20:47 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-04 09:20:47 DATA:  test-node-gpu.js result: performance: load: 338 total: 5529
2021-06-04 09:20:47 STATE: test-node-gpu.js passed: detect: samples/ai-body.jpg default
2021-06-04 09:20:47 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.93,"keypoints":17}
2021-06-04 09:20:47 DATA:  test-node-gpu.js result: performance: load: 3 total: 5529
2021-06-04 09:20:47 INFO:  test-node-gpu.js test complete: 19093 ms
2021-06-04 09:20:47 INFO:  test-node-wasm.js start
2021-06-04 09:20:48 ERROR: test-node-wasm.js failed: model server: request to http://localhost:10030/models/ failed, reason: connect ECONNREFUSED 127.0.0.1:10030
2021-06-04 09:20:48 ERROR: test-node-wasm.js aborting test
2021-06-04 09:20:48 INFO:  status: {"passed":46,"failed":1}