2020-12-02 22:46:41 +01:00
|
|
|
import * as tf from '../dist/tfjs.esm.js';
|
2020-08-18 13:54:53 +02:00
|
|
|
import * as draw from './draw';
|
|
|
|
import * as utils from './utils';
|
2020-10-13 22:57:06 +02:00
|
|
|
export { tf, draw, utils };
|
2020-09-08 18:26:51 +02:00
|
|
|
|
2020-08-18 13:54:53 +02:00
|
|
|
export * from './ageGenderNet/index';
|
|
|
|
export * from './classes/index';
|
|
|
|
export * from './dom/index'
|
|
|
|
export * from './env/index';
|
|
|
|
export * from './faceExpressionNet/index';
|
|
|
|
export * from './faceLandmarkNet/index';
|
|
|
|
export * from './faceRecognitionNet/index';
|
|
|
|
export * from './factories/index';
|
|
|
|
export * from './globalApi/index';
|
|
|
|
export * from './ops/index';
|
2020-08-26 00:24:48 +02:00
|
|
|
export * from './ssdMobilenetv1/index';
|
2020-08-18 13:54:53 +02:00
|
|
|
export * from './tinyFaceDetector/index';
|
|
|
|
export * from './tinyYolov2/index';
|
|
|
|
export * from './euclideanDistance';
|
|
|
|
export * from './NeuralNetwork';
|
2020-08-29 20:56:29 +02:00
|
|
|
export * from './resizeResults';
|
2020-09-08 18:26:51 +02:00
|
|
|
|
|
|
|
import * as pkg from '../package.json';
|
2020-10-11 18:41:17 +02:00
|
|
|
const node = (typeof process !== 'undefined');
|
|
|
|
const browser = (typeof navigator !== 'undefined') && (typeof navigator.userAgent !== 'undefined');
|
2020-10-09 03:31:31 +02:00
|
|
|
export const version = { faceapi: pkg.version, node, browser };
|
2020-10-11 18:41:17 +02:00
|
|
|
|
2020-10-13 22:57:06 +02:00
|
|
|
// import { PlatformBrowser } from './Platform';
|
2020-10-12 20:28:19 +02:00
|
|
|
// if (!tf.env().platform && tf.env().get('IS_BROWSER')) tf.env().setPlatform('browser', new PlatformBrowser);
|
2020-10-13 22:57:06 +02:00
|
|
|
// tf.setBackend('cpu');
|
|
|
|
|
|
|
|
// import {MathBackendCPU} from '@tensorflow/tfjs-backend-cpu/dist/backend_cpu.js';
|
|
|
|
// export {MathBackendCPU};
|
|
|
|
// tf.registerBackend('cpu', () => new MathBackendCPU(), 1 /* priority */);
|