reduce bundle size
parent
519e346f02
commit
d13586f549
122
CHANGELOG.md
122
CHANGELOG.md
|
@ -1,19 +1,19 @@
|
|||
# @vladmandic/face-api
|
||||
# packageJson
|
||||
|
||||
Version: **1.5.2**
|
||||
Description: **FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS**
|
||||
Version: **undefined**
|
||||
Description: **undefined**
|
||||
|
||||
Author: **Vladimir Mandic <mandic00@live.com>**
|
||||
License: **MIT**
|
||||
Author: **undefined**
|
||||
License: **undefined**
|
||||
Repository: **<https://github.com/vladmandic/face-api>**
|
||||
|
||||
## Changelog
|
||||
|
||||
### **HEAD -> master** 2021/09/10 mandic00@live.com
|
||||
|
||||
|
||||
### **1.5.2** 2021/09/10 mandic00@live.com
|
||||
|
||||
|
||||
### **origin/master** 2021/09/08 mandic00@live.com
|
||||
|
||||
- redesign build platform
|
||||
|
||||
### **1.5.1** 2021/09/08 mandic00@live.com
|
||||
|
@ -123,61 +123,111 @@
|
|||
|
||||
- add badges
|
||||
- optimize for npm
|
||||
- 0.30.6
|
||||
|
||||
### **0.30.6** 2021/03/08 mandic00@live.com
|
||||
|
||||
- added typings for face angle
|
||||
- disable landmark printing
|
||||
- 0.30.5
|
||||
|
||||
### **0.30.5** 2021/03/07 mandic00@live.com
|
||||
|
||||
- enabled live demo on gitpages
|
||||
- 0.30.4
|
||||
|
||||
### **0.30.4** 2021/03/07 mandic00@live.com
|
||||
|
||||
- added face angle calculations
|
||||
- added documentation
|
||||
- package update
|
||||
- 0.30.3
|
||||
- 0.30.2
|
||||
- 0.30.1
|
||||
- 0.13.3
|
||||
|
||||
### **0.30.3** 2021/03/04 mandic00@live.com
|
||||
|
||||
|
||||
### **0.30.2** 2021/02/26 mandic00@live.com
|
||||
|
||||
|
||||
### **0.30.1** 2021/02/25 mandic00@live.com
|
||||
|
||||
|
||||
### **0.13.3** 2021/02/21 mandic00@live.com
|
||||
|
||||
- added note-cpu target
|
||||
- merge pull request #39 from xemle/feature/node-cpu
|
||||
- add node-cpu build for non supported systems of libtensorflow
|
||||
- 0.13.2
|
||||
- 0.13.1
|
||||
- 0.12.10
|
||||
- exception handling
|
||||
- 0.12.9
|
||||
- exception handling
|
||||
- 0.12.8
|
||||
|
||||
### **0.13.2** 2021/02/20 mandic00@live.com
|
||||
|
||||
|
||||
### **0.13.1** 2021/02/20 mandic00@live.com
|
||||
|
||||
|
||||
### **0.12.10** 2021/02/20 mandic00@live.com
|
||||
|
||||
- exception handling
|
||||
|
||||
### **0.12.9** 2021/02/20 mandic00@live.com
|
||||
|
||||
|
||||
### **0.12.8** 2021/02/20 mandic00@live.com
|
||||
|
||||
|
||||
### **0.12.7** 2021/02/17 mandic00@live.com
|
||||
|
||||
- 0.12.7
|
||||
- 0.12.6
|
||||
- 0.12.5
|
||||
- 0.12.4
|
||||
- 0.12.3
|
||||
- 0.12.2
|
||||
|
||||
### **0.12.6** 2021/02/13 mandic00@live.com
|
||||
|
||||
|
||||
### **0.12.5** 2021/02/12 mandic00@live.com
|
||||
|
||||
|
||||
### **0.12.4** 2021/02/06 mandic00@live.com
|
||||
|
||||
|
||||
### **0.12.3** 2021/02/06 mandic00@live.com
|
||||
|
||||
|
||||
### **0.12.2** 2021/02/02 mandic00@live.com
|
||||
|
||||
|
||||
### **update for tfjs 3.0.0** 2021/01/29 mandic00@live.com
|
||||
|
||||
- 0.12.1
|
||||
|
||||
### **0.12.1** 2021/01/29 mandic00@live.com
|
||||
|
||||
- rebuild
|
||||
- 0.11.6
|
||||
|
||||
### **0.11.6** 2021/01/24 mandic00@live.com
|
||||
|
||||
- add check for null face descriptor
|
||||
- merge pull request #34 from patrickhulce/patch-1
|
||||
- fix: return empty descriptor for zero-sized faces
|
||||
- 0.11.5
|
||||
- 0.11.4
|
||||
- 0.11.3
|
||||
|
||||
### **0.11.5** 2021/01/22 mandic00@live.com
|
||||
|
||||
|
||||
### **0.11.4** 2021/01/22 mandic00@live.com
|
||||
|
||||
|
||||
### **0.11.3** 2021/01/20 mandic00@live.com
|
||||
|
||||
- fix typo
|
||||
- enable full minification
|
||||
- 0.11.2
|
||||
|
||||
### **0.11.2** 2021/01/12 mandic00@live.com
|
||||
|
||||
- full rebuild
|
||||
- 0.11.1
|
||||
|
||||
### **0.11.1** 2021/01/10 mandic00@live.com
|
||||
|
||||
- added live webcam demo
|
||||
- 0.10.2
|
||||
|
||||
### **0.10.2** 2021/01/03 mandic00@live.com
|
||||
|
||||
- ts linting
|
||||
- version bump
|
||||
- 0.10.1
|
||||
|
||||
### **0.10.1** 2020/12/23 mandic00@live.com
|
||||
|
||||
- full re-lint and typings generation
|
||||
- rebuild
|
||||
|
||||
|
|
|
@ -133,8 +133,6 @@ Simply include latest version of `FaceAPI` directly from a CDN in your HTML:
|
|||
*without* TFJS pre-bundled
|
||||
- `dist/face-api.node-gpu.js`: CommonJS format for server-side NodeJS execution
|
||||
*without* TFJS pre-bundled and optimized for CUDA GPU acceleration
|
||||
- `dist/face-api.node-cpu.js`: CommonJS format for server-side NodeJS execution
|
||||
*without* TFJS pre-bundled and using JS engine for platforms where tensorflow binary library version is not available
|
||||
|
||||
Defaults are:
|
||||
|
||||
|
|
45
build.json
45
build.json
|
@ -3,23 +3,23 @@
|
|||
"enabled": false,
|
||||
"debug": false,
|
||||
"console": true,
|
||||
"output": "dev-server.log"
|
||||
"output": "build.log"
|
||||
},
|
||||
"profiles": {
|
||||
"production": ["clean", "compile", "typings", "typedoc", "lint", "changelog"],
|
||||
"development": ["serve", "watch", "compile"]
|
||||
},
|
||||
"clean": {
|
||||
"enabled": true,
|
||||
"locations": ["dist/*", "types/*", "typedoc/*"]
|
||||
},
|
||||
"lint": {
|
||||
"enabled": true,
|
||||
"locations": [ "src/**" ],
|
||||
"rules": { }
|
||||
},
|
||||
"changelog": {
|
||||
"enabled": true,
|
||||
"log": "CHANGELOG.md"
|
||||
},
|
||||
"serve": {
|
||||
"enabled": true,
|
||||
"sslKey": "cert/https.key",
|
||||
"sslCrt": "cert/https.crt",
|
||||
"httpPort": 8000,
|
||||
|
@ -29,20 +29,14 @@
|
|||
"defaultFile": "index.html"
|
||||
},
|
||||
"build": {
|
||||
"enabled": true,
|
||||
"global": {
|
||||
"target": "es2018",
|
||||
"sourcemap": true,
|
||||
"sourcemap": false,
|
||||
"banner": { "js": "/*\n Face-API\n homepage: <https://github.com/vladmandic/face-api>\n author: <https://github.com/vladmandic>'\n*/\n" }
|
||||
},
|
||||
"production": {
|
||||
"minify": false
|
||||
},
|
||||
"development": {
|
||||
"minify": false
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"name": "tfjs/node/cpu",
|
||||
"platform": "node",
|
||||
"format": "cjs",
|
||||
"input": "src/tfjs/tf-node.ts",
|
||||
|
@ -50,6 +44,7 @@
|
|||
"external": ["@tensorflow"]
|
||||
},
|
||||
{
|
||||
"name": "faceapi/node/cpu",
|
||||
"platform": "node",
|
||||
"format": "cjs",
|
||||
"input": "src/index.ts",
|
||||
|
@ -57,6 +52,7 @@
|
|||
"external": ["@tensorflow"]
|
||||
},
|
||||
{
|
||||
"name": "tfjs/node/gpu",
|
||||
"platform": "node",
|
||||
"format": "cjs",
|
||||
"input": "src/tfjs/tf-node-gpu.ts",
|
||||
|
@ -64,6 +60,7 @@
|
|||
"external": ["@tensorflow"]
|
||||
},
|
||||
{
|
||||
"name": "faceapi/node/gpu",
|
||||
"platform": "node",
|
||||
"format": "cjs",
|
||||
"input": "src/index.ts",
|
||||
|
@ -71,20 +68,7 @@
|
|||
"external": ["@tensorflow"]
|
||||
},
|
||||
{
|
||||
"platform": "node",
|
||||
"format": "cjs",
|
||||
"input": "src/tfjs/tf-node-cpu.ts",
|
||||
"output": "dist/tfjs.esm.js",
|
||||
"external": ["@tensorflow"]
|
||||
},
|
||||
{
|
||||
"platform": "node",
|
||||
"format": "cjs",
|
||||
"input": "src/index.ts",
|
||||
"output": "dist/face-api.node-cpu.js",
|
||||
"external": ["@tensorflow"]
|
||||
},
|
||||
{
|
||||
"name": "tfjs/browser/esm/nobundle",
|
||||
"platform": "browser",
|
||||
"format": "esm",
|
||||
"input": "src/tfjs/tf-browser.ts",
|
||||
|
@ -92,6 +76,7 @@
|
|||
"external": ["fs","buffer","util","os","@tensorflow"]
|
||||
},
|
||||
{
|
||||
"name": "faceapi/browser/esm/nobundle",
|
||||
"platform": "browser",
|
||||
"format": "esm",
|
||||
"input": "src/index.ts",
|
||||
|
@ -99,23 +84,29 @@
|
|||
"external": ["fs","buffer","util","os","@tensorflow","tfjs.esm.js"]
|
||||
},
|
||||
{
|
||||
"name": "tfjs/browser/esm/bundle",
|
||||
"platform": "browser",
|
||||
"format": "esm",
|
||||
"sourcemap": true,
|
||||
"input": "src/tfjs/tf-browser.ts",
|
||||
"output": "dist/tfjs.esm.js",
|
||||
"external": ["fs","buffer","util","os"]
|
||||
},
|
||||
{
|
||||
"name": "faceapi/browser/iife/bundle",
|
||||
"platform": "browser",
|
||||
"format": "iife",
|
||||
"globalName": "faceapi",
|
||||
"minify": true,
|
||||
"input": "src/index.ts",
|
||||
"output": "dist/face-api.js",
|
||||
"external": ["fs","buffer","util","os"]
|
||||
},
|
||||
{
|
||||
"name": "faceapi/browser/esm/bundle",
|
||||
"platform": "browser",
|
||||
"format": "esm",
|
||||
"sourcemap": true,
|
||||
"input": "src/index.ts",
|
||||
"output": "dist/face-api.esm.js",
|
||||
"external": ["fs","buffer","util","os"],
|
||||
|
|
|
@ -4520,4 +4520,3 @@ export {
|
|||
validateConfig,
|
||||
version3 as version
|
||||
};
|
||||
//# sourceMappingURL=face-api.esm-nobundle.js.map
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -4723,4 +4723,3 @@ if (browser3) {
|
|||
validateConfig,
|
||||
version
|
||||
});
|
||||
//# sourceMappingURL=face-api.node-gpu.js.map
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4723,4 +4723,3 @@ if (browser3) {
|
|||
validateConfig,
|
||||
version
|
||||
});
|
||||
//# sourceMappingURL=face-api.node.js.map
|
||||
|
|
File diff suppressed because one or more lines are too long
19
package.json
19
package.json
|
@ -22,8 +22,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start": "node --no-warnings demo/node.js",
|
||||
"dev": "build development",
|
||||
"build": "build production",
|
||||
"dev": "build --profile development",
|
||||
"build": "build --profile production",
|
||||
"test": "node --trace-warnings test/test-node.js",
|
||||
"scan": "npx auditjs@latest ossi --dev --quiet"
|
||||
},
|
||||
|
@ -42,6 +42,7 @@
|
|||
],
|
||||
"devDependencies": {
|
||||
"@canvas/image": "^1.0.1",
|
||||
"@tensorflow/tfjs": "^3.9.0",
|
||||
"@tensorflow/tfjs-backend-cpu": "^3.9.0",
|
||||
"@tensorflow/tfjs-backend-wasm": "^3.9.0",
|
||||
"@tensorflow/tfjs-backend-webgl": "^3.9.0",
|
||||
|
@ -49,31 +50,29 @@
|
|||
"@tensorflow/tfjs-core": "^3.9.0",
|
||||
"@tensorflow/tfjs-data": "^3.9.0",
|
||||
"@tensorflow/tfjs-layers": "^3.9.0",
|
||||
"@tensorflow/tfjs-node-gpu": "^3.9.0",
|
||||
"@tensorflow/tfjs-node": "^3.9.0",
|
||||
"@tensorflow/tfjs": "^3.9.0",
|
||||
"@tensorflow/tfjs-node-gpu": "^3.9.0",
|
||||
"@types/node": "^16.9.1",
|
||||
"@typescript-eslint/eslint-plugin": "^4.31.0",
|
||||
"@typescript-eslint/parser": "^4.31.0",
|
||||
"@vladmandic/build": "^0.3.3",
|
||||
"@vladmandic/build": "^0.4.1",
|
||||
"@vladmandic/pilogger": "^0.3.1",
|
||||
"canvas": "^2.8.0",
|
||||
"chokidar": "^3.5.2",
|
||||
"dayjs": "^1.10.7",
|
||||
"esbuild": "^0.12.26",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-airbnb-base": "^14.2.1",
|
||||
"eslint-plugin-import": "^2.24.2",
|
||||
"eslint-plugin-json": "^3.1.0",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^5.1.0",
|
||||
"eslint": "^7.32.0",
|
||||
"node-fetch": "^3.0.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"seedrandom": "^3.0.5",
|
||||
"simple-git": "^2.45.1",
|
||||
"tslib": "^2.3.1",
|
||||
"typedoc": "^0.21.9",
|
||||
"typescript": "4.4.2"
|
||||
},
|
||||
"dependencies": {}
|
||||
"typedoc": "^0.22.2",
|
||||
"typescript": "4.4.3"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue