mirror of https://github.com/vladmandic/human
update
parent
51d1f251e6
commit
84bfbc323b
|
@ -9,7 +9,10 @@
|
|||
|
||||
## Changelog
|
||||
|
||||
### **HEAD -> main** 2021/12/30 mandic00@live.com
|
||||
### **HEAD -> main** 2022/01/01 mandic00@live.com
|
||||
|
||||
|
||||
### **origin/main** 2021/12/31 mandic00@live.com
|
||||
|
||||
- fix samples
|
||||
- fix(src): typo
|
||||
|
|
12
package.json
12
package.json
|
@ -65,20 +65,20 @@
|
|||
"@tensorflow/tfjs-layers": "^3.12.0",
|
||||
"@tensorflow/tfjs-node": "^3.12.0",
|
||||
"@tensorflow/tfjs-node-gpu": "^3.12.0",
|
||||
"@types/node": "^17.0.5",
|
||||
"@types/node": "^17.0.8",
|
||||
"@types/offscreencanvas": "^2019.6.4",
|
||||
"@typescript-eslint/eslint-plugin": "^5.8.1",
|
||||
"@typescript-eslint/parser": "^5.8.1",
|
||||
"@typescript-eslint/eslint-plugin": "^5.9.0",
|
||||
"@typescript-eslint/parser": "^5.9.0",
|
||||
"@vladmandic/build": "^0.6.6",
|
||||
"@vladmandic/pilogger": "^0.4.2",
|
||||
"@vladmandic/tfjs": "github:vladmandic/tfjs",
|
||||
"canvas": "^2.8.0",
|
||||
"dayjs": "^1.10.7",
|
||||
"esbuild": "^0.14.9",
|
||||
"eslint": "8.5.0",
|
||||
"esbuild": "^0.14.10",
|
||||
"eslint": "8.6.0",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-plugin-html": "^6.2.0",
|
||||
"eslint-plugin-import": "^2.25.3",
|
||||
"eslint-plugin-import": "^2.25.4",
|
||||
"eslint-plugin-json": "^3.1.0",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^6.0.0",
|
||||
|
|
|
@ -104,7 +104,7 @@ function rescaleKeypoints(keypoints: Array<BodyKeypoint>, outputSize: [number, n
|
|||
Math.trunc(kpt.position[1] * (outputSize[1] + padding[1][0] + padding[1][1]) / outputSize[1] - padding[1][0]),
|
||||
kpt.position[2] as number,
|
||||
];
|
||||
kpt.positionRaw = [kpt.position[0] / outputSize[0], kpt.position[1] / outputSize[1], kpt.position[2] as number];
|
||||
kpt.positionRaw = [kpt.position[0] / outputSize[0], kpt.position[1] / outputSize[1], 2 * (kpt.position[2] as number) / (outputSize[0] + outputSize[1])];
|
||||
}
|
||||
if (cropBox) { // second rescale due to cropping
|
||||
for (const kpt of keypoints) {
|
||||
|
|
Loading…
Reference in New Issue