UNPKG

@vladmandic/face-api

Version:

JavaScript module for Face Detection and Face Recognition Using Tensorflow/JS

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