Quellcode durchsuchen

chore: update face-api (#10912)

* chore: update face-api

* fix: remove caret from face-api dependecy and update models
master
Gabriel Borlea vor 3 Jahren
Ursprung
Commit
8ccd7e92e0
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden

+ 14
- 113
package-lock.json Datei anzeigen

@@ -48,6 +48,7 @@
48 48
         "@react-navigation/native": "6.0.6",
49 49
         "@react-navigation/stack": "6.0.11",
50 50
         "@svgr/webpack": "4.3.2",
51
+        "@vladmandic/face-api": "1.6.4",
51 52
         "@xmldom/xmldom": "0.7.5",
52 53
         "amplitude-js": "8.2.1",
53 54
         "base64-js": "1.3.1",
@@ -55,7 +56,6 @@
55 56
         "clipboard-copy": "4.0.1",
56 57
         "clsx": "1.1.1",
57 58
         "dropbox": "10.7.0",
58
-        "face-api.js": "0.22.2",
59 59
         "focus-visible": "5.1.0",
60 60
         "grapheme-splitter": "1.0.4",
61 61
         "i18n-iso-countries": "6.8.0",
@@ -4907,30 +4907,6 @@
4907 4907
         "node": ">=8"
4908 4908
       }
4909 4909
     },
4910
-    "node_modules/@tensorflow/tfjs-core": {
4911
-      "version": "1.7.0",
4912
-      "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-core/-/tfjs-core-1.7.0.tgz",
4913
-      "integrity": "sha512-uwQdiklNjqBnHPeseOdG0sGxrI3+d6lybaKu2+ou3ajVeKdPEwpWbgqA6iHjq1iylnOGkgkbbnQ6r2lwkiIIHw==",
4914
-      "dependencies": {
4915
-        "@types/offscreencanvas": "~2019.3.0",
4916
-        "@types/seedrandom": "2.4.27",
4917
-        "@types/webgl-ext": "0.0.30",
4918
-        "@types/webgl2": "0.0.4",
4919
-        "node-fetch": "~2.1.2",
4920
-        "seedrandom": "2.4.3"
4921
-      },
4922
-      "engines": {
4923
-        "yarn": ">= 1.3.2"
4924
-      }
4925
-    },
4926
-    "node_modules/@tensorflow/tfjs-core/node_modules/node-fetch": {
4927
-      "version": "2.1.2",
4928
-      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.1.2.tgz",
4929
-      "integrity": "sha1-q4hOjn5X44qUR1POxwb3iNF2i7U=",
4930
-      "engines": {
4931
-        "node": "4.x || >=6.0.0"
4932
-      }
4933
-    },
4934 4910
     "node_modules/@trysound/sax": {
4935 4911
       "version": "0.2.0",
4936 4912
       "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz",
@@ -5092,11 +5068,6 @@
5092 5068
       "resolved": "https://registry.npmjs.org/@types/node/-/node-16.10.3.tgz",
5093 5069
       "integrity": "sha512-ho3Ruq+fFnBrZhUYI46n/bV2GjwzSkwuT4dTf0GkuNFmnb8nq4ny2z9JEVemFi6bdEJanHLlYfy9c6FN9B9McQ=="
5094 5070
     },
5095
-    "node_modules/@types/offscreencanvas": {
5096
-      "version": "2019.3.0",
5097
-      "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.3.0.tgz",
5098
-      "integrity": "sha512-esIJx9bQg+QYF0ra8GnvfianIY8qWB0GBx54PK5Eps6m+xTj86KLavHv6qDhzKcu5UUOgNfJ2pWaIIV7TRUd9Q=="
5099
-    },
5100 5071
     "node_modules/@types/parse-json": {
5101 5072
       "version": "4.0.0",
5102 5073
       "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz",
@@ -5158,11 +5129,6 @@
5158 5129
       "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz",
5159 5130
       "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA=="
5160 5131
     },
5161
-    "node_modules/@types/seedrandom": {
5162
-      "version": "2.4.27",
5163
-      "resolved": "https://registry.npmjs.org/@types/seedrandom/-/seedrandom-2.4.27.tgz",
5164
-      "integrity": "sha1-nbVjk33YaRX2kJK8QyWdL0hXjkE="
5165
-    },
5166 5132
     "node_modules/@types/serve-index": {
5167 5133
       "version": "1.9.1",
5168 5134
       "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz",
@@ -5191,16 +5157,6 @@
5191 5157
         "@types/node": "*"
5192 5158
       }
5193 5159
     },
5194
-    "node_modules/@types/webgl-ext": {
5195
-      "version": "0.0.30",
5196
-      "resolved": "https://registry.npmjs.org/@types/webgl-ext/-/webgl-ext-0.0.30.tgz",
5197
-      "integrity": "sha512-LKVgNmBxN0BbljJrVUwkxwRYqzsAEPcZOe6S2T6ZaBDIrFp0qu4FNlpc5sM1tGbXUYFgdVQIoeLk1Y1UoblyEg=="
5198
-    },
5199
-    "node_modules/@types/webgl2": {
5200
-      "version": "0.0.4",
5201
-      "resolved": "https://registry.npmjs.org/@types/webgl2/-/webgl2-0.0.4.tgz",
5202
-      "integrity": "sha512-PACt1xdErJbMUOUweSrbVM7gSIYm1vTncW2hF6Os/EeWi6TXYAYMPp+8v6rzHmypE5gHrxaxZNXgMkJVIdZpHw=="
5203
-    },
5204 5160
     "node_modules/@types/ws": {
5205 5161
       "version": "8.2.2",
5206 5162
       "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz",
@@ -5223,6 +5179,14 @@
5223 5179
       "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.1.tgz",
5224 5180
       "integrity": "sha512-7tFImggNeNBVMsn0vLrpn1H1uPrUBdnARPTpZoitY37ZrdJREzf7I16tMrlK3hen349gr1NYh8CmZQa7CTG6Aw=="
5225 5181
     },
5182
+    "node_modules/@vladmandic/face-api": {
5183
+      "version": "1.6.4",
5184
+      "resolved": "https://registry.npmjs.org/@vladmandic/face-api/-/face-api-1.6.4.tgz",
5185
+      "integrity": "sha512-tVx8lCL1mKb44qeN5EEypJNXqxRYXh+7BcSzfY4iMaZIoF5Y+Jev20UiIn9JvxwGV2caWkdFIjpvw+OxsL/kdg==",
5186
+      "engines": {
5187
+        "node": ">=14.0.0"
5188
+      }
5189
+    },
5226 5190
     "node_modules/@webassemblyjs/ast": {
5227 5191
       "version": "1.11.1",
5228 5192
       "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz",
@@ -9478,15 +9442,6 @@
9478 9442
         "node": ">=0.10.0"
9479 9443
       }
9480 9444
     },
9481
-    "node_modules/face-api.js": {
9482
-      "version": "0.22.2",
9483
-      "resolved": "https://registry.npmjs.org/face-api.js/-/face-api.js-0.22.2.tgz",
9484
-      "integrity": "sha512-9Bbv/yaBRTKCXjiDqzryeKhYxmgSjJ7ukvOvEBy6krA0Ah/vNBlsf7iBNfJljWiPA8Tys1/MnB3lyP2Hfmsuyw==",
9485
-      "dependencies": {
9486
-        "@tensorflow/tfjs-core": "1.7.0",
9487
-        "tslib": "^1.11.1"
9488
-      }
9489
-    },
9490 9445
     "node_modules/fast-base64-decode": {
9491 9446
       "version": "1.0.0",
9492 9447
       "resolved": "https://registry.npmjs.org/fast-base64-decode/-/fast-base64-decode-1.0.0.tgz",
@@ -16639,11 +16594,6 @@
16639 16594
         "sdp-verify": "checker.js"
16640 16595
       }
16641 16596
     },
16642
-    "node_modules/seedrandom": {
16643
-      "version": "2.4.3",
16644
-      "resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-2.4.3.tgz",
16645
-      "integrity": "sha1-JDhQTa0zkXMUv/GKxNeU8W1qrsw="
16646
-    },
16647 16597
     "node_modules/select-hose": {
16648 16598
       "version": "2.0.0",
16649 16599
       "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",
@@ -23549,26 +23499,6 @@
23549 23499
         "loader-utils": "^1.2.3"
23550 23500
       }
23551 23501
     },
23552
-    "@tensorflow/tfjs-core": {
23553
-      "version": "1.7.0",
23554
-      "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-core/-/tfjs-core-1.7.0.tgz",
23555
-      "integrity": "sha512-uwQdiklNjqBnHPeseOdG0sGxrI3+d6lybaKu2+ou3ajVeKdPEwpWbgqA6iHjq1iylnOGkgkbbnQ6r2lwkiIIHw==",
23556
-      "requires": {
23557
-        "@types/offscreencanvas": "~2019.3.0",
23558
-        "@types/seedrandom": "2.4.27",
23559
-        "@types/webgl-ext": "0.0.30",
23560
-        "@types/webgl2": "0.0.4",
23561
-        "node-fetch": "~2.1.2",
23562
-        "seedrandom": "2.4.3"
23563
-      },
23564
-      "dependencies": {
23565
-        "node-fetch": {
23566
-          "version": "2.1.2",
23567
-          "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.1.2.tgz",
23568
-          "integrity": "sha1-q4hOjn5X44qUR1POxwb3iNF2i7U="
23569
-        }
23570
-      }
23571
-    },
23572 23502
     "@trysound/sax": {
23573 23503
       "version": "0.2.0",
23574 23504
       "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz",
@@ -23727,11 +23657,6 @@
23727 23657
       "resolved": "https://registry.npmjs.org/@types/node/-/node-16.10.3.tgz",
23728 23658
       "integrity": "sha512-ho3Ruq+fFnBrZhUYI46n/bV2GjwzSkwuT4dTf0GkuNFmnb8nq4ny2z9JEVemFi6bdEJanHLlYfy9c6FN9B9McQ=="
23729 23659
     },
23730
-    "@types/offscreencanvas": {
23731
-      "version": "2019.3.0",
23732
-      "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.3.0.tgz",
23733
-      "integrity": "sha512-esIJx9bQg+QYF0ra8GnvfianIY8qWB0GBx54PK5Eps6m+xTj86KLavHv6qDhzKcu5UUOgNfJ2pWaIIV7TRUd9Q=="
23734
-    },
23735 23660
     "@types/parse-json": {
23736 23661
       "version": "4.0.0",
23737 23662
       "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz",
@@ -23795,11 +23720,6 @@
23795 23720
       "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz",
23796 23721
       "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA=="
23797 23722
     },
23798
-    "@types/seedrandom": {
23799
-      "version": "2.4.27",
23800
-      "resolved": "https://registry.npmjs.org/@types/seedrandom/-/seedrandom-2.4.27.tgz",
23801
-      "integrity": "sha1-nbVjk33YaRX2kJK8QyWdL0hXjkE="
23802
-    },
23803 23723
     "@types/serve-index": {
23804 23724
       "version": "1.9.1",
23805 23725
       "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz",
@@ -23828,16 +23748,6 @@
23828 23748
         "@types/node": "*"
23829 23749
       }
23830 23750
     },
23831
-    "@types/webgl-ext": {
23832
-      "version": "0.0.30",
23833
-      "resolved": "https://registry.npmjs.org/@types/webgl-ext/-/webgl-ext-0.0.30.tgz",
23834
-      "integrity": "sha512-LKVgNmBxN0BbljJrVUwkxwRYqzsAEPcZOe6S2T6ZaBDIrFp0qu4FNlpc5sM1tGbXUYFgdVQIoeLk1Y1UoblyEg=="
23835
-    },
23836
-    "@types/webgl2": {
23837
-      "version": "0.0.4",
23838
-      "resolved": "https://registry.npmjs.org/@types/webgl2/-/webgl2-0.0.4.tgz",
23839
-      "integrity": "sha512-PACt1xdErJbMUOUweSrbVM7gSIYm1vTncW2hF6Os/EeWi6TXYAYMPp+8v6rzHmypE5gHrxaxZNXgMkJVIdZpHw=="
23840
-    },
23841 23751
     "@types/ws": {
23842 23752
       "version": "8.2.2",
23843 23753
       "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz",
@@ -23860,6 +23770,11 @@
23860 23770
       "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.1.tgz",
23861 23771
       "integrity": "sha512-7tFImggNeNBVMsn0vLrpn1H1uPrUBdnARPTpZoitY37ZrdJREzf7I16tMrlK3hen349gr1NYh8CmZQa7CTG6Aw=="
23862 23772
     },
23773
+    "@vladmandic/face-api": {
23774
+      "version": "1.6.4",
23775
+      "resolved": "https://registry.npmjs.org/@vladmandic/face-api/-/face-api-1.6.4.tgz",
23776
+      "integrity": "sha512-tVx8lCL1mKb44qeN5EEypJNXqxRYXh+7BcSzfY4iMaZIoF5Y+Jev20UiIn9JvxwGV2caWkdFIjpvw+OxsL/kdg=="
23777
+    },
23863 23778
     "@webassemblyjs/ast": {
23864 23779
       "version": "1.11.1",
23865 23780
       "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz",
@@ -27216,15 +27131,6 @@
27216 27131
         }
27217 27132
       }
27218 27133
     },
27219
-    "face-api.js": {
27220
-      "version": "0.22.2",
27221
-      "resolved": "https://registry.npmjs.org/face-api.js/-/face-api.js-0.22.2.tgz",
27222
-      "integrity": "sha512-9Bbv/yaBRTKCXjiDqzryeKhYxmgSjJ7ukvOvEBy6krA0Ah/vNBlsf7iBNfJljWiPA8Tys1/MnB3lyP2Hfmsuyw==",
27223
-      "requires": {
27224
-        "@tensorflow/tfjs-core": "1.7.0",
27225
-        "tslib": "^1.11.1"
27226
-      }
27227
-    },
27228 27134
     "fast-base64-decode": {
27229 27135
       "version": "1.0.0",
27230 27136
       "resolved": "https://registry.npmjs.org/fast-base64-decode/-/fast-base64-decode-1.0.0.tgz",
@@ -32661,11 +32567,6 @@
32661 32567
       "resolved": "https://registry.npmjs.org/sdp-transform/-/sdp-transform-2.3.0.tgz",
32662 32568
       "integrity": "sha1-V6lXWUIEHYV3qGnXx01MOgvYiPY="
32663 32569
     },
32664
-    "seedrandom": {
32665
-      "version": "2.4.3",
32666
-      "resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-2.4.3.tgz",
32667
-      "integrity": "sha1-JDhQTa0zkXMUv/GKxNeU8W1qrsw="
32668
-    },
32669 32570
     "select-hose": {
32670 32571
       "version": "2.0.0",
32671 32572
       "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",

+ 1
- 1
package.json Datei anzeigen

@@ -53,6 +53,7 @@
53 53
     "@react-navigation/native": "6.0.6",
54 54
     "@react-navigation/stack": "6.0.11",
55 55
     "@svgr/webpack": "4.3.2",
56
+    "@vladmandic/face-api": "1.6.4",
56 57
     "@xmldom/xmldom": "0.7.5",
57 58
     "amplitude-js": "8.2.1",
58 59
     "base64-js": "1.3.1",
@@ -60,7 +61,6 @@
60 61
     "clipboard-copy": "4.0.1",
61 62
     "clsx": "1.1.1",
62 63
     "dropbox": "10.7.0",
63
-    "face-api.js": "0.22.2",
64 64
     "focus-visible": "5.1.0",
65 65
     "grapheme-splitter": "1.0.4",
66 66
     "i18n-iso-countries": "6.8.0",

+ 1
- 1
react/features/facial-recognition/facialExpressionsWorker.js Datei anzeigen

@@ -1,6 +1,6 @@
1 1
 // @flow
2 2
 import './faceApiPatch';
3
-import * as faceapi from 'face-api.js';
3
+import * as faceapi from '@vladmandic/face-api';
4 4
 
5 5
 import {
6 6
     CLEAR_TIMEOUT,

+ 5
- 5
react/features/facial-recognition/resources/README.md Datei anzeigen

@@ -2,20 +2,20 @@
2 2
 
3 3
 ### Tiny Face Detector
4 4
 
5
-It is a realtime face detector, more information can be found here https://github.com/justadudewhohacks/face-api.js/#tiny-face-detector.
5
+It is a realtime face detector.
6 6
 
7 7
 ### Face Expression Recognition Model
8 8
 
9
-It is a models that recognizes face expressions, more information can be found here https://github.com/justadudewhohacks/face-api.js/#face-expression-recognition-model.
9
+It is a models that recognizes facial expressions.
10 10
 
11 11
 ### Usage
12 12
 
13
-Both models are loaded using face-api.js which is a JavaScript face recognition API for the browser and nodejs implemented on top of tensorflow.js core.
13
+Both models are loaded using face-api which is as AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS.
14 14
 
15 15
 Depending on the browser and hardware acceleration available the tensorflow.js will use a webgl backend of a cpu backend.
16 16
 
17 17
 ## LICENSE
18 18
 
19
-The models were both downloaded from the face-api.js repository, https://github.com/justadudewhohacks/face-api.js/, and they can be found in this folder https://github.com/justadudewhohacks/face-api.js/tree/master/weights.
19
+The models were both downloaded from the face-api repository, https://github.com/vladmandic/face-api , and they can be found in this folder https://github.com/vladmandic/face-api/tree/master/model.
20 20
 
21
-The repository has a MIT License. More information can be found here https://github.com/justadudewhohacks/face-api.js/blob/master/LICENSE.
21
+The repository has a MIT License. More information can be found here https://github.com/vladmandic/face-api/blob/master/LICENSE.

+ 60
- 1
react/features/facial-recognition/resources/face_expression_model-weights_manifest.json
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


react/features/facial-recognition/resources/face_expression_model-shard1 → react/features/facial-recognition/resources/face_expression_model.bin Datei anzeigen


+ 30
- 1
react/features/facial-recognition/resources/tiny_face_detector_model-weights_manifest.json Datei anzeigen

@@ -1 +1,30 @@
1
-[{"weights":[{"name":"conv0/filters","shape":[3,3,3,16],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.009007044399485869,"min":-1.2069439495311063}},{"name":"conv0/bias","shape":[16],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.005263455241334205,"min":-0.9211046672334858}},{"name":"conv1/depthwise_filter","shape":[3,3,16,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.004001977630690033,"min":-0.5042491814669441}},{"name":"conv1/pointwise_filter","shape":[1,1,16,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.013836609615999109,"min":-1.411334180831909}},{"name":"conv1/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0015159862590771096,"min":-0.30926119685173037}},{"name":"conv2/depthwise_filter","shape":[3,3,32,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.002666276225856706,"min":-0.317286870876948}},{"name":"conv2/pointwise_filter","shape":[1,1,32,64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.015265831292844286,"min":-1.6792414422128714}},{"name":"conv2/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0020280554598453,"min":-0.37113414915168985}},{"name":"conv3/depthwise_filter","shape":[3,3,64,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.006100742489683862,"min":-0.8907084034938438}},{"name":"conv3/pointwise_filter","shape":[1,1,64,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.016276211832083907,"min":-2.0508026908425725}},{"name":"conv3/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.003394414279975143,"min":-0.7637432129944072}},{"name":"conv4/depthwise_filter","shape":[3,3,128,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.006716050119961009,"min":-0.8059260143953211}},{"name":"conv4/pointwise_filter","shape":[1,1,128,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.021875603993733724,"min":-2.8875797271728514}},{"name":"conv4/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0041141652009066415,"min":-0.8187188749804216}},{"name":"conv5/depthwise_filter","shape":[3,3,256,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.008423839597141042,"min":-0.9013508368940915}},{"name":"conv5/pointwise_filter","shape":[1,1,256,512],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.030007277283014035,"min":-3.8709387695088107}},{"name":"conv5/bias","shape":[512],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.008402082966823203,"min":-1.4871686851277068}},{"name":"conv8/filters","shape":[1,1,512,25],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.028336129469030042,"min":-4.675461362389957}},{"name":"conv8/bias","shape":[25],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.002268134028303857,"min":-0.41053225912299807}}],"paths":["tiny_face_detector_model-shard1"]}]
1
+[
2
+  {
3
+      "weights":
4
+      [
5
+          {"name":"conv0/filters","shape":[3,3,3,16],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.009007044399485869,"min":-1.2069439495311063}},
6
+          {"name":"conv0/bias","shape":[16],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.005263455241334205,"min":-0.9211046672334858}},
7
+          {"name":"conv1/depthwise_filter","shape":[3,3,16,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.004001977630690033,"min":-0.5042491814669441}},
8
+          {"name":"conv1/pointwise_filter","shape":[1,1,16,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.013836609615999109,"min":-1.411334180831909}},
9
+          {"name":"conv1/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0015159862590771096,"min":-0.30926119685173037}},
10
+          {"name":"conv2/depthwise_filter","shape":[3,3,32,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.002666276225856706,"min":-0.317286870876948}},
11
+          {"name":"conv2/pointwise_filter","shape":[1,1,32,64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.015265831292844286,"min":-1.6792414422128714}},
12
+          {"name":"conv2/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0020280554598453,"min":-0.37113414915168985}},
13
+          {"name":"conv3/depthwise_filter","shape":[3,3,64,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.006100742489683862,"min":-0.8907084034938438}},
14
+          {"name":"conv3/pointwise_filter","shape":[1,1,64,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.016276211832083907,"min":-2.0508026908425725}},
15
+          {"name":"conv3/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.003394414279975143,"min":-0.7637432129944072}},
16
+          {"name":"conv4/depthwise_filter","shape":[3,3,128,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.006716050119961009,"min":-0.8059260143953211}},
17
+          {"name":"conv4/pointwise_filter","shape":[1,1,128,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.021875603993733724,"min":-2.8875797271728514}},
18
+          {"name":"conv4/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0041141652009066415,"min":-0.8187188749804216}},
19
+          {"name":"conv5/depthwise_filter","shape":[3,3,256,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.008423839597141042,"min":-0.9013508368940915}},
20
+          {"name":"conv5/pointwise_filter","shape":[1,1,256,512],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.030007277283014035,"min":-3.8709387695088107}},
21
+          {"name":"conv5/bias","shape":[512],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.008402082966823203,"min":-1.4871686851277068}},
22
+          {"name":"conv8/filters","shape":[1,1,512,25],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.028336129469030042,"min":-4.675461362389957}},
23
+          {"name":"conv8/bias","shape":[25],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.002268134028303857,"min":-0.41053225912299807}}
24
+      ],
25
+      "paths":
26
+      [
27
+          "tiny_face_detector_model.bin"
28
+      ]
29
+  }
30
+]

react/features/facial-recognition/resources/tiny_face_detector_model-shard1 → react/features/facial-recognition/resources/tiny_face_detector_model.bin Datei anzeigen


+ 1
- 1
webpack.config.js Datei anzeigen

@@ -392,7 +392,7 @@ module.exports = (_env, argv) => {
392 392
                 ...config.plugins,
393 393
                 ...getBundleAnalyzerPlugin(analyzeBundle, 'facial-expressions-worker')
394 394
             ],
395
-            performance: getPerformanceHints(perfHintOptions, 1024 * 1024)
395
+            performance: getPerformanceHints(perfHintOptions, 1024 * 1024 * 1.5)
396 396
         })
397 397
     ];
398 398
 };

Laden…
Abbrechen
Speichern