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