This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
WebGL not supported in browser #192
Yash123Yash123
started this conversation in
General
Replies: 1 comment
-
what you can do is use version of face-api without bundled tfjs and load tfjs backend you want to use explicitly. const tf = require('@tensorflow/tfjs');
const wasm = require('@tensorflow/tfjs-backend-wasm');
const faceapi = require('@vladmandic/face-api/dist/face-api.node-wasm.js'); // use this when using face-api in dev mode
wasm.setWasmPaths('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm/dist/');
await tf.setBackend('wasm');
await tf.ready(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Vladimir,
How can I use face-api if WebGL is not supported in my browser , is there any other way to use face-api in browser ?
Getting this message "The highest priority backend 'wasm' has not yet been initialized. Make sure to await tf.ready() or await tf.setBackend() before calling other methods"
Thanks
Beta Was this translation helpful? Give feedback.
All reactions