# FaceAPI ## Note This is updated **face-api.js** with latest available TensorFlow/JS as the original face-api.js is not compatible with **tfjs 2.0+**. Forked from **face-api.js** version **0.22.2** released on March 22nd, 2020 - - ## Differences - Removed tests, docs, examples - Updated all package dependencies - Compatible with TensorFlow/JS 2.0+ - Updated type casting for TypeScript type checking - Removed unnecesary package dependencies (karma, jasmine, etc.) - Typescript build process now targets ES2018 and instead of dual ES5/ES6 - Browser bundle process uses ESBuild instead of Rollup - New TensorFlow/JS dependencies since backends were removed from @tensorflow/tfjs-core - Updated mobileNetv1 model due to batchNorm() dependency - Fully tree shakable when imported as an ESM module - Added `version` class that returns JSON object with version of FaceAPI as well as linked TFJS - Added calls for `setPlatform` to automatically prepare TFJS in browser - Removed following models as they are either obsolete or non-functional with tfjs 2.0+ - mtcnn: Mostly obsolete - tinyYolov2: Non-functional since weights are missing Which means valid models are **tinyFaceDetector** and **mobileNetv1** Due to reduced code and changed build process, resulting bundle is about **>5x smaller** than the original! ## Installation There are several ways to use Face-API: ### IIFE script *Size: 936KB minified* This is simplest way for usage within Browser as it includes full version of TensorFlow/JS prepackaged with no external dependencies. Simply include this in your `HTML` file and it's ready to use. ```html