mirror of https://github.com/vladmandic/human
minor fixes
parent
67667160cb
commit
02d883c00f
|
@ -9,11 +9,13 @@
|
|||
|
||||
## Changelog
|
||||
|
||||
### **HEAD -> main** 2021/11/19 mandic00@live.com
|
||||
|
||||
- edit blazepose keypoints
|
||||
- new build process
|
||||
|
||||
### **2.5.3** 2021/11/18 mandic00@live.com
|
||||
|
||||
|
||||
### **origin/main** 2021/11/17 mandic00@live.com
|
||||
|
||||
- create typedef rollup
|
||||
- optimize centernet
|
||||
- cache frequent tf constants
|
||||
|
|
|
@ -74,8 +74,8 @@
|
|||
"@vladmandic/tfjs": "github:vladmandic/tfjs",
|
||||
"canvas": "^2.8.0",
|
||||
"dayjs": "^1.10.7",
|
||||
"esbuild": "^0.13.14",
|
||||
"eslint": "8.2.0",
|
||||
"esbuild": "^0.13.15",
|
||||
"eslint": "8.3.0",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-plugin-html": "^6.2.0",
|
||||
"eslint-plugin-import": "^2.25.3",
|
||||
|
|
|
@ -45,11 +45,11 @@ export const kpt: Array<string> = [
|
|||
export const connected: Record<string, string[]> = {
|
||||
leftLeg: ['leftHip', 'leftKnee', 'leftAnkle', 'leftHeel', 'leftFoot'],
|
||||
rightLeg: ['rightHip', 'rightKnee', 'rightAnkle', 'rightHeel', 'rightFoot'],
|
||||
torso: ['leftShoulder', 'rightShoulder', 'rightHip', 'leftHip', 'leftShoulder'],
|
||||
torso: ['leftShoulder', 'rightShoulder', 'rightHip', 'leftHip', 'leftShoulder', 'rightShoulder'],
|
||||
leftArm: ['leftShoulder', 'leftElbow', 'leftWrist', 'leftPalm'],
|
||||
rightArm: ['rightShoulder', 'rightElbow', 'rightWrist', 'rightPalm'],
|
||||
leftHand: ['leftHand', 'leftPalm', 'leftPinky', 'leftPalm', 'leftIndex', 'leftPalm', 'leftThumb'],
|
||||
rightHand: ['rightHand', 'rightPalm', 'rightPinky', 'rightPalm', 'rightIndex', 'rightPalm', 'rightThumb'],
|
||||
// leftHand: ['leftHand', 'leftPalm', 'leftPinky', 'leftPalm', 'leftIndex', 'leftPalm', 'leftThumb'],
|
||||
// rightHand: ['rightHand', 'rightPalm', 'rightPinky', 'rightPalm', 'rightIndex', 'rightPalm', 'rightThumb'],
|
||||
leftEye: ['leftEyeInside', 'leftEye', 'leftEyeOutside'],
|
||||
rightEye: ['rightEyeInside', 'rightEye', 'rightEyeOutside'],
|
||||
mouth: ['leftMouth', 'rightMouth'],
|
||||
|
|
|
@ -138,10 +138,12 @@ export class Env {
|
|||
try {
|
||||
if (this.webgpu.supported) this.webgpu.adapter = (await navigator['gpu'].requestAdapter()).name;
|
||||
// enumerate kernels
|
||||
this.kernels = tf.getKernelsForBackend(tf.getBackend()).map((kernel) => kernel.kernelName.toLowerCase());
|
||||
} catch {
|
||||
this.webgpu.supported = false;
|
||||
}
|
||||
try {
|
||||
this.kernels = tf.getKernelsForBackend(tf.getBackend()).map((kernel) => kernel.kernelName.toLowerCase());
|
||||
} catch { /**/ }
|
||||
}
|
||||
|
||||
/** update cpu information */
|
||||
|
|
Loading…
Reference in New Issue