forked from huan/node-facenet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
139 lines (139 loc) · 5.44 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"name": "facenet",
"version": "0.7.26",
"description": "Solve face verification, recognition and clustering problems: a TensorFlow backed FaceNet implementation for Node.js.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"dependencies": {
"@types/ndarray": "^1.0.5",
"argparse": "^1.0.9",
"blessed": "^0.1.81",
"blessed-contrib": "github:zixia/blessed-contrib#patch-1",
"brolog": "^1.2.4",
"canvas": "^2.0.0-alpha.11",
"chinese-whispers": "^0.1.3",
"glob": "^7.1.2",
"mkdirp": "^0.5.1",
"printf": "^0.2.5",
"python-bridge": "^1.0.3",
"rimraf": "^2.6.1",
"tar": "^4.0.1",
"update-notifier": "^2.3.0"
},
"peerDependencies": {
"flash-store": "^0.1.2",
"numjs": "^0.14"
},
"devDependencies": {
"@types/app-root-path": "^1.2.4",
"@types/argparse": "^1.0.31",
"@types/blessed": "^0.1.6",
"@types/blue-tape": "^0.1.31",
"@types/glob": "^5.0.32",
"@types/gm": "^1.17.31",
"@types/mkdirp": "^0.5.1",
"@types/node": "^9.3.0",
"@types/numjs": "^0.14.0",
"@types/printf": "^0.2.0",
"@types/rimraf": "^2.0.2",
"@types/sinon": "^4.0.0",
"@types/sinon-test": "^1.0.2",
"@types/tape": "^4.2.30",
"@types/tar": "^4.0.0",
"@types/update-notifier": "^2.0.0",
"blue-tape": "^1.0.0",
"coveralls": "^3.0.0",
"cross-env": "^5.0.5",
"eslint": "^4.7.2",
"flash-store": "^0.1.2",
"gm": "^1.23.0",
"jsdoc-to-markdown": "^4.0.0",
"numjs": "^0.15.0",
"nyc": "^11.1.0",
"shx": "^0.2.2",
"sinon": "^4.1.0",
"sinon-test": "^2.1.1",
"tape": "^4.8.0",
"ts-node": "^5.0.0",
"tslint": "^5.7.0",
"typescript": "^2.6.1"
},
"scripts": {
"check-version": "./bin/check-version.sh",
"clean": "npm run clean:dist && npm run clean:python3 && npm run clean:models",
"clean:dist": "shx rm -fr dist/*",
"clean:python3": "shx rm -fr python3/*",
"clean:models": "shx rm -fr models/*",
"dist": "npm run clean:dist && tsc && shx cp src/python3/*.py dist/src/python3/",
"doc": "npm run dist && echo '# Facenet v'$(jq -r .version package.json)' Documentation\n' > docs/index.md && jsdoc2md dist/src/{facenet.js,face.js,} >> docs/index.md",
"demo": "npm run example:demo",
"example:demo": "ts-node examples/demo.ts",
"example:visualize": "ts-node examples/visualize",
"lint": "npm run lint:ts && npm run lint:py",
"lint:ts": "tslint --project tsconfig.json && npm run clean:dist && tsc --noEmit",
"lint:py": ". python3/bin/activate && PYTHONPATH='src/:python3/facenet/src/' pylint --contextmanager-decorators=contextlib.contextmanager,tf_contextlib.contextmanager src/python3/*.py && npm run lint:flake8 && npm run lint:mypy",
"lint:flake8": "flake8 src/python3/*.py",
"lint:mypy": "mypy --disallow-untyped-defs src/python3/*.py",
"manager": "npm run facenet-manager",
"facenet-manager": "ts-node bin/facenet-manager",
"preinstall": "npm run check-version",
"postinstall": "npm run venv && npm run postinstall:facenet && npm run postinstall:models",
"postinstall:facenet": "cd python3 && if [ -d facenet ]; then (cd facenet && git pull); else git clone https://github.com/davidsandberg/facenet.git; fi && cd -",
"postinstall:models": "set -e && if [ ! -d models ]; then mkdir models; fi && cd models && if [ ! -e model.tar.bz2 -a ! -e model-*.meta ]; then curl --silent --location --output model.tar.bz2.tmp https://github.com/zixia/node-facenet/releases/download/v0.1.9/model-20170512.tar.bz2; mv model.tar.bz2.tmp model.tar.bz2; fi && if [ ! -f model-*.meta ]; then tar jxvf model.tar.bz2; rm -f model.tar.bz2; fi && cd -",
"start": "echo `npm run demo` to show a demo.",
"test": "npm run check-version && npm run lint && npm run test:py && npm run test:ts",
"test:coverage": "nyc report --reporter=text-lcov | coveralls",
"test:ts": "tape -r ts-node/register -r source-map-support/register \"src/**/*.spec.ts\" \"tests/**/*.spec.ts\"",
"test:py": ". python3/bin/activate && PYTHONPATH='src/:python3/facenet/src/' pytest src/ tests/",
"test:pack": "cross-env-shell TMPDIR=/tmp/npm-package-test.$$ 'npm run dist && npm pack && mkdir $TMPDIR && mv *-*.*.*.tgz $TMPDIR && cp tests/fixtures/smoke-testing.js $TMPDIR && cd $TMPDIR && npm init -y && npm i *-*.*.*.tgz numjs flash-store && node smoke-testing.js'",
"venv": "python3 -m venv python3 && . python3/bin/activate && pip3 install -r requirements.txt && pip3 install --upgrade numpy >/dev/stdout"
},
"repository": {
"type": "git",
"url": "git+https://github.com/zixia/node-facenet.git"
},
"keywords": [
"facenet",
"openface",
"deepface",
"face",
"recognition",
"verification",
"clustering",
"machine",
"deep",
"learning",
"neural",
"network",
"tensorflow"
],
"author": "Huan LI <[email protected]>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/zixia/node-facenet/issues"
},
"homepage": "https://github.com/zixia/node-facenet#readme",
"files": [
"bin/",
"dist/",
"src/",
"CHANGELOG",
"docs/images/facenet-icon.png",
"LICENSE",
"package.json",
"README.md",
"requirements.txt"
],
"bin": {
"facenet-manager": "dist/bin/facenet-manager.js"
},
"facenet": {
"env": {
"PYTHON_FACENET_MODEL_PATH": "models/",
"PYTHON_FACENET_MODEL_URL": "https://github.com/zixia/node-facenet/releases/download/v0.1.9/model-20170512.tar.bz2"
}
},
"engines": {
"node": ">= 7"
}
}