completed tfjs wrapper

pull/50/head
Vladimir Mandic 2020-11-18 08:26:28 -05:00
parent 5e2007a5ee
commit 21c1649c06
42 changed files with 813 additions and 301 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,7 @@
"imports": []
},
"dist/human.esm.js": {
"bytes": 1785092,
"bytes": 1783387,
"imports": []
}
},
@ -38,14 +38,14 @@
"dist/demo-browser-index.js.map": {
"imports": [],
"inputs": {},
"bytes": 2672929
"bytes": 2671743
},
"dist/demo-browser-index.js": {
"imports": [],
"exports": [],
"inputs": {
"dist/human.esm.js": {
"bytesInOutput": 1777972
"bytesInOutput": 1776267
},
"demo/draw.js": {
"bytesInOutput": 7284
@ -60,7 +60,7 @@
"bytesInOutput": 17051
}
},
"bytes": 1829255
"bytes": 1827550
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,15 +5,15 @@
"imports": []
},
"dist/tfjs.esm.js": {
"bytes": 1537126,
"bytes": 1531035,
"imports": []
},
"package.json": {
"bytes": 2021,
"bytes": 2281,
"imports": []
},
"src/age/age.js": {
"bytes": 1967,
"bytes": 1968,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -65,7 +65,7 @@
"imports": []
},
"src/body/modelBase.js": {
"bytes": 888,
"bytes": 889,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -73,7 +73,7 @@
]
},
"src/body/modelMobileNet.js": {
"bytes": 598,
"bytes": 599,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -84,7 +84,7 @@
]
},
"src/body/modelPoseNet.js": {
"bytes": 1927,
"bytes": 1928,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -137,7 +137,7 @@
]
},
"src/embedding/embedding.js": {
"bytes": 2106,
"bytes": 2107,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -148,7 +148,7 @@
]
},
"src/emotion/emotion.js": {
"bytes": 3005,
"bytes": 3006,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -159,7 +159,7 @@
]
},
"src/face/blazeface.js": {
"bytes": 6992,
"bytes": 6993,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -167,7 +167,7 @@
]
},
"src/face/box.js": {
"bytes": 1934,
"bytes": 1935,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -179,7 +179,7 @@
"imports": []
},
"src/face/facemesh.js": {
"bytes": 2455,
"bytes": 2456,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -196,7 +196,7 @@
]
},
"src/face/facepipeline.js": {
"bytes": 13867,
"bytes": 13868,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -217,7 +217,7 @@
"imports": []
},
"src/gender/gender.js": {
"bytes": 3408,
"bytes": 3409,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -236,7 +236,7 @@
"imports": []
},
"src/hand/box.js": {
"bytes": 3225,
"bytes": 3226,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -244,7 +244,7 @@
]
},
"src/hand/handdetector.js": {
"bytes": 4275,
"bytes": 4276,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -255,7 +255,7 @@
]
},
"src/hand/handpipeline.js": {
"bytes": 7607,
"bytes": 7608,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -269,7 +269,7 @@
]
},
"src/hand/handpose.js": {
"bytes": 3074,
"bytes": 3075,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -290,7 +290,7 @@
"imports": []
},
"src/human.js": {
"bytes": 15667,
"bytes": 15660,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -334,7 +334,7 @@
]
},
"src/image.js": {
"bytes": 5700,
"bytes": 5701,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -357,7 +357,7 @@
"dist/human.esm-nobundle.js.map": {
"imports": [],
"inputs": {},
"bytes": 2588850
"bytes": 2581144
},
"dist/human.esm-nobundle.js": {
"imports": [],
@ -366,10 +366,10 @@
],
"inputs": {
"src/face/blazeface.js": {
"bytesInOutput": 5584
"bytesInOutput": 5152
},
"src/face/box.js": {
"bytesInOutput": 1600
"bytesInOutput": 1586
},
"src/face/util.js": {
"bytesInOutput": 2423
@ -378,31 +378,31 @@
"bytesInOutput": 30819
},
"src/face/facepipeline.js": {
"bytesInOutput": 9579
"bytesInOutput": 9453
},
"src/face/facemesh.js": {
"bytesInOutput": 1927
"bytesInOutput": 1885
},
"src/profile.js": {
"bytesInOutput": 860
},
"src/age/age.js": {
"bytesInOutput": 1226
"bytesInOutput": 1156
},
"src/gender/gender.js": {
"bytesInOutput": 2074
"bytesInOutput": 1920
},
"src/emotion/emotion.js": {
"bytesInOutput": 1930
"bytesInOutput": 1790
},
"src/embedding/embedding.js": {
"bytesInOutput": 1416
"bytesInOutput": 1360
},
"src/body/modelBase.js": {
"bytesInOutput": 626
"bytesInOutput": 612
},
"src/body/modelMobileNet.js": {
"bytesInOutput": 406
"bytesInOutput": 378
},
"src/body/heapSort.js": {
"bytesInOutput": 1138
@ -426,22 +426,22 @@
"bytesInOutput": 1923
},
"src/body/modelPoseNet.js": {
"bytesInOutput": 1603
"bytesInOutput": 1589
},
"src/body/posenet.js": {
"bytesInOutput": 834
},
"src/hand/handdetector.js": {
"bytesInOutput": 3159
"bytesInOutput": 2784
},
"src/hand/handpipeline.js": {
"bytesInOutput": 4754
"bytesInOutput": 4726
},
"src/hand/anchors.js": {
"bytesInOutput": 127032
},
"src/hand/handpose.js": {
"bytesInOutput": 1857
"bytesInOutput": 1829
},
"src/gesture.js": {
"bytesInOutput": 2255
@ -450,16 +450,16 @@
"bytesInOutput": 13638
},
"src/image.js": {
"bytesInOutput": 4060
"bytesInOutput": 3993
},
"dist/tfjs.esm.js": {
"bytesInOutput": 1529542
"bytesInOutput": 1529550
},
"src/human.js": {
"bytesInOutput": 10540
"bytesInOutput": 10306
},
"src/hand/box.js": {
"bytesInOutput": 1894
"bytesInOutput": 1880
},
"src/hand/util.js": {
"bytesInOutput": 1808
@ -471,7 +471,7 @@
"bytesInOutput": 21
}
},
"bytes": 1785101
"bytes": 1783396
}
}
}

20
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

78
dist/human.esm.json vendored
View File

@ -5,15 +5,15 @@
"imports": []
},
"dist/tfjs.esm.js": {
"bytes": 1537126,
"bytes": 1531035,
"imports": []
},
"package.json": {
"bytes": 2021,
"bytes": 2281,
"imports": []
},
"src/age/age.js": {
"bytes": 1967,
"bytes": 1968,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -65,7 +65,7 @@
"imports": []
},
"src/body/modelBase.js": {
"bytes": 888,
"bytes": 889,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -73,7 +73,7 @@
]
},
"src/body/modelMobileNet.js": {
"bytes": 598,
"bytes": 599,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -84,7 +84,7 @@
]
},
"src/body/modelPoseNet.js": {
"bytes": 1927,
"bytes": 1928,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -137,7 +137,7 @@
]
},
"src/embedding/embedding.js": {
"bytes": 2106,
"bytes": 2107,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -148,7 +148,7 @@
]
},
"src/emotion/emotion.js": {
"bytes": 3005,
"bytes": 3006,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -159,7 +159,7 @@
]
},
"src/face/blazeface.js": {
"bytes": 6992,
"bytes": 6993,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -167,7 +167,7 @@
]
},
"src/face/box.js": {
"bytes": 1934,
"bytes": 1935,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -179,7 +179,7 @@
"imports": []
},
"src/face/facemesh.js": {
"bytes": 2455,
"bytes": 2456,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -196,7 +196,7 @@
]
},
"src/face/facepipeline.js": {
"bytes": 13867,
"bytes": 13868,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -217,7 +217,7 @@
"imports": []
},
"src/gender/gender.js": {
"bytes": 3408,
"bytes": 3409,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -236,7 +236,7 @@
"imports": []
},
"src/hand/box.js": {
"bytes": 3225,
"bytes": 3226,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -244,7 +244,7 @@
]
},
"src/hand/handdetector.js": {
"bytes": 4275,
"bytes": 4276,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -255,7 +255,7 @@
]
},
"src/hand/handpipeline.js": {
"bytes": 7607,
"bytes": 7608,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -269,7 +269,7 @@
]
},
"src/hand/handpose.js": {
"bytes": 3074,
"bytes": 3075,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -290,7 +290,7 @@
"imports": []
},
"src/human.js": {
"bytes": 15667,
"bytes": 15660,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -334,7 +334,7 @@
]
},
"src/image.js": {
"bytes": 5700,
"bytes": 5701,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -357,7 +357,7 @@
"dist/human.esm.js.map": {
"imports": [],
"inputs": {},
"bytes": 2588850
"bytes": 2581144
},
"dist/human.esm.js": {
"imports": [],
@ -366,10 +366,10 @@
],
"inputs": {
"src/face/blazeface.js": {
"bytesInOutput": 5584
"bytesInOutput": 5152
},
"src/face/box.js": {
"bytesInOutput": 1600
"bytesInOutput": 1586
},
"src/face/util.js": {
"bytesInOutput": 2423
@ -378,31 +378,31 @@
"bytesInOutput": 30819
},
"src/face/facepipeline.js": {
"bytesInOutput": 9579
"bytesInOutput": 9453
},
"src/face/facemesh.js": {
"bytesInOutput": 1927
"bytesInOutput": 1885
},
"src/profile.js": {
"bytesInOutput": 860
},
"src/age/age.js": {
"bytesInOutput": 1226
"bytesInOutput": 1156
},
"src/gender/gender.js": {
"bytesInOutput": 2074
"bytesInOutput": 1920
},
"src/emotion/emotion.js": {
"bytesInOutput": 1930
"bytesInOutput": 1790
},
"src/embedding/embedding.js": {
"bytesInOutput": 1416
"bytesInOutput": 1360
},
"src/body/modelBase.js": {
"bytesInOutput": 626
"bytesInOutput": 612
},
"src/body/modelMobileNet.js": {
"bytesInOutput": 406
"bytesInOutput": 378
},
"src/body/heapSort.js": {
"bytesInOutput": 1138
@ -426,22 +426,22 @@
"bytesInOutput": 1923
},
"src/body/modelPoseNet.js": {
"bytesInOutput": 1603
"bytesInOutput": 1589
},
"src/body/posenet.js": {
"bytesInOutput": 834
},
"src/hand/handdetector.js": {
"bytesInOutput": 3159
"bytesInOutput": 2784
},
"src/hand/handpipeline.js": {
"bytesInOutput": 4754
"bytesInOutput": 4726
},
"src/hand/anchors.js": {
"bytesInOutput": 127032
},
"src/hand/handpose.js": {
"bytesInOutput": 1857
"bytesInOutput": 1829
},
"src/gesture.js": {
"bytesInOutput": 2255
@ -450,16 +450,16 @@
"bytesInOutput": 13638
},
"src/image.js": {
"bytesInOutput": 4060
"bytesInOutput": 3993
},
"dist/tfjs.esm.js": {
"bytesInOutput": 1529542
"bytesInOutput": 1529550
},
"src/human.js": {
"bytesInOutput": 10540
"bytesInOutput": 10306
},
"src/hand/box.js": {
"bytesInOutput": 1894
"bytesInOutput": 1880
},
"src/hand/util.js": {
"bytesInOutput": 1808
@ -471,7 +471,7 @@
"bytesInOutput": 21
}
},
"bytes": 1785092
"bytes": 1783387
}
}
}

6
dist/human.js vendored

File diff suppressed because one or more lines are too long

6
dist/human.js.map vendored

File diff suppressed because one or more lines are too long

78
dist/human.json vendored
View File

@ -5,15 +5,15 @@
"imports": []
},
"dist/tfjs.esm.js": {
"bytes": 1537126,
"bytes": 1531035,
"imports": []
},
"package.json": {
"bytes": 2021,
"bytes": 2281,
"imports": []
},
"src/age/age.js": {
"bytes": 1967,
"bytes": 1968,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -65,7 +65,7 @@
"imports": []
},
"src/body/modelBase.js": {
"bytes": 888,
"bytes": 889,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -73,7 +73,7 @@
]
},
"src/body/modelMobileNet.js": {
"bytes": 598,
"bytes": 599,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -84,7 +84,7 @@
]
},
"src/body/modelPoseNet.js": {
"bytes": 1927,
"bytes": 1928,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -137,7 +137,7 @@
]
},
"src/embedding/embedding.js": {
"bytes": 2106,
"bytes": 2107,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -148,7 +148,7 @@
]
},
"src/emotion/emotion.js": {
"bytes": 3005,
"bytes": 3006,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -159,7 +159,7 @@
]
},
"src/face/blazeface.js": {
"bytes": 6992,
"bytes": 6993,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -167,7 +167,7 @@
]
},
"src/face/box.js": {
"bytes": 1934,
"bytes": 1935,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -179,7 +179,7 @@
"imports": []
},
"src/face/facemesh.js": {
"bytes": 2455,
"bytes": 2456,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -196,7 +196,7 @@
]
},
"src/face/facepipeline.js": {
"bytes": 13867,
"bytes": 13868,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -217,7 +217,7 @@
"imports": []
},
"src/gender/gender.js": {
"bytes": 3408,
"bytes": 3409,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -236,7 +236,7 @@
"imports": []
},
"src/hand/box.js": {
"bytes": 3225,
"bytes": 3226,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -244,7 +244,7 @@
]
},
"src/hand/handdetector.js": {
"bytes": 4275,
"bytes": 4276,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -255,7 +255,7 @@
]
},
"src/hand/handpipeline.js": {
"bytes": 7607,
"bytes": 7608,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -269,7 +269,7 @@
]
},
"src/hand/handpose.js": {
"bytes": 3074,
"bytes": 3075,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -290,7 +290,7 @@
"imports": []
},
"src/human.js": {
"bytes": 15667,
"bytes": 15660,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -334,7 +334,7 @@
]
},
"src/image.js": {
"bytes": 5700,
"bytes": 5701,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -357,17 +357,17 @@
"dist/human.js.map": {
"imports": [],
"inputs": {},
"bytes": 2556594
"bytes": 2548902
},
"dist/human.js": {
"imports": [],
"exports": [],
"inputs": {
"src/face/blazeface.js": {
"bytesInOutput": 5560
"bytesInOutput": 5128
},
"src/face/box.js": {
"bytesInOutput": 1600
"bytesInOutput": 1586
},
"src/face/util.js": {
"bytesInOutput": 2423
@ -376,31 +376,31 @@
"bytesInOutput": 30819
},
"src/face/facepipeline.js": {
"bytesInOutput": 9557
"bytesInOutput": 9431
},
"src/face/facemesh.js": {
"bytesInOutput": 1910
"bytesInOutput": 1868
},
"src/profile.js": {
"bytesInOutput": 850
},
"src/age/age.js": {
"bytesInOutput": 1209
"bytesInOutput": 1139
},
"src/gender/gender.js": {
"bytesInOutput": 2050
"bytesInOutput": 1896
},
"src/emotion/emotion.js": {
"bytesInOutput": 1909
"bytesInOutput": 1769
},
"src/embedding/embedding.js": {
"bytesInOutput": 1394
"bytesInOutput": 1338
},
"src/body/modelBase.js": {
"bytesInOutput": 626
"bytesInOutput": 612
},
"src/body/modelMobileNet.js": {
"bytesInOutput": 406
"bytesInOutput": 378
},
"src/body/heapSort.js": {
"bytesInOutput": 1138
@ -424,22 +424,22 @@
"bytesInOutput": 1923
},
"src/body/modelPoseNet.js": {
"bytesInOutput": 1590
"bytesInOutput": 1576
},
"src/body/posenet.js": {
"bytesInOutput": 834
},
"src/hand/handdetector.js": {
"bytesInOutput": 3148
"bytesInOutput": 2773
},
"src/hand/handpipeline.js": {
"bytesInOutput": 4745
"bytesInOutput": 4717
},
"src/hand/anchors.js": {
"bytesInOutput": 127032
},
"src/hand/handpose.js": {
"bytesInOutput": 1842
"bytesInOutput": 1814
},
"src/gesture.js": {
"bytesInOutput": 2235
@ -448,16 +448,16 @@
"bytesInOutput": 13638
},
"src/image.js": {
"bytesInOutput": 4026
"bytesInOutput": 3958
},
"src/human.js": {
"bytesInOutput": 10603
"bytesInOutput": 10370
},
"dist/tfjs.esm.js": {
"bytesInOutput": 1529076
"bytesInOutput": 1529041
},
"src/hand/box.js": {
"bytesInOutput": 1894
"bytesInOutput": 1880
},
"src/hand/util.js": {
"bytesInOutput": 1808
@ -469,7 +469,7 @@
"bytesInOutput": 21
}
},
"bytes": 1784570
"bytes": 1782698
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,15 +5,15 @@
"imports": []
},
"dist/tfjs.esm.js": {
"bytes": 1537126,
"bytes": 1531035,
"imports": []
},
"package.json": {
"bytes": 2021,
"bytes": 2281,
"imports": []
},
"src/age/age.js": {
"bytes": 1967,
"bytes": 1968,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -65,7 +65,7 @@
"imports": []
},
"src/body/modelBase.js": {
"bytes": 888,
"bytes": 889,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -73,7 +73,7 @@
]
},
"src/body/modelMobileNet.js": {
"bytes": 598,
"bytes": 599,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -84,7 +84,7 @@
]
},
"src/body/modelPoseNet.js": {
"bytes": 1927,
"bytes": 1928,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -137,7 +137,7 @@
]
},
"src/embedding/embedding.js": {
"bytes": 2106,
"bytes": 2107,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -148,7 +148,7 @@
]
},
"src/emotion/emotion.js": {
"bytes": 3005,
"bytes": 3006,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -159,7 +159,7 @@
]
},
"src/face/blazeface.js": {
"bytes": 6992,
"bytes": 6993,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -167,7 +167,7 @@
]
},
"src/face/box.js": {
"bytes": 1934,
"bytes": 1935,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -179,7 +179,7 @@
"imports": []
},
"src/face/facemesh.js": {
"bytes": 2455,
"bytes": 2456,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -196,7 +196,7 @@
]
},
"src/face/facepipeline.js": {
"bytes": 13867,
"bytes": 13868,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -217,7 +217,7 @@
"imports": []
},
"src/gender/gender.js": {
"bytes": 3408,
"bytes": 3409,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -236,7 +236,7 @@
"imports": []
},
"src/hand/box.js": {
"bytes": 3225,
"bytes": 3226,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -244,7 +244,7 @@
]
},
"src/hand/handdetector.js": {
"bytes": 4275,
"bytes": 4276,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -255,7 +255,7 @@
]
},
"src/hand/handpipeline.js": {
"bytes": 7607,
"bytes": 7608,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -269,7 +269,7 @@
]
},
"src/hand/handpose.js": {
"bytes": 3074,
"bytes": 3075,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -290,7 +290,7 @@
"imports": []
},
"src/human.js": {
"bytes": 15667,
"bytes": 15660,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -334,7 +334,7 @@
]
},
"src/image.js": {
"bytes": 5700,
"bytes": 5701,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -357,17 +357,17 @@
"dist/human.node-nobundle.js.map": {
"imports": [],
"inputs": {},
"bytes": 2604967
"bytes": 2597254
},
"dist/human.node-nobundle.js": {
"imports": [],
"exports": [],
"inputs": {
"src/face/blazeface.js": {
"bytesInOutput": 5588
"bytesInOutput": 5156
},
"src/face/box.js": {
"bytesInOutput": 1607
"bytesInOutput": 1593
},
"src/face/util.js": {
"bytesInOutput": 2434
@ -376,31 +376,31 @@
"bytesInOutput": 30830
},
"src/face/facepipeline.js": {
"bytesInOutput": 9581
"bytesInOutput": 9455
},
"src/face/facemesh.js": {
"bytesInOutput": 1931
"bytesInOutput": 1889
},
"src/profile.js": {
"bytesInOutput": 862
},
"src/age/age.js": {
"bytesInOutput": 1229
"bytesInOutput": 1159
},
"src/gender/gender.js": {
"bytesInOutput": 2077
"bytesInOutput": 1923
},
"src/emotion/emotion.js": {
"bytesInOutput": 1933
"bytesInOutput": 1793
},
"src/embedding/embedding.js": {
"bytesInOutput": 1420
"bytesInOutput": 1364
},
"src/body/modelBase.js": {
"bytesInOutput": 628
"bytesInOutput": 614
},
"src/body/modelMobileNet.js": {
"bytesInOutput": 408
"bytesInOutput": 380
},
"src/body/heapSort.js": {
"bytesInOutput": 1140
@ -424,22 +424,22 @@
"bytesInOutput": 1931
},
"src/body/modelPoseNet.js": {
"bytesInOutput": 1606
"bytesInOutput": 1592
},
"src/body/posenet.js": {
"bytesInOutput": 848
},
"src/hand/handdetector.js": {
"bytesInOutput": 3161
"bytesInOutput": 2786
},
"src/hand/handpipeline.js": {
"bytesInOutput": 4756
"bytesInOutput": 4728
},
"src/hand/anchors.js": {
"bytesInOutput": 127034
},
"src/hand/handpose.js": {
"bytesInOutput": 1860
"bytesInOutput": 1832
},
"src/gesture.js": {
"bytesInOutput": 2259
@ -448,16 +448,16 @@
"bytesInOutput": 13640
},
"src/image.js": {
"bytesInOutput": 4063
"bytesInOutput": 3995
},
"src/human.js": {
"bytesInOutput": 10578
"bytesInOutput": 10344
},
"dist/tfjs.esm.js": {
"bytesInOutput": 1529761
"bytesInOutput": 1529722
},
"src/hand/box.js": {
"bytesInOutput": 1894
"bytesInOutput": 1880
},
"src/hand/util.js": {
"bytesInOutput": 1808
@ -469,7 +469,7 @@
"bytesInOutput": 21
}
},
"bytes": 1785604
"bytes": 1783728
}
}
}

6
dist/human.node.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

78
dist/human.node.json vendored
View File

@ -5,15 +5,15 @@
"imports": []
},
"dist/tfjs.esm.js": {
"bytes": 1537126,
"bytes": 1531035,
"imports": []
},
"package.json": {
"bytes": 2021,
"bytes": 2281,
"imports": []
},
"src/age/age.js": {
"bytes": 1967,
"bytes": 1968,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -65,7 +65,7 @@
"imports": []
},
"src/body/modelBase.js": {
"bytes": 888,
"bytes": 889,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -73,7 +73,7 @@
]
},
"src/body/modelMobileNet.js": {
"bytes": 598,
"bytes": 599,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -84,7 +84,7 @@
]
},
"src/body/modelPoseNet.js": {
"bytes": 1927,
"bytes": 1928,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -137,7 +137,7 @@
]
},
"src/embedding/embedding.js": {
"bytes": 2106,
"bytes": 2107,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -148,7 +148,7 @@
]
},
"src/emotion/emotion.js": {
"bytes": 3005,
"bytes": 3006,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -159,7 +159,7 @@
]
},
"src/face/blazeface.js": {
"bytes": 6992,
"bytes": 6993,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -167,7 +167,7 @@
]
},
"src/face/box.js": {
"bytes": 1934,
"bytes": 1935,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -179,7 +179,7 @@
"imports": []
},
"src/face/facemesh.js": {
"bytes": 2455,
"bytes": 2456,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -196,7 +196,7 @@
]
},
"src/face/facepipeline.js": {
"bytes": 13867,
"bytes": 13868,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -217,7 +217,7 @@
"imports": []
},
"src/gender/gender.js": {
"bytes": 3408,
"bytes": 3409,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -236,7 +236,7 @@
"imports": []
},
"src/hand/box.js": {
"bytes": 3225,
"bytes": 3226,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -244,7 +244,7 @@
]
},
"src/hand/handdetector.js": {
"bytes": 4275,
"bytes": 4276,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -255,7 +255,7 @@
]
},
"src/hand/handpipeline.js": {
"bytes": 7607,
"bytes": 7608,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -269,7 +269,7 @@
]
},
"src/hand/handpose.js": {
"bytes": 3074,
"bytes": 3075,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -290,7 +290,7 @@
"imports": []
},
"src/human.js": {
"bytes": 15667,
"bytes": 15660,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -334,7 +334,7 @@
]
},
"src/image.js": {
"bytes": 5700,
"bytes": 5701,
"imports": [
{
"path": "dist/tfjs.esm.js"
@ -357,17 +357,17 @@
"dist/human.node.js.map": {
"imports": [],
"inputs": {},
"bytes": 2604967
"bytes": 2597254
},
"dist/human.node.js": {
"imports": [],
"exports": [],
"inputs": {
"src/face/blazeface.js": {
"bytesInOutput": 5588
"bytesInOutput": 5156
},
"src/face/box.js": {
"bytesInOutput": 1607
"bytesInOutput": 1593
},
"src/face/util.js": {
"bytesInOutput": 2434
@ -376,31 +376,31 @@
"bytesInOutput": 30830
},
"src/face/facepipeline.js": {
"bytesInOutput": 9581
"bytesInOutput": 9455
},
"src/face/facemesh.js": {
"bytesInOutput": 1931
"bytesInOutput": 1889
},
"src/profile.js": {
"bytesInOutput": 862
},
"src/age/age.js": {
"bytesInOutput": 1229
"bytesInOutput": 1159
},
"src/gender/gender.js": {
"bytesInOutput": 2077
"bytesInOutput": 1923
},
"src/emotion/emotion.js": {
"bytesInOutput": 1933
"bytesInOutput": 1793
},
"src/embedding/embedding.js": {
"bytesInOutput": 1420
"bytesInOutput": 1364
},
"src/body/modelBase.js": {
"bytesInOutput": 628
"bytesInOutput": 614
},
"src/body/modelMobileNet.js": {
"bytesInOutput": 408
"bytesInOutput": 380
},
"src/body/heapSort.js": {
"bytesInOutput": 1140
@ -424,22 +424,22 @@
"bytesInOutput": 1931
},
"src/body/modelPoseNet.js": {
"bytesInOutput": 1606
"bytesInOutput": 1592
},
"src/body/posenet.js": {
"bytesInOutput": 848
},
"src/hand/handdetector.js": {
"bytesInOutput": 3161
"bytesInOutput": 2786
},
"src/hand/handpipeline.js": {
"bytesInOutput": 4756
"bytesInOutput": 4728
},
"src/hand/anchors.js": {
"bytesInOutput": 127034
},
"src/hand/handpose.js": {
"bytesInOutput": 1860
"bytesInOutput": 1832
},
"src/gesture.js": {
"bytesInOutput": 2259
@ -448,16 +448,16 @@
"bytesInOutput": 13640
},
"src/image.js": {
"bytesInOutput": 4063
"bytesInOutput": 3995
},
"src/human.js": {
"bytesInOutput": 10578
"bytesInOutput": 10344
},
"dist/tfjs.esm.js": {
"bytesInOutput": 1529761
"bytesInOutput": 1529722
},
"src/hand/box.js": {
"bytesInOutput": 1894
"bytesInOutput": 1880
},
"src/hand/util.js": {
"bytesInOutput": 1808
@ -469,7 +469,7 @@
"bytesInOutput": 21
}
},
"bytes": 1785595
"bytes": 1783719
}
}
}

4
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

488
dist/tfjs.esm.json vendored
View File

@ -17819,7 +17819,7 @@
]
},
"src/tf.js": {
"bytes": 200,
"bytes": 1798,
"imports": [
{
"path": "node_modules/@tensorflow/tfjs/dist/index.js"
@ -17858,13 +17858,479 @@
"dist/tfjs.esm.js.map": {
"imports": [],
"inputs": {},
"bytes": 1095298
"bytes": 1095152
},
"dist/tfjs.esm.js": {
"imports": [],
"exports": [
"tf",
"wasm"
"Abs",
"Acos",
"Acosh",
"AdadeltaOptimizer",
"AdagradOptimizer",
"AdamOptimizer",
"AdamaxOptimizer",
"Add",
"AddN",
"All",
"Any",
"ArgMax",
"ArgMin",
"Asin",
"Asinh",
"Atan",
"Atan2",
"Atanh",
"AvgPool",
"AvgPool3D",
"AvgPool3DBackprop",
"AvgPoolBackprop",
"BackendWasm",
"BatchMatMul",
"BatchToSpaceND",
"BroadcastTo",
"Callback",
"CallbackList",
"Cast",
"Ceil",
"ClipByValue",
"Complex",
"Concat",
"Conv2D",
"Conv2DBackpropFilter",
"Conv2DBackpropInput",
"Conv3D",
"Conv3DBackpropFilterV2",
"Conv3DBackpropInputV2",
"Cos",
"Cosh",
"CropAndResize",
"Cumsum",
"CustomCallback",
"DataStorage",
"DepthToSpace",
"DepthwiseConv2dNative",
"DepthwiseConv2dNativeBackpropFilter",
"DepthwiseConv2dNativeBackpropInput",
"Diag",
"Dilation2D",
"Dilation2DBackpropFilter",
"Dilation2DBackpropInput",
"Div",
"ENV",
"EarlyStopping",
"Elu",
"EluGrad",
"Environment",
"Equal",
"Erf",
"Exp",
"Expm1",
"FFT",
"Fill",
"FlipLeftRight",
"Floor",
"FloorDiv",
"FromPixels",
"FusedBatchNorm",
"FusedConv2D",
"FusedDepthwiseConv2D",
"GatherNd",
"GatherV2",
"GraphModel",
"Greater",
"GreaterEqual",
"History",
"IFFT",
"Identity",
"Imag",
"InputSpec",
"IsFinite",
"IsInf",
"IsNan",
"KernelBackend",
"LRN",
"LRNBackprop",
"LayerVariable",
"LayersModel",
"Less",
"LessEqual",
"LinSpace",
"Log",
"Log1p",
"LogSoftmax",
"LogicalAnd",
"LogicalNot",
"LogicalOr",
"Max",
"MaxPool",
"MaxPool3D",
"MaxPool3DBackprop",
"MaxPoolBackprop",
"MaxPoolWithArgmax",
"Maximum",
"Mean",
"Min",
"Minimum",
"MirrorPad",
"Mod",
"MomentumOptimizer",
"Multiply",
"Negate",
"NonMaxSuppressionV3",
"NonMaxSuppressionV4",
"NonMaxSuppressionV5",
"NotEqual",
"OP_SCOPE_SUFFIX",
"OneHot",
"OnesLike",
"Optimizer",
"PadV2",
"Pool",
"Pow",
"Prelu",
"Prod",
"RMSPropOptimizer",
"RNN",
"Range",
"Rank",
"Real",
"Reciprocal",
"Reduction",
"Relu",
"Relu6",
"Reshape",
"ResizeBilinear",
"ResizeBilinearGrad",
"ResizeNearestNeighbor",
"ResizeNearestNeighborGrad",
"Reverse",
"RotateWithOffset",
"Round",
"Rsqrt",
"SGDOptimizer",
"ScatterNd",
"SelectV2",
"Selu",
"Sequential",
"Sigmoid",
"Sign",
"Sin",
"Sinh",
"Slice",
"Softmax",
"Softplus",
"SpaceToBatchND",
"SparseToDense",
"SplitV",
"Sqrt",
"Square",
"SquaredDifference",
"Step",
"StridedSlice",
"Sub",
"Sum",
"SymbolicTensor",
"Tan",
"Tanh",
"Tensor",
"TensorBuffer",
"Tile",
"TopK",
"Transpose",
"Unique",
"Unpack",
"UnsortedSegmentSum",
"Variable",
"ZerosLike",
"_FusedMatMul",
"abs",
"acos",
"acosh",
"add",
"addN",
"addStrict",
"all",
"any",
"argMax",
"argMin",
"asin",
"asinh",
"atan",
"atan2",
"atanh",
"avgPool",
"avgPool3d",
"backend",
"backend_util",
"basicLSTMCell",
"batchNorm",
"batchNorm2d",
"batchNorm3d",
"batchNorm4d",
"batchToSpaceND",
"booleanMaskAsync",
"broadcastTo",
"browser",
"buffer",
"callbacks",
"cast",
"ceil",
"clipByValue",
"clone",
"complex",
"concat",
"concat1d",
"concat2d",
"concat3d",
"concat4d",
"constraints",
"conv1d",
"conv2d",
"conv2dTranspose",
"conv3d",
"conv3dTranspose",
"copyRegisteredKernels",
"cos",
"cosh",
"cosineWindow",
"cumsum",
"customGrad",
"data",
"deprecationWarn",
"depthToSpace",
"depthwiseConv2d",
"deregisterOp",
"device_util",
"diag",
"dilation2d",
"disableDeprecationWarnings",
"dispose",
"disposeVariables",
"div",
"divNoNan",
"divStrict",
"dot",
"dropout",
"elu",
"enableDebugMode",
"enableProdMode",
"enclosingPowerOfTwo",
"engine",
"env",
"equal",
"equalStrict",
"erf",
"exp",
"expandDims",
"expm1",
"eye",
"fft",
"fill",
"findBackend",
"findBackendFactory",
"floor",
"floorDiv",
"fused",
"gather",
"gatherND",
"gather_util",
"getBackend",
"getGradient",
"getKernel",
"getKernelsForBackend",
"grad",
"grads",
"greater",
"greaterEqual",
"greaterEqualStrict",
"greaterStrict",
"ifft",
"imag",
"image",
"inTopKAsync",
"initializers",
"input",
"io",
"irfft",
"isFinite",
"isInf",
"isNaN",
"keep",
"kernel_impls",
"layers",
"leakyRelu",
"less",
"lessEqual",
"lessEqualStrict",
"lessStrict",
"linalg",
"linspace",
"loadGraphModel",
"loadLayersModel",
"localResponseNormalization",
"log",
"log1p",
"logSigmoid",
"logSoftmax",
"logSumExp",
"logicalAnd",
"logicalNot",
"logicalOr",
"logicalXor",
"losses",
"matMul",
"math",
"max",
"maxPool",
"maxPool3d",
"maxPoolWithArgmax",
"maximum",
"maximumStrict",
"mean",
"memory",
"metrics",
"min",
"minimum",
"minimumStrict",
"mirrorPad",
"mod",
"modStrict",
"model",
"models",
"moments",
"movingAverage",
"mul",
"mulStrict",
"multiRNNCell",
"multinomial",
"neg",
"nextFrame",
"norm",
"notEqual",
"notEqualStrict",
"oneHot",
"ones",
"onesLike",
"op",
"outerProduct",
"pad",
"pad1d",
"pad2d",
"pad3d",
"pad4d",
"pool",
"pow",
"powStrict",
"prelu",
"print",
"prod",
"profile",
"rand",
"randomGamma",
"randomNormal",
"randomUniform",
"range",
"ready",
"real",
"reciprocal",
"registerBackend",
"registerCallbackConstructor",
"registerGradient",
"registerKernel",
"registerOp",
"regularizers",
"relu",
"relu6",
"removeBackend",
"reshape",
"reverse",
"reverse1d",
"reverse2d",
"reverse3d",
"reverse4d",
"rfft",
"round",
"rsqrt",
"scalar",
"scatterND",
"scatter_util",
"selu",
"separableConv2d",
"sequential",
"serialization",
"setBackend",
"setPlatform",
"setWasmPath",
"setWasmPaths",
"setdiff1dAsync",
"sigmoid",
"sign",
"signal",
"sin",
"sinh",
"slice",
"slice1d",
"slice2d",
"slice3d",
"slice4d",
"slice_util",
"softmax",
"softplus",
"spaceToBatchND",
"sparseToDense",
"spectral",
"split",
"sqrt",
"square",
"squaredDifference",
"squaredDifferenceStrict",
"squeeze",
"stack",
"step",
"stridedSlice",
"sub",
"subStrict",
"sum",
"sumOutType",
"tan",
"tanh",
"tensor",
"tensor1d",
"tensor2d",
"tensor3d",
"tensor4d",
"tensor5d",
"tensor6d",
"tensor_util",
"test_util",
"tidy",
"tile",
"time",
"topk",
"train",
"transpose",
"truncatedNormal",
"unique",
"unregisterGradient",
"unregisterKernel",
"unsortedSegmentSum",
"unstack",
"upcastType",
"util",
"valueAndGrad",
"valueAndGrads",
"variable",
"variableGrads",
"version",
"version_converter",
"version_core",
"version_layers",
"version_wasm",
"where",
"whereAsync",
"zeros",
"zerosLike"
],
"inputs": {
"empty:/home/vlado/dev/human/node_modules/node-fetch/browser.js": {
@ -17963,9 +18429,6 @@
"node_modules/@tensorflow/tfjs-backend-wasm/wasm-out/tfjs-backend-wasm.js": {
"bytesInOutput": 25524
},
"node_modules/@tensorflow/tfjs/dist/index.js": {
"bytesInOutput": 11241
},
"node_modules/@tensorflow/tfjs-core/dist/backends/backend.js": {
"bytesInOutput": 9405
},
@ -19667,6 +20130,9 @@
"node_modules/@tensorflow/tfjs-core/dist/public/chained_ops/register_all_chained_ops.js": {
"bytesInOutput": 0
},
"node_modules/@tensorflow/tfjs/dist/index.js": {
"bytesInOutput": 183
},
"node_modules/@tensorflow/tfjs-layers/dist/exports_constraints.js": {
"bytesInOutput": 355
},
@ -20801,9 +21267,6 @@
"src/tf.js": {
"bytesInOutput": 0
},
"node_modules/@tensorflow/tfjs-backend-wasm/dist/index.js": {
"bytesInOutput": 162
},
"node_modules/@tensorflow/tfjs-backend-wasm/dist/kernels/types.js": {
"bytesInOutput": 575
},
@ -21064,9 +21527,12 @@
},
"node_modules/@tensorflow/tfjs-backend-wasm/dist/version.js": {
"bytesInOutput": 24
},
"node_modules/@tensorflow/tfjs-backend-wasm/dist/index.js": {
"bytesInOutput": 0
}
},
"bytes": 1537126
"bytes": 1531035
}
}
}

9
package-lock.json generated
View File

@ -214,8 +214,7 @@
"@tensorflow/tfjs-converter": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/@tensorflow/tfjs-converter/-/tfjs-converter-2.7.0.tgz",
"integrity": "sha512-SBpKYn/MkN8US7DeTcnvqHpvp/WKcwzpdgkQF+eHMHEbS1lXSlt4BHhOFgRdLPzy1gEC9+6P0VdTE8NQ737t/Q==",
"dev": true
"integrity": "sha512-SBpKYn/MkN8US7DeTcnvqHpvp/WKcwzpdgkQF+eHMHEbS1lXSlt4BHhOFgRdLPzy1gEC9+6P0VdTE8NQ737t/Q=="
},
"@tensorflow/tfjs-core": {
"version": "2.7.0",
@ -295,9 +294,9 @@
"dev": true
},
"@types/node": {
"version": "14.14.7",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.7.tgz",
"integrity": "sha512-Zw1vhUSQZYw+7u5dAwNbIA9TuTotpzY/OF7sJM9FqPOF3SPjKnxrjoTktXDZgUjybf4cWVBP7O8wvKdSaGHweg==",
"version": "14.14.8",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.8.tgz",
"integrity": "sha512-z/5Yd59dCKI5kbxauAJgw6dLPzW+TNOItNE00PkpzNwUIEwdj/Lsqwq94H5DdYBX7C13aRA0CY32BK76+neEUA==",
"dev": true
},
"@types/node-fetch": {

View File

@ -19,22 +19,29 @@
"type": "git",
"url": "git+https://github.com/vladmandic/human.git"
},
"dependencies": {},
"dependencies": {
},
"peerDependencies": {},
"devDependencies": {
"@tensorflow/tfjs": "^2.7.0",
"@tensorflow/tfjs-backend-cpu": "^2.7.0",
"@tensorflow/tfjs-backend-wasm": "^2.7.0",
"@tensorflow/tfjs-backend-webgl": "^2.7.0",
"@tensorflow/tfjs-converter": "^2.7.0",
"@tensorflow/tfjs-core": "^2.7.0",
"@tensorflow/tfjs-data": "^2.7.0",
"@tensorflow/tfjs-layers": "^2.7.0",
"@tensorflow/tfjs-node": "^2.7.0",
"@tensorflow/tfjs": "^2.7.0",
"@vladmandic/pilogger": "^0.2.7",
"chokidar": "^3.4.3",
"dayjs": "^1.9.6",
"esbuild": "^0.8.9",
"eslint": "^7.13.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-json": "^2.1.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint": "^7.13.0",
"rimraf": "^3.0.2",
"seedrandom": "^3.0.5",
"simple-git": "^2.22.0"

View File

@ -1,4 +1,4 @@
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
import * as profile from '../profile.js';
const models = {};

View File

@ -1,4 +1,4 @@
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
import * as kpt from './keypoints';
function getPointsConfidence(heatmapScores, heatMapCoords) {

View File

@ -1,4 +1,4 @@
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
class BaseModel {
constructor(model, outputStride) {

View File

@ -1,4 +1,4 @@
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
import * as modelBase from './modelBase';
class MobileNet extends modelBase.BaseModel {

View File

@ -1,4 +1,4 @@
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
import * as modelMobileNet from './modelMobileNet';
import * as decodeMultiple from './decodeMultiple';
import * as util from './util';

View File

@ -1,4 +1,4 @@
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
import * as profile from '../profile.js';
// based on https://github.com/sirius-ai/MobileFaceNet_TF

View File

@ -1,4 +1,4 @@
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
import * as profile from '../profile.js';
const annotations = ['angry', 'disgust', 'fear', 'happy', 'sad', 'surpise', 'neutral'];

View File

@ -1,4 +1,4 @@
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
const NUM_LANDMARKS = 6;

View File

@ -1,4 +1,4 @@
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
function scaleBoxCoordinates(box, factor) {
const startPoint = [box.startPoint[0] * factor[0], box.startPoint[1] * factor[1]];

View File

@ -1,4 +1,4 @@
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
import * as blazeface from './blazeface.js';
import * as pipe from './facepipeline.js';
import * as coords from './coords.js';

View File

@ -1,5 +1,5 @@
/* eslint-disable class-methods-use-this */
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
import * as bounding from './box';
import * as util from './util';
import * as coords from './coords.js';

View File

@ -1,4 +1,4 @@
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
import * as profile from '../profile.js';
const models = {};

View File

@ -14,7 +14,7 @@
* limitations under the License.
* =============================================================================
*/
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
function getBoxSize(box) {
return [

View File

@ -15,7 +15,7 @@
* =============================================================================
*/
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
import * as box from './box';
class HandDetector {

View File

@ -15,7 +15,7 @@
* =============================================================================
*/
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
import * as box from './box';
import * as util from './util';

View File

@ -16,7 +16,7 @@
*/
// https://storage.googleapis.com/tfjs-models/demos/handpose/index.html
import { tf } from '../../dist/tfjs.esm.js';
import * as tf from '../../dist/tfjs.esm.js';
import * as handdetector from './handdetector';
import * as pipeline from './handpipeline';
import * as anchors from './anchors';

View File

@ -1,4 +1,4 @@
import { tf, wasm } from '../dist/tfjs.esm.js';
import * as tf from '../dist/tfjs.esm.js';
import * as facemesh from './face/facemesh.js';
import * as age from './age/age.js';
import * as gender from './gender/gender.js';
@ -172,7 +172,7 @@ class Human {
if (this.config.backend === 'wasm') {
this.log('settings wasm path:', this.config.wasmPath);
wasm.setWasmPaths(this.config.wasmPath);
tf.setWasmPaths(this.config.wasmPath);
const simd = await tf.env().getAsync('WASM_HAS_SIMD_SUPPORT');
if (!simd) this.log('warning: wasm simd support is not enabled');
}

View File

@ -1,4 +1,4 @@
import { tf } from '../dist/tfjs.esm.js';
import * as tf from '../dist/tfjs.esm.js';
import * as fxImage from './imagefx.js';
// internal temp canvases

View File

@ -1,4 +1,44 @@
// wrapper to load tfjs in a single place so version can be changed quickly
export * as tf from '@tensorflow/tfjs/dist/index.js';
export * as wasm from '@tensorflow/tfjs-backend-wasm/dist/index.js';
// simplified
// { modules: 1061, moduleBytes: 3772720, outputBytes: 1531035 }
export * from '@tensorflow/tfjs/dist/index.js';
export * from '@tensorflow/tfjs-backend-wasm/dist/index.js';
// modular
// { modules: 1064, moduleBytes: 3793219, outputBytes: 1535600 }
/*
// get versions of all packages.
import { version as tfjs } from '@tensorflow/tfjs/package.json';
import { version as versionCore } from '@tensorflow/tfjs-core/package.json';
import { version as versionData } from '@tensorflow/tfjs-data/package.json';
import { version as versionLayers } from '@tensorflow/tfjs-layers/package.json';
import { version as versionConverter } from '@tensorflow/tfjs-converter/package.json';
// for backends, get version from source so it can register backend during import
import { version_cpu } from '@tensorflow/tfjs-backend-cpu/dist/index.js';
import { version_webgl } from '@tensorflow/tfjs-backend-webgl/dist/index.js';
import { version_wasm } from '@tensorflow/tfjs-backend-wasm/dist/index.js';
// export all
export * from '@tensorflow/tfjs-core/dist/index.js';
export * from '@tensorflow/tfjs-layers/dist/index.js';
export * from '@tensorflow/tfjs-converter/dist/index.js';
export * as data from '@tensorflow/tfjs-data/dist/index.js';
export * from '@tensorflow/tfjs-backend-cpu/dist/index.js';
export * from '@tensorflow/tfjs-backend-webgl/dist/index.js';
export * from '@tensorflow/tfjs-backend-wasm/dist/index.js';
// export versions
export const version = {
tfjs,
'tfjs-core': versionCore,
'tfjs-data': versionData,
'tfjs-layers': versionLayers,
'tfjs-converter': versionConverter,
'tfjs-backend-cpu': version_cpu,
'tfjs-backend-webgl': version_webgl,
'tfjs-backend-wasm': version_wasm,
};
*/