update to tfjs 3.2.0

pull/75/head
Vladimir Mandic 2021-02-25 07:50:13 -05:00
parent a60038ac11
commit 577c9ed389
24 changed files with 2043 additions and 2043 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

Binary file not shown.

View File

@ -36,7 +36,7 @@ const ui = {
facing: true, facing: true,
useWorker: false, useWorker: false,
worker: 'worker.js', worker: 'worker.js',
samples: ['../assets/sample6.jpg', '../assets/sample1.jpg', '../assets/sample4.jpg', '../assets/sample5.jpg', '../assets/sample3.jpg', '../assets/sample2.jpg', '../assets/sample7.jpg', '../assets/sample8.jpg'], samples: ['../assets/sample6.jpg', '../assets/sample1.jpg', '../assets/sample4.jpg', '../assets/sample5.jpg', '../assets/sample3.jpg', '../assets/sample2.jpg'],
compare: '../assets/sample-me.jpg', compare: '../assets/sample-me.jpg',
drawBoxes: true, drawBoxes: true,
drawPoints: false, drawPoints: false,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{ {
"inputs": { "inputs": {
"dist/human.esm.js": { "dist/human.esm.js": {
"bytes": 1347011, "bytes": 1339029,
"imports": [] "imports": []
}, },
"demo/draw.js": { "demo/draw.js": {
@ -43,7 +43,7 @@
"imports": [], "imports": [],
"exports": [], "exports": [],
"inputs": {}, "inputs": {},
"bytes": 2055789 "bytes": 2037989
}, },
"dist/demo-browser-index.js": { "dist/demo-browser-index.js": {
"imports": [], "imports": [],
@ -51,7 +51,7 @@
"entryPoint": "demo/browser.js", "entryPoint": "demo/browser.js",
"inputs": { "inputs": {
"dist/human.esm.js": { "dist/human.esm.js": {
"bytesInOutput": 1339535 "bytesInOutput": 1331553
}, },
"demo/draw.js": { "demo/draw.js": {
"bytesInOutput": 6241 "bytesInOutput": 6241
@ -66,7 +66,7 @@
"bytesInOutput": 17389 "bytesInOutput": 17389
} }
}, },
"bytes": 1388005 "bytes": 1380023
} }
} }
} }

File diff suppressed because one or more lines are too long

1076
dist/human.esm.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

10
dist/human.esm.json vendored
View File

@ -5,7 +5,7 @@
"imports": [] "imports": []
}, },
"dist/tfjs.esm.js": { "dist/tfjs.esm.js": {
"bytes": 1073613, "bytes": 1065627,
"imports": [] "imports": []
}, },
"src/tfjs/backend.ts": { "src/tfjs/backend.ts": {
@ -499,7 +499,7 @@
"imports": [], "imports": [],
"exports": [], "exports": [],
"inputs": {}, "inputs": {},
"bytes": 1957830 "bytes": 1940029
}, },
"dist/human.esm.js": { "dist/human.esm.js": {
"imports": [], "imports": [],
@ -518,7 +518,7 @@
"bytesInOutput": 252 "bytesInOutput": 252
}, },
"dist/tfjs.esm.js": { "dist/tfjs.esm.js": {
"bytesInOutput": 1064610 "bytesInOutput": 1056626
}, },
"src/tfjs/backend.ts": { "src/tfjs/backend.ts": {
"bytesInOutput": 1053 "bytesInOutput": 1053
@ -536,7 +536,7 @@
"bytesInOutput": 28983 "bytesInOutput": 28983
}, },
"src/blazeface/facepipeline.ts": { "src/blazeface/facepipeline.ts": {
"bytesInOutput": 5040 "bytesInOutput": 5042
}, },
"src/human.ts": { "src/human.ts": {
"bytesInOutput": 10347 "bytesInOutput": 10347
@ -623,7 +623,7 @@
"bytesInOutput": 2573 "bytesInOutput": 2573
} }
}, },
"bytes": 1347011 "bytes": 1339029
} }
} }
} }

10
dist/human.iife.json vendored
View File

@ -5,7 +5,7 @@
"imports": [] "imports": []
}, },
"dist/tfjs.esm.js": { "dist/tfjs.esm.js": {
"bytes": 1073613, "bytes": 1065627,
"imports": [] "imports": []
}, },
"src/tfjs/backend.ts": { "src/tfjs/backend.ts": {
@ -499,7 +499,7 @@
"imports": [], "imports": [],
"exports": [], "exports": [],
"inputs": {}, "inputs": {},
"bytes": 1957841 "bytes": 1940040
}, },
"dist/human.ts": { "dist/human.ts": {
"imports": [], "imports": [],
@ -519,7 +519,7 @@
"bytesInOutput": 252 "bytesInOutput": 252
}, },
"dist/tfjs.esm.js": { "dist/tfjs.esm.js": {
"bytesInOutput": 1064610 "bytesInOutput": 1056626
}, },
"src/tfjs/backend.ts": { "src/tfjs/backend.ts": {
"bytesInOutput": 1053 "bytesInOutput": 1053
@ -537,7 +537,7 @@
"bytesInOutput": 28983 "bytesInOutput": 28983
}, },
"src/blazeface/facepipeline.ts": { "src/blazeface/facepipeline.ts": {
"bytesInOutput": 5040 "bytesInOutput": 5042
}, },
"src/faceboxes/faceboxes.ts": { "src/faceboxes/faceboxes.ts": {
"bytesInOutput": 1549 "bytesInOutput": 1549
@ -621,7 +621,7 @@
"bytesInOutput": 2573 "bytesInOutput": 2573
} }
}, },
"bytes": 1347053 "bytes": 1339071
} }
} }
} }

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

1076
dist/human.ts vendored

File diff suppressed because one or more lines are too long

4
dist/human.ts.map vendored

File diff suppressed because one or more lines are too long

638
dist/tfjs.esm.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

48
dist/tfjs.esm.json vendored
View File

@ -25,7 +25,7 @@
"imports": [] "imports": []
}, },
"node_modules/@tensorflow/tfjs-core/dist/util_base.js": { "node_modules/@tensorflow/tfjs-core/dist/util_base.js": {
"bytes": 20096, "bytes": 20100,
"imports": [] "imports": []
}, },
"node_modules/@tensorflow/tfjs-core/dist/environment.js": { "node_modules/@tensorflow/tfjs-core/dist/environment.js": {
@ -76,7 +76,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-core/dist/profiler.js": { "node_modules/@tensorflow/tfjs-core/dist/profiler.js": {
"bytes": 4460, "bytes": 4499,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/environment.js", "path": "node_modules/@tensorflow/tfjs-core/dist/environment.js",
@ -793,7 +793,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-core/dist/ops/browser.js": { "node_modules/@tensorflow/tfjs-core/dist/ops/browser.js": {
"bytes": 8954, "bytes": 9105,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/engine.js", "path": "node_modules/@tensorflow/tfjs-core/dist/engine.js",
@ -11907,7 +11907,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-backend-webgl/dist/flags_webgl.js": { "node_modules/@tensorflow/tfjs-backend-webgl/dist/flags_webgl.js": {
"bytes": 6399, "bytes": 7125,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/index.js", "path": "node_modules/@tensorflow/tfjs-core/dist/index.js",
@ -12177,7 +12177,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-backend-webgl/dist/backend_webgl.js": { "node_modules/@tensorflow/tfjs-backend-webgl/dist/backend_webgl.js": {
"bytes": 37906, "bytes": 38346,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-backend-webgl/dist/flags_webgl.js", "path": "node_modules/@tensorflow/tfjs-backend-webgl/dist/flags_webgl.js",
@ -16428,7 +16428,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/Concat.js": { "node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/Concat.js": {
"bytes": 4118, "bytes": 4180,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/index.js", "path": "node_modules/@tensorflow/tfjs-core/dist/index.js",
@ -16945,7 +16945,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/Pack.js": { "node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/Pack.js": {
"bytes": 1697, "bytes": 1947,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/index.js", "path": "node_modules/@tensorflow/tfjs-core/dist/index.js",
@ -17748,7 +17748,7 @@
"imports": [] "imports": []
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm-threaded-simd.js": { "node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm-threaded-simd.js": {
"bytes": 74296, "bytes": 64769,
"imports": [ "imports": [
{ {
"path": "(disabled):path", "path": "(disabled):path",
@ -17773,11 +17773,11 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm-threaded-simd.worker.js": { "node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm-threaded-simd.worker.js": {
"bytes": 3441, "bytes": 3172,
"imports": [] "imports": []
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm.js": { "node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm.js": {
"bytes": 28635, "bytes": 26723,
"imports": [ "imports": [
{ {
"path": "(disabled):path", "path": "(disabled):path",
@ -17790,7 +17790,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/dist/backend_wasm.js": { "node_modules/@tensorflow/tfjs-backend-wasm/dist/backend_wasm.js": {
"bytes": 14751, "bytes": 14972,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-backend-wasm/dist/flags_wasm.js", "path": "node_modules/@tensorflow/tfjs-backend-wasm/dist/flags_wasm.js",
@ -25495,7 +25495,7 @@
"imports": [], "imports": [],
"exports": [], "exports": [],
"inputs": {}, "inputs": {},
"bytes": 1241171 "bytes": 1223333
}, },
"dist/tfjs.esm.js": { "dist/tfjs.esm.js": {
"imports": [], "imports": [],
@ -26040,10 +26040,10 @@
"bytesInOutput": 18 "bytesInOutput": 18
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm-threaded-simd.js": { "node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm-threaded-simd.js": {
"bytesInOutput": 45664 "bytesInOutput": 39230
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm.js": { "node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm.js": {
"bytesInOutput": 18153 "bytesInOutput": 16473
}, },
"node_modules/seedrandom/lib/alea.js": { "node_modules/seedrandom/lib/alea.js": {
"bytesInOutput": 992 "bytesInOutput": 992
@ -26091,7 +26091,7 @@
"bytesInOutput": 1032 "bytesInOutput": 1032
}, },
"node_modules/@tensorflow/tfjs-core/dist/util_base.js": { "node_modules/@tensorflow/tfjs-core/dist/util_base.js": {
"bytesInOutput": 6291 "bytesInOutput": 6295
}, },
"node_modules/@tensorflow/tfjs-core/dist/environment.js": { "node_modules/@tensorflow/tfjs-core/dist/environment.js": {
"bytesInOutput": 2118 "bytesInOutput": 2118
@ -26109,7 +26109,7 @@
"bytesInOutput": 1966 "bytesInOutput": 1966
}, },
"node_modules/@tensorflow/tfjs-core/dist/profiler.js": { "node_modules/@tensorflow/tfjs-core/dist/profiler.js": {
"bytesInOutput": 1324 "bytesInOutput": 1335
}, },
"node_modules/@tensorflow/tfjs-core/dist/tape.js": { "node_modules/@tensorflow/tfjs-core/dist/tape.js": {
"bytesInOutput": 1538 "bytesInOutput": 1538
@ -27567,7 +27567,7 @@
"bytesInOutput": 1292 "bytesInOutput": 1292
}, },
"node_modules/@tensorflow/tfjs-backend-webgl/dist/flags_webgl.js": { "node_modules/@tensorflow/tfjs-backend-webgl/dist/flags_webgl.js": {
"bytesInOutput": 2228 "bytesInOutput": 2409
}, },
"node_modules/@tensorflow/tfjs-backend-webgl/dist/glsl_version.js": { "node_modules/@tensorflow/tfjs-backend-webgl/dist/glsl_version.js": {
"bytesInOutput": 1626 "bytesInOutput": 1626
@ -27630,7 +27630,7 @@
"bytesInOutput": 388 "bytesInOutput": 388
}, },
"node_modules/@tensorflow/tfjs-backend-webgl/dist/backend_webgl.js": { "node_modules/@tensorflow/tfjs-backend-webgl/dist/backend_webgl.js": {
"bytesInOutput": 14364 "bytesInOutput": 14521
}, },
"node_modules/@tensorflow/tfjs-backend-webgl/dist/version.js": { "node_modules/@tensorflow/tfjs-backend-webgl/dist/version.js": {
"bytesInOutput": 15 "bytesInOutput": 15
@ -28389,7 +28389,7 @@
"bytesInOutput": 360 "bytesInOutput": 360
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/Concat.js": { "node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/Concat.js": {
"bytesInOutput": 1127 "bytesInOutput": 1165
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/Conv2D.js": { "node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/Conv2D.js": {
"bytesInOutput": 1093 "bytesInOutput": 1093
@ -28515,7 +28515,7 @@
"bytesInOutput": 174 "bytesInOutput": 174
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/Pack.js": { "node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/Pack.js": {
"bytesInOutput": 514 "bytesInOutput": 588
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/PadV2.js": { "node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/PadV2.js": {
"bytesInOutput": 613 "bytesInOutput": 613
@ -28620,10 +28620,10 @@
"bytesInOutput": 484 "bytesInOutput": 484
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/dist/backend_wasm.js": { "node_modules/@tensorflow/tfjs-backend-wasm/dist/backend_wasm.js": {
"bytesInOutput": 4763 "bytesInOutput": 4747
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm-threaded-simd.worker.js": { "node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm-threaded-simd.worker.js": {
"bytesInOutput": 3414 "bytesInOutput": 3145
}, },
"node_modules/@tensorflow/tfjs-backend-wasm/dist/version.js": { "node_modules/@tensorflow/tfjs-backend-wasm/dist/version.js": {
"bytesInOutput": 15 "bytesInOutput": 15
@ -29406,7 +29406,7 @@
"bytesInOutput": 6267 "bytesInOutput": 6267
}, },
"node_modules/@tensorflow/tfjs-layers/dist/exports_layers.js": { "node_modules/@tensorflow/tfjs-layers/dist/exports_layers.js": {
"bytesInOutput": 3594 "bytesInOutput": 3542
}, },
"node_modules/@tensorflow/tfjs-layers/dist/backend/state.js": { "node_modules/@tensorflow/tfjs-layers/dist/backend/state.js": {
"bytesInOutput": 117 "bytesInOutput": 117
@ -29760,7 +29760,7 @@
"bytesInOutput": 15 "bytesInOutput": 15
} }
}, },
"bytes": 1073613 "bytes": 1065627
} }
} }
} }

130
package-lock.json generated
View File

@ -182,17 +182,17 @@
} }
}, },
"@tensorflow/tfjs": { "@tensorflow/tfjs": {
"version": "3.1.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@tensorflow/tfjs/-/tfjs-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@tensorflow/tfjs/-/tfjs-3.2.0.tgz",
"integrity": "sha512-6w3LHpALAlBd8m3G+Gx/OvZeOYepvuBtu80+YbajSIEBp/gMJW2NCF4/mHyHcq1f1xJen0+LpwaCL7oho9v+FA==", "integrity": "sha512-rgcHHhzI+JVl206eMbYO8WzBW3DO9pinEbgtUWdxjfk+a4ojlqvJ34RPEISMSQZRR5KRCA7E/dHFv9+EULfqmw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@tensorflow/tfjs-backend-cpu": "3.1.0", "@tensorflow/tfjs-backend-cpu": "3.2.0",
"@tensorflow/tfjs-backend-webgl": "3.1.0", "@tensorflow/tfjs-backend-webgl": "3.2.0",
"@tensorflow/tfjs-converter": "3.1.0", "@tensorflow/tfjs-converter": "3.2.0",
"@tensorflow/tfjs-core": "3.1.0", "@tensorflow/tfjs-core": "3.2.0",
"@tensorflow/tfjs-data": "3.1.0", "@tensorflow/tfjs-data": "3.2.0",
"@tensorflow/tfjs-layers": "3.1.0", "@tensorflow/tfjs-layers": "3.2.0",
"argparse": "^1.0.10", "argparse": "^1.0.10",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"core-js": "3", "core-js": "3",
@ -201,9 +201,9 @@
} }
}, },
"@tensorflow/tfjs-backend-cpu": { "@tensorflow/tfjs-backend-cpu": {
"version": "3.1.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-cpu/-/tfjs-backend-cpu-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-cpu/-/tfjs-backend-cpu-3.2.0.tgz",
"integrity": "sha512-BsuDEg11z3QDuvjZSge/ssITl/GHUvHjvHgJOptz4lVwAMFxzNErkL/e8fUeWQp2SI2m7oWsx2vx/H1Y9cd3Gg==", "integrity": "sha512-L3Pp7FHO92BaeG8Uuc/RJMJ/e61UrIbKgFHS3MKr0zcbmEsqGfos6/5yR1EHj7SoYG2nPlC5+6HxbYy0zp22IA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/seedrandom": "2.4.27", "@types/seedrandom": "2.4.27",
@ -219,22 +219,22 @@
} }
}, },
"@tensorflow/tfjs-backend-wasm": { "@tensorflow/tfjs-backend-wasm": {
"version": "3.1.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-wasm/-/tfjs-backend-wasm-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-wasm/-/tfjs-backend-wasm-3.2.0.tgz",
"integrity": "sha512-PKnIrPG1LunQrX1BaFo4GTa0fAM0c/CgCmpGVanFsIwH4Fs6BDfxLOm58ykojXPER0zv71761jFFwNh+5AGncw==", "integrity": "sha512-gXxhJWRCmkcwSNatG7eGrmHKmjJC/AxvQdToHymkp1KtRazrsMWFrROoj1HuHwK1hCZyGa90ldmXlY9QdzFkuQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"@tensorflow/tfjs-backend-cpu": "3.1.0", "@tensorflow/tfjs-backend-cpu": "3.2.0",
"@types/emscripten": "~0.0.34" "@types/emscripten": "~0.0.34"
} }
}, },
"@tensorflow/tfjs-backend-webgl": { "@tensorflow/tfjs-backend-webgl": {
"version": "3.1.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-webgl/-/tfjs-backend-webgl-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-webgl/-/tfjs-backend-webgl-3.2.0.tgz",
"integrity": "sha512-9J80sJR35Cg6BxTmQE8ljF4XLT3DXdvfLKF3C1xhRqV25PWsBvwlcvEuv6yCXp109topqJgbVnsmewS6vvVtDw==", "integrity": "sha512-WORXpDt5Ey5/+a4NioyrJkfbJUlleaSELpHnxeDsGt6BpRC2P/1pVJS1IjnBD/f4QlOm3mhouN2Oq28dRhRvqA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@tensorflow/tfjs-backend-cpu": "3.1.0", "@tensorflow/tfjs-backend-cpu": "3.2.0",
"@types/offscreencanvas": "~2019.3.0", "@types/offscreencanvas": "~2019.3.0",
"@types/seedrandom": "2.4.27", "@types/seedrandom": "2.4.27",
"@types/webgl-ext": "0.0.30", "@types/webgl-ext": "0.0.30",
@ -251,15 +251,15 @@
} }
}, },
"@tensorflow/tfjs-converter": { "@tensorflow/tfjs-converter": {
"version": "3.1.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@tensorflow/tfjs-converter/-/tfjs-converter-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-converter/-/tfjs-converter-3.2.0.tgz",
"integrity": "sha512-V1DJ9ha9fy7pSXm6H6IGH4iF/5V32o32M8ZhFy7eydYUNWTJau8svpFI/i8AhJ1htVHKXtPTEPAo/T5XXsWN/g==", "integrity": "sha512-iE2Q0naHR8OVcMc9RluebMObsPysru7X1y+mWtkPNnYlNUJORxfkEitrMbVDAKw6lsivIfo4Ar5UcstiG8/ckQ==",
"dev": true "dev": true
}, },
"@tensorflow/tfjs-core": { "@tensorflow/tfjs-core": {
"version": "3.1.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@tensorflow/tfjs-core/-/tfjs-core-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-core/-/tfjs-core-3.2.0.tgz",
"integrity": "sha512-KGSJEB6CTIk5YVgKbdpW0nAKuNtWaMdqYSrNYX43IAGdNrH0vDsipACH/bhrQyo9/NYiK/4Jbkr4k9pGwwiPJQ==", "integrity": "sha512-MZnTk9wcJai5lTfkC8T1rr6/M9C4eO0DfojZghopZXDflCTndLPIKcudx6E8qfrmZOkRSqMIwB7A8UFs7f+3Kg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/offscreencanvas": "~2019.3.0", "@types/offscreencanvas": "~2019.3.0",
@ -278,9 +278,9 @@
} }
}, },
"@tensorflow/tfjs-data": { "@tensorflow/tfjs-data": {
"version": "3.1.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@tensorflow/tfjs-data/-/tfjs-data-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-data/-/tfjs-data-3.2.0.tgz",
"integrity": "sha512-ZxcOvgiTK/Q6DEwCJj7TxyonqA0eCkNkV+SVODU900CHwigpihlpguzRK6h20spa7YNliLDtPfALX+qyvl0isg==", "integrity": "sha512-fG4rYJlxh/B9fzgc+/qdj5gPI485RsDUM99mErxovlh3UMIdRgMeHHdFse44VlyAShEAgsOehuWovhY5520kEw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/node-fetch": "^2.1.2", "@types/node-fetch": "^2.1.2",
@ -288,18 +288,18 @@
} }
}, },
"@tensorflow/tfjs-layers": { "@tensorflow/tfjs-layers": {
"version": "3.1.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@tensorflow/tfjs-layers/-/tfjs-layers-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-layers/-/tfjs-layers-3.2.0.tgz",
"integrity": "sha512-Qd5ZwdpaoKvH6Khq2U9mdeO7MArnRmKDC9/WWVfbss7+l8LC800pT9ESzIiO3P/qtDuHV1ssa0wOD31TadMOZQ==", "integrity": "sha512-TgTpH6RI+NmL4s8pQ76wkq15p79SfSQLOfFL2rGmJgatQRuA/mxLlH5GLir5HwwER3a0Vj8lMbexxCAGTqr2Xg==",
"dev": true "dev": true
}, },
"@tensorflow/tfjs-node": { "@tensorflow/tfjs-node": {
"version": "3.1.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@tensorflow/tfjs-node/-/tfjs-node-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-node/-/tfjs-node-3.2.0.tgz",
"integrity": "sha512-FhMfDgR/usnOeuDdqYXW62Z5aU+f60mPmkjwxMCwsLLYG6/fEjaeeJXu+rgwxOP+DwboLiE25EomUDNDqjrDYw==", "integrity": "sha512-4k8HvT+lFauy30EMoKhLvXykQ4xKfi5yTs0EdWue80z9XNNDIMG3932owBpWMeaRb5P0ONUuv9MSu+pi17rNnA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@tensorflow/tfjs": "3.1.0", "@tensorflow/tfjs": "3.2.0",
"adm-zip": "^0.4.11", "adm-zip": "^0.4.11",
"google-protobuf": "^3.9.2", "google-protobuf": "^3.9.2",
"https-proxy-agent": "^2.2.1", "https-proxy-agent": "^2.2.1",
@ -321,12 +321,12 @@
} }
}, },
"@tensorflow/tfjs-node-gpu": { "@tensorflow/tfjs-node-gpu": {
"version": "3.1.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@tensorflow/tfjs-node-gpu/-/tfjs-node-gpu-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-node-gpu/-/tfjs-node-gpu-3.2.0.tgz",
"integrity": "sha512-l0Pl53GsOg9lCpBABhyGvLVRdBTKwjf+uk551W+PbC9uX5giYgN6ARUeyGafcV3xkjR2zJgYluSpnBR2zyWYSg==", "integrity": "sha512-zAQPT9RwA5KOFFtkRzUGXE+9loJeJWbxkw2OnIPdB8+18c8s6/ICsHpN9nYLhelR+9wl877aaN4wQVR5T7iQDw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@tensorflow/tfjs": "3.1.0", "@tensorflow/tfjs": "3.2.0",
"adm-zip": "^0.4.11", "adm-zip": "^0.4.11",
"google-protobuf": "^3.9.2", "google-protobuf": "^3.9.2",
"https-proxy-agent": "^2.2.1", "https-proxy-agent": "^2.2.1",
@ -851,9 +851,9 @@
"dev": true "dev": true
}, },
"core-js": { "core-js": {
"version": "3.8.3", "version": "3.9.0",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.8.3.tgz", "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.9.0.tgz",
"integrity": "sha512-KPYXeVZYemC2TkNEkX/01I+7yd+nX3KddKwZ1Ww7SKWdI2wQprSgLmrTddT8nw92AjEklTsPBoSdQBhbI1bQ6Q==", "integrity": "sha512-PyFBJaLq93FlyYdsndE5VaueA9K5cNB7CGzeCj191YYLhkQM0gdZR2SKihM70oF0wdqKSKClv/tEBOpoRmdOVQ==",
"dev": true "dev": true
}, },
"core-util-is": { "core-util-is": {
@ -1026,9 +1026,9 @@
} }
}, },
"esbuild": { "esbuild": {
"version": "0.8.51", "version": "0.8.52",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.8.51.tgz", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.8.52.tgz",
"integrity": "sha512-MVIom8fgL1+B6iGqWtrG7QJ1gqd64BycxounlsX1kR/IcIITaSlTo7gghKpg4a+bnxkpo0dwcikuvk4MVSA9ww==", "integrity": "sha512-b5KzFweLLXoXQwdC/e2+Z80c8uo2M5MgP7yQEEebkFw6In4T9CvYcNoM2ElvJt8ByO04zAZUV0fZkXmXoi2s9A==",
"dev": true "dev": true
}, },
"escalade": { "escalade": {
@ -1424,9 +1424,9 @@
"dev": true "dev": true
}, },
"fastq": { "fastq": {
"version": "1.10.1", "version": "1.11.0",
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.10.1.tgz", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz",
"integrity": "sha512-AWuv6Ery3pM+dY7LYS8YIaCiQvUaos9OB1RyNgaOWnaX+Tik7Onvcsf8x8c+YtDeT0maYLniBip2hox5KtEXXA==", "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==",
"dev": true, "dev": true,
"requires": { "requires": {
"reusify": "^1.0.4" "reusify": "^1.0.4"
@ -1645,9 +1645,9 @@
} }
}, },
"google-protobuf": { "google-protobuf": {
"version": "3.14.0", "version": "3.15.2",
"resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.14.0.tgz", "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.15.2.tgz",
"integrity": "sha512-bwa8dBuMpOxg7COyqkW6muQuvNnWgVN8TX/epDRGW5m0jcrmq2QJyCyiV8ZE2/6LaIIqJtiv9bYokFhfpy/o6w==", "integrity": "sha512-HU67XsVFarxjHceJgrX0K75zzUFS+95LTArAncQ1BI156oEZR+fWXgk6Fxn4fNIpmrB0fwklwjXhMB0DQe0YNg==",
"dev": true "dev": true
}, },
"graceful-fs": { "graceful-fs": {
@ -1981,18 +1981,18 @@
} }
}, },
"mime-db": { "mime-db": {
"version": "1.45.0", "version": "1.46.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.45.0.tgz", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.46.0.tgz",
"integrity": "sha512-CkqLUxUk15hofLoLyljJSrukZi8mAtgd+yE5uO4tqRZsdsAJKv0O+rFMhVDRJgozy+yG6md5KwuXhD4ocIoP+w==", "integrity": "sha512-svXaP8UQRZ5K7or+ZmfNhg2xX3yKDMUzqadsSqi4NCH/KomcH75MAMYAGVlvXn4+b/xOPhS3I2uHKRUzvjY7BQ==",
"dev": true "dev": true
}, },
"mime-types": { "mime-types": {
"version": "2.1.28", "version": "2.1.29",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.28.tgz", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.29.tgz",
"integrity": "sha512-0TO2yJ5YHYr7M2zzT7gDU1tbwHxEUWBCLt0lscSNpcdAfFyJOVEpRYNS7EXVcTLNj/25QO8gulHC5JtTzSE2UQ==", "integrity": "sha512-Y/jMt/S5sR9OaqteJtslsFZKWOIIqMACsJSiHghlCAyhf7jfVYjKBmLiX8OgpWeW+fjJ2b+Az69aPFPkUOY6xQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"mime-db": "1.45.0" "mime-db": "1.46.0"
} }
}, },
"minimatch": { "minimatch": {
@ -2837,9 +2837,9 @@
"dev": true "dev": true
}, },
"typescript": { "typescript": {
"version": "4.3.0-dev.20210224", "version": "4.3.0-dev.20210225",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.0-dev.20210224.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.0-dev.20210225.tgz",
"integrity": "sha512-A6+di4zjFtFspmmuxnXjkYYeaXFr7Bf4t8MsTciBvBJ1OoxeHtJJEAnJjhcIl/qiZlC2Yv5TXGAI56GFwBnmqw==", "integrity": "sha512-EdKY+0vy3jYPqWZDj6x3VTC30e3Rq+flaFpCLH9r2bwX0+VTOqZuM3qOQpWoq4L1c4p/ye2xJd3Y79iweqzlCw==",
"dev": true "dev": true
}, },
"uri-js": { "uri-js": {
@ -3012,9 +3012,9 @@
} }
}, },
"yargs-parser": { "yargs-parser": {
"version": "20.2.5", "version": "20.2.6",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.5.tgz", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.6.tgz",
"integrity": "sha512-jYRGS3zWy20NtDtK2kBgo/TlAoy5YUuhD9/LZ7z7W4j1Fdw2cqD0xEEclf8fxc8xjD6X5Qr+qQQwCEsP8iRiYg==", "integrity": "sha512-AP1+fQIWSM/sMiET8fyayjx/J+JmTPt2Mr0FkrgqB4todtfa53sOsrSAcIrJRD5XS20bKUwaDIuMkWKCEiQLKA==",
"dev": true "dev": true
} }
} }

View File

@ -23,23 +23,23 @@
"dependencies": {}, "dependencies": {},
"peerDependencies": {}, "peerDependencies": {},
"devDependencies": { "devDependencies": {
"@tensorflow/tfjs": "^3.1.0", "@tensorflow/tfjs": "^3.2.0",
"@tensorflow/tfjs-backend-cpu": "^3.1.0", "@tensorflow/tfjs-backend-cpu": "^3.2.0",
"@tensorflow/tfjs-backend-wasm": "^3.1.0", "@tensorflow/tfjs-backend-wasm": "^3.2.0",
"@tensorflow/tfjs-backend-webgl": "^3.1.0", "@tensorflow/tfjs-backend-webgl": "^3.2.0",
"@tensorflow/tfjs-converter": "^3.1.0", "@tensorflow/tfjs-converter": "^3.2.0",
"@tensorflow/tfjs-core": "^3.1.0", "@tensorflow/tfjs-core": "^3.2.0",
"@tensorflow/tfjs-data": "^3.1.0", "@tensorflow/tfjs-data": "^3.2.0",
"@tensorflow/tfjs-layers": "^3.1.0", "@tensorflow/tfjs-layers": "^3.2.0",
"@tensorflow/tfjs-node": "^3.1.0", "@tensorflow/tfjs-node": "^3.2.0",
"@tensorflow/tfjs-node-gpu": "^3.1.0", "@tensorflow/tfjs-node-gpu": "^3.2.0",
"@types/node": "^14.14.31", "@types/node": "^14.14.31",
"@typescript-eslint/eslint-plugin": "^4.15.2", "@typescript-eslint/eslint-plugin": "^4.15.2",
"@typescript-eslint/parser": "^4.15.2", "@typescript-eslint/parser": "^4.15.2",
"@vladmandic/pilogger": "^0.2.14", "@vladmandic/pilogger": "^0.2.14",
"chokidar": "^3.5.1", "chokidar": "^3.5.1",
"dayjs": "^1.10.4", "dayjs": "^1.10.4",
"esbuild": "^0.8.51", "esbuild": "^0.8.52",
"eslint": "^7.20.0", "eslint": "^7.20.0",
"eslint-config-airbnb-base": "^14.2.1", "eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1", "eslint-plugin-import": "^2.22.1",
@ -50,7 +50,7 @@
"seedrandom": "^3.0.5", "seedrandom": "^3.0.5",
"simple-git": "^2.35.2", "simple-git": "^2.35.2",
"tslib": "^2.1.0", "tslib": "^2.1.0",
"typescript": "^4.3.0-dev.20210224" "typescript": "^4.3.0-dev.20210225"
}, },
"scripts": { "scripts": {
"start": "node --trace-warnings --unhandled-rejections=strict --trace-uncaught --no-deprecation src/node.js", "start": "node --trace-warnings --unhandled-rejections=strict --trace-uncaught --no-deprecation src/node.js",

View File

@ -108,7 +108,7 @@ const targets = {
metafile: 'dist/tfjs.esm.json', metafile: 'dist/tfjs.esm.json',
entryPoints: ['src/tfjs/tf-browser.ts'], entryPoints: ['src/tfjs/tf-browser.ts'],
outfile: 'dist/tfjs.esm.js', outfile: 'dist/tfjs.esm.js',
external: ['fs', 'buffer', 'util', '@tensorflow'], external: ['fs', 'buffer', 'util', 'os', '@tensorflow'],
}, },
esm: { esm: {
platform: 'browser', platform: 'browser',
@ -116,7 +116,7 @@ const targets = {
metafile: 'dist/human.esm.json', metafile: 'dist/human.esm.json',
entryPoints: ['src/human.ts'], entryPoints: ['src/human.ts'],
outfile: 'dist/human.esm-nobundle.js', outfile: 'dist/human.esm-nobundle.js',
external: ['fs', 'buffer', 'util', '@tensorflow'], external: ['fs', 'buffer', 'util', 'os', '@tensorflow'],
}, },
}, },
browserBundle: { browserBundle: {
@ -126,7 +126,7 @@ const targets = {
metafile: 'dist/tfjs.esm.json', metafile: 'dist/tfjs.esm.json',
entryPoints: ['src/tfjs/tf-browser.ts'], entryPoints: ['src/tfjs/tf-browser.ts'],
outfile: 'dist/tfjs.esm.js', outfile: 'dist/tfjs.esm.js',
external: ['fs', 'buffer', 'util'], external: ['fs', 'buffer', 'util', 'os'],
}, },
iife: { iife: {
platform: 'browser', platform: 'browser',
@ -135,7 +135,7 @@ const targets = {
metafile: 'dist/human.iife.json', metafile: 'dist/human.iife.json',
entryPoints: ['src/human.ts'], entryPoints: ['src/human.ts'],
outfile: 'dist/human.ts', outfile: 'dist/human.ts',
external: ['fs', 'buffer', 'util'], external: ['fs', 'buffer', 'util', 'os'],
}, },
esm: { esm: {
platform: 'browser', platform: 'browser',
@ -143,7 +143,7 @@ const targets = {
metafile: 'dist/human.esm.json', metafile: 'dist/human.esm.json',
entryPoints: ['src/human.ts'], entryPoints: ['src/human.ts'],
outfile: 'dist/human.esm.js', outfile: 'dist/human.esm.js',
external: ['fs', 'buffer', 'util'], external: ['fs', 'buffer', 'util', 'os'],
}, },
demo: { demo: {
platform: 'browser', platform: 'browser',
@ -151,7 +151,7 @@ const targets = {
metafile: 'dist/demo-browser-index.json', metafile: 'dist/demo-browser-index.json',
entryPoints: ['demo/browser.js'], entryPoints: ['demo/browser.js'],
outfile: 'dist/demo-browser-index.js', outfile: 'dist/demo-browser-index.js',
external: ['fs', 'buffer', 'util'], external: ['fs', 'buffer', 'util', 'os'],
}, },
}, },
}; };