Closed SirVizzy closed 2 months ago
I understand this library wasn't meant to be ran in a worker. However, after using the monkey patch is actually works like a charm in most cases.
I'm glad it does, but its still unsupported since FaceAPI internally relies on DOM elements a lot.
I expect the backend to be switched to WebGL (I tested this with an Android phone, and it worked). Or, if not working, fallback to either wasm or cpu.
Fallback does happen if backend is unavailable. If its available, but non-functional, its really up to user to setup rules. You could detect platform and set appropriate backend yourself.
In either case, this is not something that will be worked on.
I'm glad it does, but its still unsupported since FaceAPI internally relies on DOM elements a lot.
It really does work well. I'm quite happy with the <50ms detection time for such model.
In either case, this is not something that will be worked on.
Thought so. Do you have any hunch on why this might go wrong given the error?
Fallback does happen if backend is unavailable. If its available, but non-functional, its really up to user to setup rules. You could detect platform and set appropriate backend yourself.
Yeah. I'm planning on doing this. However I want to rely on the fallback mechanism as much as possible. I'm unsure what to check for as it does work for another iOS device.
I'm unsure what to check for as it does work for another iOS device.
neither do i :(
I understand this library wasn't meant to be ran in a worker. However, after using the monkey patch is actually works like a charm in most cases.
Issue Description By default, on my iPhone XR the feature flag "Allow WebGL in Web Workers" is disabled. Since WebGL is not enabled FaceAPI defaults to wasm. Which is perfect. However, enabling this feature breaks FaceAPI. I am getting the following message from the worker;
Steps to Reproduce I used the following patch to make it work in workers;
Using this patch enable "Allow WebGL in Web Workers" in the safari advanced settings. After, run the face detection and see whether it breaks.
Expected Behavior I expect the backend to be switched to WebGL (I tested this with an Android phone, and it worked). Or, if not working, fallback to either wasm or cpu.
Environment
js
,esm
,esm-nobundle
)?