From 7a82a732737884d7834dec345d185b66608448b4 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sun, 16 Oct 2022 20:28:57 -0400 Subject: [PATCH] tensor rank strong typechecks --- .api-extractor.json | 2 +- .build.json | 6 +- CHANGELOG.md | 7 +- README.md | 32 +- TODO.md | 2 + build.js | 4 +- demo/faceid/index.js | 4 +- demo/faceid/index.js.map | 4 +- demo/faceid/index.ts | 2 +- demo/typescript/index.js.map | 4 +- demo/typescript/index.ts | 2 +- package.json | 28 +- src/body/blazepose.ts | 14 +- src/body/blazeposedetector.ts | 2 +- src/body/efficientpose.ts | 11 +- src/body/movenet.ts | 2 +- src/body/movenetfix.ts | 6 +- src/body/posenet.ts | 6 +- src/exports.ts | 6 +- src/face/antispoof.ts | 6 +- src/face/blazeface.ts | 13 +- src/face/face.ts | 44 +- src/face/faceboxes.ts | 6 +- src/face/facemesh.ts | 6 +- src/face/facemeshutil.ts | 4 +- src/face/faceres.ts | 10 +- src/face/insightface.ts | 6 +- src/face/iris.ts | 2 +- src/face/liveness.ts | 6 +- src/face/mask.ts | 4 +- src/face/mobilefacenet.ts | 6 +- src/gear/emotion.ts | 6 +- src/gear/gear.ts | 6 +- src/gear/ssrnet-age.ts | 6 +- src/gear/ssrnet-gender.ts | 6 +- src/hand/handposedetector.ts | 14 +- src/hand/handposepipeline.ts | 4 +- src/hand/handposeutil.ts | 2 +- src/hand/handtrack.ts | 12 +- src/human.ts | 17 +- src/image/enhance.ts | 6 +- src/image/image.ts | 25 +- src/object/centernet.ts | 10 +- src/object/nanodet.ts | 20 +- src/segmentation/meet.ts | 10 +- src/segmentation/rvm.ts | 16 +- src/segmentation/selfie.ts | 10 +- src/tfjs/backend.ts | 33 +- src/tfjs/constants.ts | 2 +- src/tfjs/humangl.ts | 7 +- src/tfjs/load.ts | 2 +- src/tfjs/long.d.ts | 391 ++++++++ src/tfjs/tfjs.esm.d.ts | 7 +- src/tfjs/types.ts | 33 +- src/util/env.ts | 16 +- src/warmup.ts | 11 +- test/build.log | 80 +- test/test.log | 1705 ++++++++++++++------------------- tsconfig.json | 3 +- 59 files changed, 1433 insertions(+), 1284 deletions(-) create mode 100644 src/tfjs/long.d.ts diff --git a/.api-extractor.json b/.api-extractor.json index e1f8299b..33a6658d 100644 --- a/.api-extractor.json +++ b/.api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "types/lib/src/human.d.ts", - "bundledPackages": ["@tensorflow/tfjs-core", "@tensorflow/tfjs-converter", "@tensorflow/tfjs-data", "@tensorflow/tfjs-layers"], + "bundledPackages": ["@tensorflow/tfjs-core", "@tensorflow/tfjs-converter"], "compiler": { "skipLibCheck": false }, diff --git a/.build.json b/.build.json index 971b2f55..cab0f010 100644 --- a/.build.json +++ b/.build.json @@ -12,7 +12,7 @@ "clean": ["clean"] }, "clean": { - "locations": ["dist/*", "types/lib/*", "typedoc/*"] + "locations": ["dist/*", "types/*", "typedoc/*"] }, "lint": { "locations": [ "*.json", "src/**/*.ts", "test/**/*.js", "demo/**/*.js" ], @@ -24,8 +24,8 @@ "serve": { "sslKey": "node_modules/@vladmandic/build/cert/https.key", "sslCrt": "node_modules/@vladmandic/build/cert/https.crt", - "httpPort": 10030, - "httpsPort": 10031, + "httpPort": 8000, + "httpsPort": 8001, "documentRoot": ".", "defaultFolder": "demo", "defaultFile": "index.html" diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a201178..7c4074fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # @vladmandic/human - Version: **2.11.1** + Version: **3.0.0** Description: **Human: AI-powered 3D Face Detection & Rotation Tracking, Face Description & Recognition, Body Pose Tracking, 3D Hand & Finger Tracking, Iris Analysis, Age & Gender & Emotion Prediction, Gesture Recognition** Author: **Vladimir Mandic ** @@ -9,7 +9,10 @@ ## Changelog -### **HEAD -> main** 2022/10/09 mandic00@live.com +### **HEAD -> main** 2022/10/13 mandic00@live.com + + +### **release: 2.11.1** 2022/10/09 mandic00@live.com ### **2.11.1** 2022/10/09 mandic00@live.com diff --git a/README.md b/README.md index 204b2a8b..a24822b8 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ **Body Pose Tracking, 3D Hand & Finger Tracking, Iris Analysis,** **Age & Gender & Emotion Prediction, Gaze Tracking, Gesture Recognition, Body Segmentation** -JavaScript module using TensorFlow/JS Machine Learning library +
+ ## Highlights - Compatible with most server-side and client-side environments and frameworks @@ -239,7 +240,7 @@ Additionally, `HTMLVideoElement`, `HTMLMediaElement` can be a standard `