UNPKG

@vladmandic/face-api

Version:

FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS

6 lines (4 loc) 200 B
import { fetchOrThrow } from './fetchOrThrow'; export async function fetchNetWeights(uri: string): Promise<Float32Array> { return new Float32Array(await (await fetchOrThrow(uri)).arrayBuffer()); }