face-api/README.md

50 lines
1.9 KiB
Markdown
Raw Normal View History

2020-08-18 13:54:53 +02:00
# FaceAPI
2020-08-22 18:13:02 +02:00
Forked from **face-api.js** version **0.22.2** released on March 22nd, 2020
- <https://github.com/justadudewhohacks/face-api.js>
- <https://www.npmjs.com/package/face-api.js>
2020-08-18 13:54:53 +02:00
## Note
2020-08-18 14:06:04 +02:00
I don't plan to maintain a separate distribution of **face-api.js**, this is only a temporary repository to use latest available face-api with latest available tensorflow/js as original face-api.js is not compatible with **tfjs 2.0+**.
2020-08-18 13:54:53 +02:00
If original repository is updated, this one will become obsolete.
## Differences
- Removed tests, docs, examples
- Updated all package dependencies
- Modified to make compatible with TensorFlow/JS 2.0+
2020-08-22 18:13:02 +02:00
- Trivial code changes for updated TypeScript type checking
- Removed unnecesary package dependencies (karma, jasmine, etc.)
- Updated Typescript build process to target ES2018 instead of dual ES5/ES6
2020-08-18 13:54:53 +02:00
- Changed browser bundle process to use ESBuild instead of Rollup
2020-08-22 18:13:02 +02:00
- Updated dependencies to @tensorflow/tfjs since backends were removed from @tensorflow/tfjs-core
2020-08-26 18:43:33 +02:00
- Updated mobileNetv1 model due to batchNorm() dependency
2020-08-18 13:54:53 +02:00
- 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
2020-08-26 00:24:48 +02:00
Which means valid models are **tinyFaceDetector** and **mobileNetv1**
Due to reduced code and changed build process, resulting bundle is about **2x smaller** than the original!
## Weights
Pretrained models are includes in `./weights` and uplodaed using GIT LFS support.
2020-08-18 14:01:56 +02:00
## Build
2020-08-22 18:13:02 +02:00
Both `./build` and `./dist` folders are included by default, so no need for build during install.
2020-08-18 14:01:56 +02:00
However, if you want to rebuild use:
```shell
npm run build
```
2020-08-22 18:13:02 +02:00
Which will compile everything in `./src` into `./build` and create both standard and minified bundles as well as a sourcemap in `./dist`
2020-08-18 13:54:53 +02:00
## Documentation
For documentation refer to original project