unified build

pull/280/head
Vladimir Mandic 2021-06-05 12:59:11 -04:00
parent a092f681f9
commit fd5973b0c2
4 changed files with 6 additions and 4 deletions

View File

@ -9,7 +9,10 @@ Repository: **<git+https://github.com/vladmandic/human.git>**
## Changelog ## 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 - added experimental body segmentation module
- add meet and selfie models - add meet and selfie models

View File

@ -6,7 +6,7 @@
"main": "dist/human.node.js", "main": "dist/human.node.js",
"module": "dist/human.esm.js", "module": "dist/human.esm.js",
"browser": "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>", "author": "Vladimir Mandic <mandic00@live.com>",
"bugs": { "bugs": {
"url": "https://github.com/vladmandic/human/issues" "url": "https://github.com/vladmandic/human/issues"

View File

@ -42,7 +42,7 @@ export class HandDetector {
async getBoxes(input, config) { async getBoxes(input, config) {
const batched = this.model.predict(input) as Tensor; const batched = this.model.predict(input) as Tensor;
const predictions = batched.squeeze(); const predictions = tf.squeeze(batched);
batched.dispose(); batched.dispose();
const scoresT = tf.tidy(() => tf.sigmoid(tf.slice(predictions, [0, 0], [-1, 1])).squeeze()); const scoresT = tf.tidy(() => tf.sigmoid(tf.slice(predictions, [0, 0], [-1, 1])).squeeze());
const scores = scoresT.dataSync(); const scores = scoresT.dataSync();

View File

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