You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still trying to mitigate the "warm up" time that locks the browser interface by loading it in a Web Worker. I've gotten it fairly far but have bumped into an error.
"Error: No backend found in registry". This happens when attempting to load the libraries. It appears both attempts to register a backend fail.
Here's from my console (Firefox):
Error: WebGL warning: Exceeded 16 live WebGL contexts for this principal, losing the least recently used one. tf-core.esm.js:17:45101
Registration of backend webgl failed face-api.js:23:50055
e@http://192.168.0.15/Scripts/face-api.js:23:212026
@http://192.168.0.15/Scripts/face-api.js:23:248669
Environment</e.prototype.registerBackend@http://192.168.0.15/Scripts/face-api.js:23:49917
@http://192.168.0.15/Scripts/face-api.js:23:248623
@http://192.168.0.15/Scripts/face-api.js:4:6
@http://192.168.0.15/Scripts/face-api.js:1:2
@http://192.168.0.15/Scripts/v2/FacialComparison/Worker.js:3:1
face-api.js:23:50108
Registration of backend cpu failed face-api.js:23:50055
e@http://192.168.0.15/Scripts/face-api.js:23:315878
@http://192.168.0.15/Scripts/face-api.js:23:353885
Environment</e.prototype.registerBackend@http://192.168.0.15/Scripts/face-api.js:23:49917
@http://192.168.0.15/Scripts/face-api.js:23:353841
@http://192.168.0.15/Scripts/face-api.js:4:6
@http://192.168.0.15/Scripts/face-api.js:1:2
@http://192.168.0.15/Scripts/v2/FacialComparison/Worker.js:3:1
Error: No backend found in registry.
And here's the code from my Web Worker:
let window = self;
importScripts('/Scripts/v2/FacialComparison/setImmediate.js');
importScripts('/Scripts/face-api.js');
(function () {
send = function (e) {
// Send something to the main thread
postMessage(e);
// Close the worker gracefully, letting it clean up
// after itself
self.close();
};
LoadLibraries();
})();
async function LoadLibraries() {
// load FaceAPI libraries
try {
console.log("Loading libraries...");
await faceapi.loadTinyFaceDetectorModel('/Content/FaceAPIModels');
await faceapi.loadFaceLandmarkModel('/Content/FaceAPIModels');
await faceapi.loadFaceRecognitionModel('/Content/FaceAPIModels');
console.log("Libraries loaded.");
}
catch (ex) {
console.log(ex);
}
}
Any ideas or suggestions?
The text was updated successfully, but these errors were encountered:
I'm still trying to mitigate the "warm up" time that locks the browser interface by loading it in a Web Worker. I've gotten it fairly far but have bumped into an error.
"Error: No backend found in registry". This happens when attempting to load the libraries. It appears both attempts to register a backend fail.
Here's from my console (Firefox):
And here's the code from my Web Worker:
Any ideas or suggestions?
The text was updated successfully, but these errors were encountered: