diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b1333d7..3929c42b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,9 @@ Repository: **** ## Changelog -### **HEAD -> main** 2021/08/17 mandic00@live.com +### **HEAD -> main** 2021/08/18 mandic00@live.com +- rebuild full - improve face box caching - strict type checks - add webgu checks diff --git a/package.json b/package.json index 3ba63da6..4cf215cb 100644 --- a/package.json +++ b/package.json @@ -66,14 +66,14 @@ "@tensorflow/tfjs-layers": "^3.8.0", "@tensorflow/tfjs-node": "^3.8.0", "@tensorflow/tfjs-node-gpu": "^3.8.0", - "@types/node": "^16.6.1", + "@types/node": "^16.6.2", "@typescript-eslint/eslint-plugin": "^4.29.2", "@typescript-eslint/parser": "^4.29.2", "@vladmandic/pilogger": "^0.2.18", "canvas": "^2.8.0", "chokidar": "^3.5.2", "dayjs": "^1.10.6", - "esbuild": "^0.12.20", + "esbuild": "^0.12.21", "eslint": "^7.32.0", "eslint-config-airbnb-base": "^14.2.1", "eslint-plugin-import": "^2.24.0", @@ -85,7 +85,7 @@ "seedrandom": "^3.0.5", "simple-git": "^2.44.0", "tslib": "^2.3.1", - "typedoc": "0.21.5", + "typedoc": "0.21.6", "typescript": "4.3.5" } } diff --git a/src/human.ts b/src/human.ts index 331efce9..4eb7e38b 100644 --- a/src/human.ts +++ b/src/human.ts @@ -99,6 +99,16 @@ export class Human { canvas: typeof draw.canvas, all: typeof draw.all, }; + /** Types used by Human */ + static Config: Config; + static Result: Result; + static Face: Face; + static Hand: Hand; + static Body: Body; + static Item: Item; + static Gesture: Gesture; + static Person: Gesture + static DrawOptions: draw.DrawOptions; /** @internal: Currently loaded models */ models: { face: [unknown, GraphModel | null, GraphModel | null] | null, diff --git a/test/test.js b/test/test.js index 48247f56..a93ee139 100644 --- a/test/test.js +++ b/test/test.js @@ -12,7 +12,7 @@ const tests = [ 'test-node-wasm.js', ]; -const ignore = [ +const ignoreMessages = [ 'cpu_feature_guard.cc', 'rebuild TensorFlow', 'xla_gpu_device.cc', @@ -35,7 +35,7 @@ function logMessage(test, data) { function logStdIO(ok, test, buffer) { const lines = buffer.toString().split(/\r\n|\n\r|\n|\r/); const filtered = lines.filter((line) => { - for (const ignoreString of ignore) { + for (const ignoreString of ignoreMessages) { if (line.includes(ignoreString)) return false; } return true;