2020-12-23 18:58:47 +01:00
|
|
|
import * as tf from '../dist/tfjs.esm';
|
2020-12-19 17:46:41 +01:00
|
|
|
import * as draw from './draw/index';
|
|
|
|
import * as utils from './utils/index';
|
2020-12-23 17:26:55 +01:00
|
|
|
import * as pkg from '../package.json';
|
|
|
|
|
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';
|
2020-12-23 17:26:55 +01:00
|
|
|
export * from './dom/index';
|
2020-08-18 13:54:53 +02:00
|
|
|
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
|
|
|
|
2020-10-11 18:41:17 +02:00
|
|
|
const node = (typeof process !== 'undefined');
|
|
|
|
const browser = (typeof navigator !== 'undefined') && (typeof navigator.userAgent !== 'undefined');
|
2020-12-19 17:46:41 +01:00
|
|
|
export const version = { faceapi: pkg.version as string, node, browser };
|
2021-09-10 16:24:33 +02:00
|
|
|
|
|
|
|
// set webgl defaults
|
|
|
|
if (browser) {
|
|
|
|
tf.ENV.set('CHECK_COMPUTATION_FOR_ERRORS', false);
|
|
|
|
tf.ENV.set('WEBGL_CPU_FORWARD', true);
|
2021-10-22 15:06:43 +02:00
|
|
|
// tf.ENV.set('WEBGL_PACK_DEPTHWISECONV', false);
|
2021-09-10 16:24:33 +02:00
|
|
|
tf.ENV.set('WEBGL_USE_SHAPES_UNIFORMS', true);
|
|
|
|
}
|