From 4167d186ee67d4f7cce4f4c97ac2c24d5e3aeada Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sat, 5 Jun 2021 12:59:11 -0400 Subject: [PATCH] unified build --- CHANGELOG.md | 5 ++++- package.json | 2 +- src/handpose/handdetector.ts | 2 +- tsconfig.json | 1 - 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2ed5c5f..38e4c688 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,10 @@ Repository: **** ## Changelog -### **HEAD -> main** 2021/06/04 mandic00@live.com +### **HEAD -> main** 2021/06/05 mandic00@live.com + + +### **origin/main** 2021/06/04 mandic00@live.com - added experimental body segmentation module - add meet and selfie models diff --git a/package.json b/package.json index 239df3d8..231cf6a1 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "main": "dist/human.node.js", "module": "dist/human.esm.js", "browser": "dist/human.esm.js", - "types": "types/human.d.ts", + "types": "types/src/human.d.ts", "author": "Vladimir Mandic ", "bugs": { "url": "https://github.com/vladmandic/human/issues" diff --git a/src/handpose/handdetector.ts b/src/handpose/handdetector.ts index 3ceed6d6..290fc758 100644 --- a/src/handpose/handdetector.ts +++ b/src/handpose/handdetector.ts @@ -42,7 +42,7 @@ export class HandDetector { async getBoxes(input, config) { const batched = this.model.predict(input) as Tensor; - const predictions = batched.squeeze(); + const predictions = tf.squeeze(batched); batched.dispose(); const scoresT = tf.tidy(() => tf.sigmoid(tf.slice(predictions, [0, 0], [-1, 1])).squeeze()); const scores = scoresT.dataSync(); diff --git a/tsconfig.json b/tsconfig.json index eb4813e6..1e4fb9b8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,6 @@ "module": "es2020", "target": "es2018", "moduleResolution": "node", - "lib": ["es2018", "dom"], "typeRoots": ["node_modules/@types"], "outDir": "types", "declaration": true,