unified build

pull/356/head
Vladimir Mandic 2021-06-05 12:59:11 -04:00
parent 302cc31f59
commit 4167d186ee
4 changed files with 6 additions and 4 deletions

View File

@ -9,7 +9,10 @@ Repository: **<git+https://github.com/vladmandic/human.git>**
## 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

View File

@ -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 <mandic00@live.com>",
"bugs": {
"url": "https://github.com/vladmandic/human/issues"

View File

@ -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();

View File

@ -4,7 +4,6 @@
"module": "es2020",
"target": "es2018",
"moduleResolution": "node",
"lib": ["es2018", "dom"],
"typeRoots": ["node_modules/@types"],
"outDir": "types",
"declaration": true,