tfjs-backend-wasm-simd.wasm not found
clovelll opened this issue · 1 comments
Issue Description
Hello, I am currently using this library and it works well on most computers. However, a few computers may request the tfjs backend wasm simd.wasm file for facial recognition, but I do not have this file. Why does this file make requests on some computers?
Steps to Reproduce
import * as faceapi from '@vladmandic/face-api/dist/face-api.esm.js';
await Promise.all([
faceapi.nets.ssdMobilenetv1.loadFromUri(
process.env.PUBLIC_URL + '/model'
),
faceapi.nets.faceLandmark68Net.loadFromUri(
process.env.PUBLIC_URL + '/model'
),
faceapi.nets.tinyFaceDetector.loadFromUri(
process.env.PUBLIC_URL + '/model'
),
]);
await faceapi
.detectAllFaces(imgs, new faceapi.SsdMobilenetv1Options())
.withFaceLandmarks();
Expected Behavior
**Environment
- Module version?
- 1.7.13
- Built-in demo or custom code?
- Type of module used (e.g.
js
,esm
,esm-nobundle
)? - Browser or NodeJS and version (e.g. NodeJS 14.15 or Chrome 89)?
- OS and Hardware platform (e.g. Windows 10, Ubuntu Linux on x64, Android 10)?
- Packager (if any) (e.g, webpack, rollup, parcel, esbuild, etc.)?
Additional
- For installation or startup issues include your
package.json
- For usage issues, it is recommended to post your code as gist
if you're not explicitly setting wasm as backend, that means that it was auto-selected as fallback on those affected clients.
order of preference of execution backends is webgpu -> webgl -> wasm -> cpu.
which means on affected clients, basic webgl functionality failed.
on how to set wasm url and where to find those files, see readme, its covered there.