When I start the FaceAPI demo, it is not working. My console shows me 3 lines:
- Could not get context for WebGL version 2
- Could not get context for WebGL version 1
- ERROR: caught (in promise) Error: The highest priority backend 'wasm' has not yet been initialized. Make sure to await tf.ready() or await tf.setBackend() before calling other methods
at get backend [as backend] (face-api.js:14:7284)
at vc.makeTensor (face-api.js:14:14342)
at Cs (face-api.js:14:28639)
at bn (face-api.js:14:28697)
at yN (face-api.js:14:33220)
at face-api.js:32:364
at Array.forEach ()
at face-api.js:32:295
at Array.forEach ()
at face-api.js:32:229
The error message is generated in the WebFormCreate on this line:
await(SetWasmPath(FACEAPI));
await(SetBackend('wasm'));
await(LoadSsdMobileNetV1Model(FACEAPIMODELS)); <---- ERROR
await(loadTinyFaceDetectorModel(FACEAPIMODELS));
await(LoadFaceLandmark68NetModel(FACEAPIMODELS));
await(LoadFaceLandmark68TinyNetModel(FACEAPIMODELS));
await(LoadFaceRecognitionNetModel(FACEAPIMODELS));
await(LoadFaceExpressionNetModel(FACEAPIMODELS));
await(LoadAgeGenderNetModel(FACEAPIMODELS));
s := window.localStorage.items[FACEMATCHERKEY];
Const:
FACEMATCHERKEY = 'FaceMatcher';
FACEAPI = 'https://download.tmssoftware.com/fncwxpack/faceapi/';
FACEAPIMODELS = 'https://download.tmssoftware.com/fncwxpack/faceapi/models';