release rebuild

main
Vladimir Mandic 2024-04-17 11:36:54 -04:00
parent d7e66afe1f
commit 001a3d58ea
12 changed files with 966 additions and 963 deletions

View File

@ -9,6 +9,9 @@
## Changelog
### **HEAD -> main** 2024/04/17 mandic00@live.com
### **3.2.2** 2024/04/17 mandic00@live.com

View File

@ -4,7 +4,7 @@
author: <https://github.com/vladmandic>'
*/
var at=Object.defineProperty;var Qn=Object.getOwnPropertyDescriptor;var _n=Object.getOwnPropertyNames;var $n=Object.prototype.hasOwnProperty;var eo=(e,t,n)=>t in e?at(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t)=>{for(var n in t)at(e,n,{get:t[n],enumerable:!0})},X5=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of _n(t))!$n.call(e,s)&&s!==n&&at(e,s,{get:()=>t[s],enumerable:!(o=Qn(t,s))||o.enumerable});return e},w=(e,t,n)=>(X5(e,t,"default"),n&&X5(n,t,"default"));var z=(e,t,n)=>(eo(e,typeof t!="symbol"?t+"":t,n),n),q5=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var E0=(e,t,n)=>(q5(e,t,"read from private field"),n?n.call(e):t.get(e)),q0=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Q0=(e,t,n,o)=>(q5(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);var r={};oe(r,{node:()=>it,version:()=>Je});w(r,vA);w(r,RA);w(r,MA);w(r,PA);w(r,kA);w(r,wA);import*as vA from"@tensorflow/tfjs-core/dist/index.js";import*as RA from"@tensorflow/tfjs-converter/dist/index.js";import*as MA from"@tensorflow/tfjs-backend-cpu/dist/index.js";import*as PA from"@tensorflow/tfjs-backend-webgl/dist/index.js";import*as kA from"@tensorflow/tfjs-backend-wasm/dist/index.js";import*as wA from"@tensorflow/tfjs-backend-webgpu/dist/index.js";var U5="4.17.0",to="4.17.0",no="4.17.0",oo="4.17.0",ro="4.17.0",so="4.17.0",Je={tfjs:U5,"tfjs-core":U5,"tfjs-converter":to,"tfjs-backend-cpu":no,"tfjs-backend-webgl":oo,"tfjs-backend-wasm":ro,"tfjs-backend-webgpu":so},it=void 0;function b(...e){let t=new Date,n=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}.${t.getMilliseconds().toString().padStart(3,"0")}`;e&&console.log(n,"Human:",...e)}function Y5(e,t){let n=e.endsWith("/")?"":"/",s=t.startsWith(".")||t.startsWith("/")||t.startsWith("http:")||t.startsWith("https:")||t.startsWith("file:")?`${t}`:`${e}${n}${t}`;if(!s.toLocaleLowerCase().includes(".json"))throw new Error(`modelpath error: expecting json file: ${s}`);return s}var R=()=>typeof performance!="undefined"?performance.now():parseInt((Number(process.hrtime.bigint())/1e3/1e3).toString());function lt(e,t,n="config",o=[]){for(let s of Object.keys(t))if(typeof t[s]=="object")lt(e[s],t[s],s,o);else{let A=e&&typeof e[s]!="undefined";A||o.push({reason:"unknown property",where:`${n}.${s} = ${t[s]}`});let a=e&&typeof e[s]==typeof t[s];A&&!a&&o.push({reason:"property type mismatch",where:`${n}.${s} = ${t[s]}`,expected:typeof e[s]})}return t.debug&&n==="config"&&o.length>0&&b("invalid configuration",o),o}function Q(...e){let t=n=>n&&typeof n=="object";return e.reduce((n,o)=>(Object.keys(o||{}).forEach(s=>{let A=n[s],a=o[s];Array.isArray(A)&&Array.isArray(a)?n[s]=A.concat(...a):t(A)&&t(a)?n[s]=Q(A,a):n[s]=a}),n),{})}var Ce={backend:"",modelBasePath:"",cacheModels:!0,validateModels:!0,wasmPath:"",wasmPlatformFetch:!1,debug:!1,async:!0,warmup:"full",cacheSensitivity:.7,skipAllowed:!1,deallocate:!1,flags:{},softwareKernels:!1,filter:{enabled:!0,equalization:!1,width:0,height:0,flip:!1,return:!0,autoBrightness:!0,brightness:0,contrast:0,sharpness:0,blur:0,saturation:0,hue:0,negative:!1,sepia:!1,vintage:!1,kodachrome:!1,technicolor:!1,polaroid:!1,pixelate:0},gesture:{enabled:!0},face:{enabled:!0,detector:{modelPath:"blazeface.json",rotation:!1,maxDetected:1,skipFrames:99,skipTime:2500,minConfidence:.2,minSize:0,iouThreshold:.1,scale:1,mask:!1,return:!1},mesh:{enabled:!0,modelPath:"facemesh.json",keepInvalid:!1},attention:{enabled:!1,modelPath:"facemesh-attention.json"},iris:{enabled:!0,scale:2.3,modelPath:"iris.json"},emotion:{enabled:!0,minConfidence:.1,skipFrames:99,skipTime:1500,modelPath:"emotion.json"},description:{enabled:!0,modelPath:"faceres.json",skipFrames:99,skipTime:3e3,minConfidence:.1},antispoof:{enabled:!1,skipFrames:99,skipTime:4e3,modelPath:"antispoof.json"},liveness:{enabled:!1,skipFrames:99,skipTime:4e3,modelPath:"liveness.json"}},body:{enabled:!0,modelPath:"movenet-lightning.json",maxDetected:-1,minConfidence:.3,skipFrames:1,skipTime:200},hand:{enabled:!0,rotation:!0,skipFrames:99,skipTime:1e3,minConfidence:.5,iouThreshold:.2,maxDetected:-1,landmarks:!0,detector:{modelPath:"handtrack.json"},skeleton:{modelPath:"handlandmark-lite.json"}},object:{enabled:!1,modelPath:"centernet.json",minConfidence:.2,iouThreshold:.4,maxDetected:10,skipFrames:99,skipTime:2e3},segmentation:{enabled:!1,modelPath:"rvm.json",ratio:.5,mode:"default"}};var K5=`
var at=Object.defineProperty;var Qn=Object.getOwnPropertyDescriptor;var _n=Object.getOwnPropertyNames;var $n=Object.prototype.hasOwnProperty;var eo=(e,t,n)=>t in e?at(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t)=>{for(var n in t)at(e,n,{get:t[n],enumerable:!0})},X5=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of _n(t))!$n.call(e,s)&&s!==n&&at(e,s,{get:()=>t[s],enumerable:!(o=Qn(t,s))||o.enumerable});return e},w=(e,t,n)=>(X5(e,t,"default"),n&&X5(n,t,"default"));var z=(e,t,n)=>(eo(e,typeof t!="symbol"?t+"":t,n),n),q5=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var E0=(e,t,n)=>(q5(e,t,"read from private field"),n?n.call(e):t.get(e)),q0=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Q0=(e,t,n,o)=>(q5(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);var r={};oe(r,{node:()=>it,version:()=>Je});w(r,vA);w(r,RA);w(r,MA);w(r,PA);w(r,kA);w(r,wA);import*as vA from"@tensorflow/tfjs-core/dist/index.js";import*as RA from"@tensorflow/tfjs-converter/dist/index.js";import*as MA from"@tensorflow/tfjs-backend-cpu/dist/index.js";import*as PA from"@tensorflow/tfjs-backend-webgl/dist/index.js";import*as kA from"@tensorflow/tfjs-backend-wasm/dist/index.js";import*as wA from"@tensorflow/tfjs-backend-webgpu/dist/index.js";var U5="4.17.0",to="4.17.0",no="4.17.0",oo="4.17.0",ro="4.17.0",so="4.17.0",Je={tfjs:U5,"tfjs-core":U5,"tfjs-converter":to,"tfjs-backend-cpu":no,"tfjs-backend-webgl":oo,"tfjs-backend-wasm":ro,"tfjs-backend-webgpu":so},it=void 0;function b(...e){let t=new Date,n=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}.${t.getMilliseconds().toString().padStart(3,"0")}`;e&&console.log(n,"Human:",...e)}function Y5(e,t){let n=e.endsWith("/")?"":"/",s=t.startsWith(".")||t.startsWith("/")||t.startsWith("http:")||t.startsWith("https:")||t.startsWith("file:")?`${t}`:`${e}${n}${t}`;if(!s.toLocaleLowerCase().includes(".json"))throw new Error(`modelpath error: expecting json file: ${s}`);return s}var R=()=>typeof performance!="undefined"?performance.now():parseInt((Number(process.hrtime.bigint())/1e3/1e3).toString());function lt(e,t,n="config",o=[]){for(let s of Object.keys(t))if(typeof t[s]=="object")lt(e[s],t[s],s,o);else{let A=e&&typeof e[s]!="undefined";A||o.push({reason:"unknown property",where:`${n}.${s} = ${t[s]}`});let a=e&&typeof e[s]==typeof t[s];A&&!a&&o.push({reason:"property type mismatch",where:`${n}.${s} = ${t[s]}`,expected:typeof e[s]})}return t.debug&&n==="config"&&o.length>0&&b("invalid configuration",o),o}function Q(...e){let t=n=>n&&typeof n=="object";return e.reduce((n,o)=>(Object.keys(o||{}).forEach(s=>{let A=n[s],a=o[s];Array.isArray(A)&&Array.isArray(a)?n[s]=A.concat(...a):t(A)&&t(a)?n[s]=Q(A,a):n[s]=a}),n),{})}var Ce={backend:"",modelBasePath:"",cacheModels:!0,validateModels:!0,wasmPath:"",wasmPlatformFetch:!1,debug:!1,async:!0,warmup:"full",cacheSensitivity:.7,skipAllowed:!1,deallocate:!1,flags:{},softwareKernels:!1,filter:{enabled:!0,equalization:!1,width:0,height:0,flip:!1,return:!0,autoBrightness:!0,brightness:0,contrast:0,sharpness:0,blur:0,saturation:0,hue:0,negative:!1,sepia:!1,vintage:!1,kodachrome:!1,technicolor:!1,polaroid:!1,pixelate:0},gesture:{enabled:!0},face:{enabled:!0,detector:{modelPath:"blazeface.json",rotation:!1,maxDetected:1,skipFrames:99,skipTime:2500,minConfidence:.2,minSize:0,iouThreshold:.1,scale:1.4,mask:!1,return:!1},mesh:{enabled:!0,modelPath:"facemesh.json",keepInvalid:!1},attention:{enabled:!1,modelPath:"facemesh-attention.json"},iris:{enabled:!0,scale:2.3,modelPath:"iris.json"},emotion:{enabled:!0,minConfidence:.1,skipFrames:99,skipTime:1500,modelPath:"emotion.json"},description:{enabled:!0,modelPath:"faceres.json",skipFrames:99,skipTime:3e3,minConfidence:.1},antispoof:{enabled:!1,skipFrames:99,skipTime:4e3,modelPath:"antispoof.json"},liveness:{enabled:!1,skipFrames:99,skipTime:4e3,modelPath:"liveness.json"}},body:{enabled:!0,modelPath:"movenet-lightning.json",maxDetected:-1,minConfidence:.3,skipFrames:1,skipTime:200},hand:{enabled:!0,rotation:!0,skipFrames:99,skipTime:1e3,minConfidence:.5,iouThreshold:.2,maxDetected:-1,landmarks:!0,detector:{modelPath:"handtrack.json"},skeleton:{modelPath:"handlandmark-lite.json"}},object:{enabled:!1,modelPath:"centernet.json",minConfidence:.2,iouThreshold:.4,maxDetected:10,skipFrames:99,skipTime:2e3},segmentation:{enabled:!1,modelPath:"rvm.json",ratio:.5,mode:"default"}};var K5=`
precision highp float;
attribute vec2 pos;
attribute vec2 uv;

2
dist/human.esm.js vendored
View File

@ -33656,7 +33656,7 @@ var config = {
minConfidence: 0.2,
minSize: 0,
iouThreshold: 0.1,
scale: 1,
scale: 1.4,
mask: false,
return: false
},

File diff suppressed because one or more lines are too long

2
dist/human.js vendored
View File

@ -8523,7 +8523,7 @@ return a / b;`,TJ=`
}
}
}
`}};function W2e(e){let{inputs:t,backend:a,attrs:n}=e,{x:r,segmentIds:s}=t,{numSegments:i}=n,o=r.shape.length,l=[],u=0,p=C.getAxesPermutation([u],o),c=r;p!=null&&(c=nr({inputs:{x:r},backend:a,attrs:{perm:p}}),l.push(c),u=C.getInnerMostAxes(1,o)[0]);let d=C.segment_util.computeOutShape(c.shape,u,i),h=v.sizeFromShape([c.shape[u]]),m=ke({inputs:{x:c},backend:a,attrs:{shape:[-1,h]}});l.push(m);let f=r.dtype,g=[m.shape[0],i],y=Wa({backend:a,attrs:{shape:g,value:0,dtype:f}}),x=new L2e(m.shape,g,f),A=[{type:"int32",data:[i]},{type:"int32",data:[v.sizeFromShape(m.shape)]}],b=a.runWebGPUProgram(x,[m,s],f,A,y),w=ke({inputs:{x:b},backend:a,attrs:{shape:d}});l.push(b);let I=w;if(p!=null){l.push(w);let T=C.getUndoAxesPermutation(p);I=nr({inputs:{x:I},backend:a,attrs:{perm:T}})}return l.forEach(T=>a.disposeData(T.dataId)),I}var B2e={kernelName:Ep,backendName:"webgpu",kernelFunc:W2e},V2e=[hde,Zde,Qde,tpe,npe,ipe,hpe,fpe,ype,Ape,vpe,kpe,Spe,Tpe,Rpe,_pe,Dpe,Wpe,Vpe,Gpe,Kpe,Qpe,ace,ice,lce,cce,fde,fce,Ace,Tce,Pce,Oce,Wce,Vce,Gce,jce,Xce,Zce,Qce,the,nhe,ihe,hhe,fhe,uhe,xhe,vhe,She,The,Ehe,_he,Dhe,zhe,Whe,Vhe,Ghe,Hhe,qhe,Khe,dde,Zhe,n0e,Qhe,t0e,i0e,l0e,d0e,h0e,g0e,x0e,b0e,mde,w0e,yce,I0e,C0e,N0e,E0e,$0e,_0e,O0e,B0e,L0e,U0e,H0e,q0e,Z0e,eme,Mpe,ame,rme,cme,ime,dme,mme,$pe,gme,xme,bme,wme,Tme,Mhe,Rme,Mme,Pme,nce,Dme,zme,Wme,Ume,Hme,qme,Kme,Zme,rce,Qme,tfe,nfe,sfe,pde,lfe,pfe,mfe,yfe,bfe,wfe,Ife,Cfe,Nfe,Mfe,_fe,Dfe,zfe,Wfe,Vfe,Gfe,qpe,g2e,A2e,v2e,Sme,jfe,Kfe,e2e,a2e,o2e,u2e,p2e,c2e,m2e,k2e,$he,S2e,T2e,R2e,s2e,P2e,D2e,upe,z2e,B2e,Ome];for(let e of V2e)xn(e);var cA="4.17.0",U2e="4.17.0",G2e="4.17.0",H2e="4.17.0",j2e="4.17.0",q2e="4.17.0",ac={tfjs:cA,"tfjs-core":cA,"tfjs-converter":U2e,"tfjs-backend-cpu":G2e,"tfjs-backend-webgl":H2e,"tfjs-backend-wasm":j2e,"tfjs-backend-webgpu":q2e},Q3=void 0;function K(...e){let t=new Date,a=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}.${t.getMilliseconds().toString().padStart(3,"0")}`;e&&console.log(a,"Human:",...e)}function Zk(e,t){let a=e.endsWith("/")?"":"/",r=t.startsWith(".")||t.startsWith("/")||t.startsWith("http:")||t.startsWith("https:")||t.startsWith("file:")?`${t}`:`${e}${a}${t}`;if(!r.toLocaleLowerCase().includes(".json"))throw new Error(`modelpath error: expecting json file: ${r}`);return r}var ae=()=>typeof performance!="undefined"?performance.now():parseInt((Number(process.hrtime.bigint())/1e3/1e3).toString());function ey(e,t,a="config",n=[]){for(let r of Object.keys(t))if(typeof t[r]=="object")ey(e[r],t[r],r,n);else{let s=e&&typeof e[r]!="undefined";s||n.push({reason:"unknown property",where:`${a}.${r} = ${t[r]}`});let i=e&&typeof e[r]==typeof t[r];s&&!i&&n.push({reason:"property type mismatch",where:`${a}.${r} = ${t[r]}`,expected:typeof e[r]})}return t.debug&&a==="config"&&n.length>0&&K("invalid configuration",n),n}function Et(...e){let t=a=>a&&typeof a=="object";return e.reduce((a,n)=>(Object.keys(n||{}).forEach(r=>{let s=a[r],i=n[r];Array.isArray(s)&&Array.isArray(i)?a[r]=s.concat(...i):t(s)&&t(i)?a[r]=Et(s,i):a[r]=i}),a),{})}var dl={backend:"",modelBasePath:"",cacheModels:!0,validateModels:!0,wasmPath:"",wasmPlatformFetch:!1,debug:!1,async:!0,warmup:"full",cacheSensitivity:.7,skipAllowed:!1,deallocate:!1,flags:{},softwareKernels:!1,filter:{enabled:!0,equalization:!1,width:0,height:0,flip:!1,return:!0,autoBrightness:!0,brightness:0,contrast:0,sharpness:0,blur:0,saturation:0,hue:0,negative:!1,sepia:!1,vintage:!1,kodachrome:!1,technicolor:!1,polaroid:!1,pixelate:0},gesture:{enabled:!0},face:{enabled:!0,detector:{modelPath:"blazeface.json",rotation:!1,maxDetected:1,skipFrames:99,skipTime:2500,minConfidence:.2,minSize:0,iouThreshold:.1,scale:1,mask:!1,return:!1},mesh:{enabled:!0,modelPath:"facemesh.json",keepInvalid:!1},attention:{enabled:!1,modelPath:"facemesh-attention.json"},iris:{enabled:!0,scale:2.3,modelPath:"iris.json"},emotion:{enabled:!0,minConfidence:.1,skipFrames:99,skipTime:1500,modelPath:"emotion.json"},description:{enabled:!0,modelPath:"faceres.json",skipFrames:99,skipTime:3e3,minConfidence:.1},antispoof:{enabled:!1,skipFrames:99,skipTime:4e3,modelPath:"antispoof.json"},liveness:{enabled:!1,skipFrames:99,skipTime:4e3,modelPath:"liveness.json"}},body:{enabled:!0,modelPath:"movenet-lightning.json",maxDetected:-1,minConfidence:.3,skipFrames:1,skipTime:200},hand:{enabled:!0,rotation:!0,skipFrames:99,skipTime:1e3,minConfidence:.5,iouThreshold:.2,maxDetected:-1,landmarks:!0,detector:{modelPath:"handtrack.json"},skeleton:{modelPath:"handlandmark-lite.json"}},object:{enabled:!1,modelPath:"centernet.json",minConfidence:.2,iouThreshold:.4,maxDetected:10,skipFrames:99,skipTime:2e3},segmentation:{enabled:!1,modelPath:"rvm.json",ratio:.5,mode:"default"}};var Jk=`
`}};function W2e(e){let{inputs:t,backend:a,attrs:n}=e,{x:r,segmentIds:s}=t,{numSegments:i}=n,o=r.shape.length,l=[],u=0,p=C.getAxesPermutation([u],o),c=r;p!=null&&(c=nr({inputs:{x:r},backend:a,attrs:{perm:p}}),l.push(c),u=C.getInnerMostAxes(1,o)[0]);let d=C.segment_util.computeOutShape(c.shape,u,i),h=v.sizeFromShape([c.shape[u]]),m=ke({inputs:{x:c},backend:a,attrs:{shape:[-1,h]}});l.push(m);let f=r.dtype,g=[m.shape[0],i],y=Wa({backend:a,attrs:{shape:g,value:0,dtype:f}}),x=new L2e(m.shape,g,f),A=[{type:"int32",data:[i]},{type:"int32",data:[v.sizeFromShape(m.shape)]}],b=a.runWebGPUProgram(x,[m,s],f,A,y),w=ke({inputs:{x:b},backend:a,attrs:{shape:d}});l.push(b);let I=w;if(p!=null){l.push(w);let T=C.getUndoAxesPermutation(p);I=nr({inputs:{x:I},backend:a,attrs:{perm:T}})}return l.forEach(T=>a.disposeData(T.dataId)),I}var B2e={kernelName:Ep,backendName:"webgpu",kernelFunc:W2e},V2e=[hde,Zde,Qde,tpe,npe,ipe,hpe,fpe,ype,Ape,vpe,kpe,Spe,Tpe,Rpe,_pe,Dpe,Wpe,Vpe,Gpe,Kpe,Qpe,ace,ice,lce,cce,fde,fce,Ace,Tce,Pce,Oce,Wce,Vce,Gce,jce,Xce,Zce,Qce,the,nhe,ihe,hhe,fhe,uhe,xhe,vhe,She,The,Ehe,_he,Dhe,zhe,Whe,Vhe,Ghe,Hhe,qhe,Khe,dde,Zhe,n0e,Qhe,t0e,i0e,l0e,d0e,h0e,g0e,x0e,b0e,mde,w0e,yce,I0e,C0e,N0e,E0e,$0e,_0e,O0e,B0e,L0e,U0e,H0e,q0e,Z0e,eme,Mpe,ame,rme,cme,ime,dme,mme,$pe,gme,xme,bme,wme,Tme,Mhe,Rme,Mme,Pme,nce,Dme,zme,Wme,Ume,Hme,qme,Kme,Zme,rce,Qme,tfe,nfe,sfe,pde,lfe,pfe,mfe,yfe,bfe,wfe,Ife,Cfe,Nfe,Mfe,_fe,Dfe,zfe,Wfe,Vfe,Gfe,qpe,g2e,A2e,v2e,Sme,jfe,Kfe,e2e,a2e,o2e,u2e,p2e,c2e,m2e,k2e,$he,S2e,T2e,R2e,s2e,P2e,D2e,upe,z2e,B2e,Ome];for(let e of V2e)xn(e);var cA="4.17.0",U2e="4.17.0",G2e="4.17.0",H2e="4.17.0",j2e="4.17.0",q2e="4.17.0",ac={tfjs:cA,"tfjs-core":cA,"tfjs-converter":U2e,"tfjs-backend-cpu":G2e,"tfjs-backend-webgl":H2e,"tfjs-backend-wasm":j2e,"tfjs-backend-webgpu":q2e},Q3=void 0;function K(...e){let t=new Date,a=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}.${t.getMilliseconds().toString().padStart(3,"0")}`;e&&console.log(a,"Human:",...e)}function Zk(e,t){let a=e.endsWith("/")?"":"/",r=t.startsWith(".")||t.startsWith("/")||t.startsWith("http:")||t.startsWith("https:")||t.startsWith("file:")?`${t}`:`${e}${a}${t}`;if(!r.toLocaleLowerCase().includes(".json"))throw new Error(`modelpath error: expecting json file: ${r}`);return r}var ae=()=>typeof performance!="undefined"?performance.now():parseInt((Number(process.hrtime.bigint())/1e3/1e3).toString());function ey(e,t,a="config",n=[]){for(let r of Object.keys(t))if(typeof t[r]=="object")ey(e[r],t[r],r,n);else{let s=e&&typeof e[r]!="undefined";s||n.push({reason:"unknown property",where:`${a}.${r} = ${t[r]}`});let i=e&&typeof e[r]==typeof t[r];s&&!i&&n.push({reason:"property type mismatch",where:`${a}.${r} = ${t[r]}`,expected:typeof e[r]})}return t.debug&&a==="config"&&n.length>0&&K("invalid configuration",n),n}function Et(...e){let t=a=>a&&typeof a=="object";return e.reduce((a,n)=>(Object.keys(n||{}).forEach(r=>{let s=a[r],i=n[r];Array.isArray(s)&&Array.isArray(i)?a[r]=s.concat(...i):t(s)&&t(i)?a[r]=Et(s,i):a[r]=i}),a),{})}var dl={backend:"",modelBasePath:"",cacheModels:!0,validateModels:!0,wasmPath:"",wasmPlatformFetch:!1,debug:!1,async:!0,warmup:"full",cacheSensitivity:.7,skipAllowed:!1,deallocate:!1,flags:{},softwareKernels:!1,filter:{enabled:!0,equalization:!1,width:0,height:0,flip:!1,return:!0,autoBrightness:!0,brightness:0,contrast:0,sharpness:0,blur:0,saturation:0,hue:0,negative:!1,sepia:!1,vintage:!1,kodachrome:!1,technicolor:!1,polaroid:!1,pixelate:0},gesture:{enabled:!0},face:{enabled:!0,detector:{modelPath:"blazeface.json",rotation:!1,maxDetected:1,skipFrames:99,skipTime:2500,minConfidence:.2,minSize:0,iouThreshold:.1,scale:1.4,mask:!1,return:!1},mesh:{enabled:!0,modelPath:"facemesh.json",keepInvalid:!1},attention:{enabled:!1,modelPath:"facemesh-attention.json"},iris:{enabled:!0,scale:2.3,modelPath:"iris.json"},emotion:{enabled:!0,minConfidence:.1,skipFrames:99,skipTime:1500,modelPath:"emotion.json"},description:{enabled:!0,modelPath:"faceres.json",skipFrames:99,skipTime:3e3,minConfidence:.1},antispoof:{enabled:!1,skipFrames:99,skipTime:4e3,modelPath:"antispoof.json"},liveness:{enabled:!1,skipFrames:99,skipTime:4e3,modelPath:"liveness.json"}},body:{enabled:!0,modelPath:"movenet-lightning.json",maxDetected:-1,minConfidence:.3,skipFrames:1,skipTime:200},hand:{enabled:!0,rotation:!0,skipFrames:99,skipTime:1e3,minConfidence:.5,iouThreshold:.2,maxDetected:-1,landmarks:!0,detector:{modelPath:"handtrack.json"},skeleton:{modelPath:"handlandmark-lite.json"}},object:{enabled:!1,modelPath:"centernet.json",minConfidence:.2,iouThreshold:.4,maxDetected:10,skipFrames:99,skipTime:2e3},segmentation:{enabled:!1,modelPath:"rvm.json",ratio:.5,mode:"default"}};var Jk=`
precision highp float;
attribute vec2 pos;
attribute vec2 uv;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/human.node.js vendored

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -388,7 +388,7 @@ const config: Config = {
minConfidence: 0.2,
minSize: 0,
iouThreshold: 0.1,
scale: 1.0,
scale: 1.4,
mask: false,
return: false,
},

View File

@ -1,51 +1,51 @@
2024-04-17 11:29:17 DATA:  Build {"name":"@vladmandic/human","version":"3.2.2"}
2024-04-17 11:29:17 INFO:  Application: {"name":"@vladmandic/human","version":"3.2.2"}
2024-04-17 11:29:17 INFO:  Environment: {"profile":"production","config":".build.json","package":"package.json","tsconfig":true,"eslintrc":true,"git":true}
2024-04-17 11:29:17 INFO:  Toolchain: {"build":"0.9.2","esbuild":"0.19.12","typescript":"5.3.3","typedoc":"0.25.13","eslint":"8.55.0"}
2024-04-17 11:29:17 INFO:  Build: {"profile":"production","steps":["clean","compile","typings","typedoc","lint","changelog"]}
2024-04-17 11:29:17 STATE: Clean: {"locations":["dist/*","types/*","typedoc/*"]}
2024-04-17 11:29:17 STATE: Compile: {"name":"tfjs/browser/version","format":"esm","platform":"browser","input":"tfjs/tf-version.ts","output":"dist/tfjs.version.js","files":1,"inputBytes":1289,"outputBytes":358}
2024-04-17 11:29:17 STATE: Compile: {"name":"tfjs/nodejs/cpu","format":"cjs","platform":"node","input":"tfjs/tf-node.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":566,"outputBytes":957}
2024-04-17 11:29:17 STATE: Compile: {"name":"human/nodejs/cpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node.js","files":80,"inputBytes":676298,"outputBytes":320931}
2024-04-17 11:29:17 STATE: Compile: {"name":"tfjs/nodejs/gpu","format":"cjs","platform":"node","input":"tfjs/tf-node-gpu.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":574,"outputBytes":965}
2024-04-17 11:29:17 STATE: Compile: {"name":"human/nodejs/gpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-gpu.js","files":80,"inputBytes":676306,"outputBytes":320935}
2024-04-17 11:29:17 STATE: Compile: {"name":"tfjs/nodejs/wasm","format":"cjs","platform":"node","input":"tfjs/tf-node-wasm.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":662,"outputBytes":2003}
2024-04-17 11:29:17 STATE: Compile: {"name":"human/nodejs/wasm","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-wasm.js","files":80,"inputBytes":677344,"outputBytes":321046}
2024-04-17 11:29:17 STATE: Compile: {"name":"tfjs/browser/esm/nobundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":1403,"outputBytes":690}
2024-04-17 11:29:17 STATE: Compile: {"name":"human/browser/esm/nobundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm-nobundle.js","files":80,"inputBytes":676031,"outputBytes":319512}
2024-04-17 11:29:18 STATE: Compile: {"name":"tfjs/browser/esm/bundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":10,"inputBytes":1403,"outputBytes":1267270}
2024-04-17 11:29:18 STATE: Compile: {"name":"human/browser/iife/bundle","format":"iife","platform":"browser","input":"src/human.ts","output":"dist/human.js","files":80,"inputBytes":1942611,"outputBytes":1582520}
2024-04-17 11:29:18 STATE: Compile: {"name":"human/browser/esm/bundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm.js","files":80,"inputBytes":1942611,"outputBytes":2081292}
2024-04-17 11:29:19 STATE: Typings: {"input":"src/human.ts","output":"types/lib","files":14}
2024-04-17 11:29:21 STATE: TypeDoc: {"input":"src/human.ts","output":"typedoc","objects":81,"generated":true}
2024-04-17 11:29:21 STATE: Compile: {"name":"demo/typescript","format":"esm","platform":"browser","input":"demo/typescript/index.ts","output":"demo/typescript/index.js","files":1,"inputBytes":6318,"outputBytes":2970}
2024-04-17 11:29:21 STATE: Compile: {"name":"demo/faceid","format":"esm","platform":"browser","input":"demo/faceid/index.ts","output":"demo/faceid/index.js","files":2,"inputBytes":17499,"outputBytes":9399}
2024-04-17 11:29:21 STATE: Compile: {"name":"demo/tracker","format":"esm","platform":"browser","input":"demo/tracker/index.ts","output":"demo/tracker/index.js","files":2,"inputBytes":54375,"outputBytes":22791}
2024-04-17 11:29:29 STATE: Lint: {"locations":["**/*.json","src/**/*.ts","test/**/*.js","demo/**/*.js","**/*.md"],"files":171,"errors":0,"warnings":0}
2024-04-17 11:29:30 STATE: ChangeLog: {"repository":"https://github.com/vladmandic/human","branch":"main","output":"CHANGELOG.md"}
2024-04-17 11:29:30 STATE: Copy: {"input":"node_modules/@vladmandic/tfjs/types/tfjs-core.d.ts","output":"types/tfjs-core.d.ts"}
2024-04-17 11:29:30 INFO:  Done...
2024-04-17 11:29:30 STATE: Copy: {"input":"node_modules/@vladmandic/tfjs/types/tfjs.d.ts","output":"types/tfjs.esm.d.ts"}
2024-04-17 11:29:30 STATE: Copy: {"input":"src/types/tsconfig.json","output":"types/tsconfig.json"}
2024-04-17 11:29:30 STATE: Copy: {"input":"src/types/eslint.json","output":"types/.eslintrc.json"}
2024-04-17 11:29:30 STATE: Copy: {"input":"src/types/tfjs.esm.d.ts","output":"dist/tfjs.esm.d.ts"}
2024-04-17 11:29:30 STATE: Filter: {"input":"types/tfjs-core.d.ts"}
2024-04-17 11:29:30 ERROR: API-Extractor: {}
2024-04-17 11:29:30 STATE: Filter: {"input":"types/human.d.ts"}
2024-04-17 11:29:30 STATE: Write: {"output":"dist/human.esm-nobundle.d.ts"}
2024-04-17 11:29:30 STATE: Write: {"output":"dist/human.esm.d.ts"}
2024-04-17 11:29:30 STATE: Write: {"output":"dist/human.d.ts"}
2024-04-17 11:29:30 STATE: Write: {"output":"dist/human.node-gpu.d.ts"}
2024-04-17 11:29:30 STATE: Write: {"output":"dist/human.node.d.ts"}
2024-04-17 11:29:30 STATE: Write: {"output":"dist/human.node-wasm.d.ts"}
2024-04-17 11:29:30 INFO:  Analyze models: {"folders":8,"result":"models/models.json"}
2024-04-17 11:29:30 STATE: Models {"folder":"./models","models":12}
2024-04-17 11:29:30 STATE: Models {"folder":"../human-models/models","models":44}
2024-04-17 11:29:30 STATE: Models {"folder":"../blazepose/model/","models":4}
2024-04-17 11:29:30 STATE: Models {"folder":"../anti-spoofing/model","models":1}
2024-04-17 11:29:30 STATE: Models {"folder":"../efficientpose/models","models":3}
2024-04-17 11:29:30 STATE: Models {"folder":"../insightface/models","models":5}
2024-04-17 11:29:30 STATE: Models {"folder":"../movenet/models","models":3}
2024-04-17 11:29:30 STATE: Models {"folder":"../nanodet/models","models":4}
2024-04-17 11:29:31 STATE: Models: {"count":58,"totalSize":380063249}
2024-04-17 11:29:31 INFO:  Human Build complete... {"logFile":"test/build.log"}
2024-04-17 11:34:38 DATA:  Build {"name":"@vladmandic/human","version":"3.2.2"}
2024-04-17 11:34:38 INFO:  Application: {"name":"@vladmandic/human","version":"3.2.2"}
2024-04-17 11:34:38 INFO:  Environment: {"profile":"production","config":".build.json","package":"package.json","tsconfig":true,"eslintrc":true,"git":true}
2024-04-17 11:34:38 INFO:  Toolchain: {"build":"0.9.2","esbuild":"0.19.12","typescript":"5.3.3","typedoc":"0.25.13","eslint":"8.55.0"}
2024-04-17 11:34:38 INFO:  Build: {"profile":"production","steps":["clean","compile","typings","typedoc","lint","changelog"]}
2024-04-17 11:34:38 STATE: Clean: {"locations":["dist/*","types/*","typedoc/*"]}
2024-04-17 11:34:38 STATE: Compile: {"name":"tfjs/browser/version","format":"esm","platform":"browser","input":"tfjs/tf-version.ts","output":"dist/tfjs.version.js","files":1,"inputBytes":1289,"outputBytes":358}
2024-04-17 11:34:38 STATE: Compile: {"name":"tfjs/nodejs/cpu","format":"cjs","platform":"node","input":"tfjs/tf-node.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":566,"outputBytes":957}
2024-04-17 11:34:38 STATE: Compile: {"name":"human/nodejs/cpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node.js","files":80,"inputBytes":676298,"outputBytes":320933}
2024-04-17 11:34:38 STATE: Compile: {"name":"tfjs/nodejs/gpu","format":"cjs","platform":"node","input":"tfjs/tf-node-gpu.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":574,"outputBytes":965}
2024-04-17 11:34:38 STATE: Compile: {"name":"human/nodejs/gpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-gpu.js","files":80,"inputBytes":676306,"outputBytes":320937}
2024-04-17 11:34:38 STATE: Compile: {"name":"tfjs/nodejs/wasm","format":"cjs","platform":"node","input":"tfjs/tf-node-wasm.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":662,"outputBytes":2003}
2024-04-17 11:34:38 STATE: Compile: {"name":"human/nodejs/wasm","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-wasm.js","files":80,"inputBytes":677344,"outputBytes":321048}
2024-04-17 11:34:38 STATE: Compile: {"name":"tfjs/browser/esm/nobundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":1403,"outputBytes":690}
2024-04-17 11:34:38 STATE: Compile: {"name":"human/browser/esm/nobundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm-nobundle.js","files":80,"inputBytes":676031,"outputBytes":319514}
2024-04-17 11:34:38 STATE: Compile: {"name":"tfjs/browser/esm/bundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":10,"inputBytes":1403,"outputBytes":1267270}
2024-04-17 11:34:38 STATE: Compile: {"name":"human/browser/iife/bundle","format":"iife","platform":"browser","input":"src/human.ts","output":"dist/human.js","files":80,"inputBytes":1942611,"outputBytes":1582522}
2024-04-17 11:34:38 STATE: Compile: {"name":"human/browser/esm/bundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm.js","files":80,"inputBytes":1942611,"outputBytes":2081294}
2024-04-17 11:34:40 STATE: Typings: {"input":"src/human.ts","output":"types/lib","files":14}
2024-04-17 11:34:41 STATE: TypeDoc: {"input":"src/human.ts","output":"typedoc","objects":81,"generated":true}
2024-04-17 11:34:41 STATE: Compile: {"name":"demo/typescript","format":"esm","platform":"browser","input":"demo/typescript/index.ts","output":"demo/typescript/index.js","files":1,"inputBytes":6318,"outputBytes":2970}
2024-04-17 11:34:41 STATE: Compile: {"name":"demo/faceid","format":"esm","platform":"browser","input":"demo/faceid/index.ts","output":"demo/faceid/index.js","files":2,"inputBytes":17499,"outputBytes":9399}
2024-04-17 11:34:41 STATE: Compile: {"name":"demo/tracker","format":"esm","platform":"browser","input":"demo/tracker/index.ts","output":"demo/tracker/index.js","files":2,"inputBytes":54375,"outputBytes":22791}
2024-04-17 11:34:49 STATE: Lint: {"locations":["**/*.json","src/**/*.ts","test/**/*.js","demo/**/*.js","**/*.md"],"files":171,"errors":0,"warnings":0}
2024-04-17 11:34:49 STATE: ChangeLog: {"repository":"https://github.com/vladmandic/human","branch":"main","output":"CHANGELOG.md"}
2024-04-17 11:34:49 STATE: Copy: {"input":"node_modules/@vladmandic/tfjs/types/tfjs-core.d.ts","output":"types/tfjs-core.d.ts"}
2024-04-17 11:34:49 INFO:  Done...
2024-04-17 11:34:49 STATE: Copy: {"input":"node_modules/@vladmandic/tfjs/types/tfjs.d.ts","output":"types/tfjs.esm.d.ts"}
2024-04-17 11:34:49 STATE: Copy: {"input":"src/types/tsconfig.json","output":"types/tsconfig.json"}
2024-04-17 11:34:49 STATE: Copy: {"input":"src/types/eslint.json","output":"types/.eslintrc.json"}
2024-04-17 11:34:49 STATE: Copy: {"input":"src/types/tfjs.esm.d.ts","output":"dist/tfjs.esm.d.ts"}
2024-04-17 11:34:49 STATE: Filter: {"input":"types/tfjs-core.d.ts"}
2024-04-17 11:34:49 ERROR: API-Extractor: {}
2024-04-17 11:34:49 STATE: Filter: {"input":"types/human.d.ts"}
2024-04-17 11:34:49 STATE: Write: {"output":"dist/human.esm-nobundle.d.ts"}
2024-04-17 11:34:49 STATE: Write: {"output":"dist/human.esm.d.ts"}
2024-04-17 11:34:49 STATE: Write: {"output":"dist/human.d.ts"}
2024-04-17 11:34:49 STATE: Write: {"output":"dist/human.node-gpu.d.ts"}
2024-04-17 11:34:49 STATE: Write: {"output":"dist/human.node.d.ts"}
2024-04-17 11:34:49 STATE: Write: {"output":"dist/human.node-wasm.d.ts"}
2024-04-17 11:34:49 INFO:  Analyze models: {"folders":8,"result":"models/models.json"}
2024-04-17 11:34:49 STATE: Models {"folder":"./models","models":12}
2024-04-17 11:34:49 STATE: Models {"folder":"../human-models/models","models":44}
2024-04-17 11:34:49 STATE: Models {"folder":"../blazepose/model/","models":4}
2024-04-17 11:34:49 STATE: Models {"folder":"../anti-spoofing/model","models":1}
2024-04-17 11:34:49 STATE: Models {"folder":"../efficientpose/models","models":3}
2024-04-17 11:34:49 STATE: Models {"folder":"../insightface/models","models":5}
2024-04-17 11:34:49 STATE: Models {"folder":"../movenet/models","models":3}
2024-04-17 11:34:49 STATE: Models {"folder":"../nanodet/models","models":4}
2024-04-17 11:34:50 STATE: Models: {"count":58,"totalSize":380063249}
2024-04-17 11:34:50 INFO:  Human Build complete... {"logFile":"test/build.log"}

File diff suppressed because it is too large Load Diff