mirror of https://github.com/vladmandic/human
change default ports
parent
6ce691e880
commit
409e6749c0
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 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 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
|
@ -36,7 +36,7 @@
|
||||||
"imports": []
|
"imports": []
|
||||||
},
|
},
|
||||||
"src/face/facepipeline.js": {
|
"src/face/facepipeline.js": {
|
||||||
"bytes": 13856,
|
"bytes": 13836,
|
||||||
"imports": [
|
"imports": [
|
||||||
{
|
{
|
||||||
"path": "dist/tfjs.esm.js"
|
"path": "dist/tfjs.esm.js"
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"src/age/age.js": {
|
"src/age/age.js": {
|
||||||
"bytes": 1943,
|
"bytes": 2017,
|
||||||
"imports": [
|
"imports": [
|
||||||
{
|
{
|
||||||
"path": "src/log.js"
|
"path": "src/log.js"
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"src/gender/gender.js": {
|
"src/gender/gender.js": {
|
||||||
"bytes": 3384,
|
"bytes": 2886,
|
||||||
"imports": [
|
"imports": [
|
||||||
{
|
{
|
||||||
"path": "src/log.js"
|
"path": "src/log.js"
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"src/emotion/emotion.js": {
|
"src/emotion/emotion.js": {
|
||||||
"bytes": 2981,
|
"bytes": 3055,
|
||||||
"imports": [
|
"imports": [
|
||||||
{
|
{
|
||||||
"path": "src/log.js"
|
"path": "src/log.js"
|
||||||
|
@ -264,7 +264,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"src/hand/handdetector.js": {
|
"src/hand/handdetector.js": {
|
||||||
"bytes": 4252,
|
"bytes": 4253,
|
||||||
"imports": [
|
"imports": [
|
||||||
{
|
{
|
||||||
"path": "dist/tfjs.esm.js"
|
"path": "dist/tfjs.esm.js"
|
||||||
|
@ -279,7 +279,7 @@
|
||||||
"imports": []
|
"imports": []
|
||||||
},
|
},
|
||||||
"src/hand/handpipeline.js": {
|
"src/hand/handpipeline.js": {
|
||||||
"bytes": 7923,
|
"bytes": 7886,
|
||||||
"imports": [
|
"imports": [
|
||||||
{
|
{
|
||||||
"path": "dist/tfjs.esm.js"
|
"path": "dist/tfjs.esm.js"
|
||||||
|
@ -342,7 +342,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"config.js": {
|
"config.js": {
|
||||||
"bytes": 8990,
|
"bytes": 9243,
|
||||||
"imports": []
|
"imports": []
|
||||||
},
|
},
|
||||||
"src/sample.js": {
|
"src/sample.js": {
|
||||||
|
@ -354,7 +354,7 @@
|
||||||
"imports": []
|
"imports": []
|
||||||
},
|
},
|
||||||
"src/human.js": {
|
"src/human.js": {
|
||||||
"bytes": 16524,
|
"bytes": 16894,
|
||||||
"imports": [
|
"imports": [
|
||||||
{
|
{
|
||||||
"path": "src/log.js"
|
"path": "src/log.js"
|
||||||
|
@ -408,7 +408,7 @@
|
||||||
"dist/human.node-gpu.js.map": {
|
"dist/human.node-gpu.js.map": {
|
||||||
"imports": [],
|
"imports": [],
|
||||||
"inputs": {},
|
"inputs": {},
|
||||||
"bytes": 755811
|
"bytes": 760521
|
||||||
},
|
},
|
||||||
"dist/human.node-gpu.js": {
|
"dist/human.node-gpu.js": {
|
||||||
"imports": [],
|
"imports": [],
|
||||||
|
@ -430,7 +430,7 @@
|
||||||
"bytesInOutput": 30828
|
"bytesInOutput": 30828
|
||||||
},
|
},
|
||||||
"src/face/facepipeline.js": {
|
"src/face/facepipeline.js": {
|
||||||
"bytesInOutput": 9371
|
"bytesInOutput": 9364
|
||||||
},
|
},
|
||||||
"src/face/facemesh.js": {
|
"src/face/facemesh.js": {
|
||||||
"bytesInOutput": 2225
|
"bytesInOutput": 2225
|
||||||
|
@ -439,13 +439,13 @@
|
||||||
"bytesInOutput": 846
|
"bytesInOutput": 846
|
||||||
},
|
},
|
||||||
"src/age/age.js": {
|
"src/age/age.js": {
|
||||||
"bytesInOutput": 1166
|
"bytesInOutput": 1227
|
||||||
},
|
},
|
||||||
"src/gender/gender.js": {
|
"src/gender/gender.js": {
|
||||||
"bytesInOutput": 1936
|
"bytesInOutput": 1997
|
||||||
},
|
},
|
||||||
"src/emotion/emotion.js": {
|
"src/emotion/emotion.js": {
|
||||||
"bytesInOutput": 1809
|
"bytesInOutput": 1870
|
||||||
},
|
},
|
||||||
"src/embedding/embedding.js": {
|
"src/embedding/embedding.js": {
|
||||||
"bytesInOutput": 1361
|
"bytesInOutput": 1361
|
||||||
|
@ -484,10 +484,10 @@
|
||||||
"bytesInOutput": 846
|
"bytesInOutput": 846
|
||||||
},
|
},
|
||||||
"src/hand/handdetector.js": {
|
"src/hand/handdetector.js": {
|
||||||
"bytesInOutput": 2868
|
"bytesInOutput": 2869
|
||||||
},
|
},
|
||||||
"src/hand/handpipeline.js": {
|
"src/hand/handpipeline.js": {
|
||||||
"bytesInOutput": 4500
|
"bytesInOutput": 4491
|
||||||
},
|
},
|
||||||
"src/hand/anchors.js": {
|
"src/hand/anchors.js": {
|
||||||
"bytesInOutput": 127034
|
"bytesInOutput": 127034
|
||||||
|
@ -505,7 +505,7 @@
|
||||||
"bytesInOutput": 4037
|
"bytesInOutput": 4037
|
||||||
},
|
},
|
||||||
"src/human.js": {
|
"src/human.js": {
|
||||||
"bytesInOutput": 10993
|
"bytesInOutput": 11159
|
||||||
},
|
},
|
||||||
"src/log.js": {
|
"src/log.js": {
|
||||||
"bytesInOutput": 266
|
"bytesInOutput": 266
|
||||||
|
@ -517,16 +517,16 @@
|
||||||
"bytesInOutput": 1790
|
"bytesInOutput": 1790
|
||||||
},
|
},
|
||||||
"config.js": {
|
"config.js": {
|
||||||
"bytesInOutput": 1440
|
"bytesInOutput": 1454
|
||||||
},
|
},
|
||||||
"src/sample.js": {
|
"src/sample.js": {
|
||||||
"bytesInOutput": 11646
|
"bytesInOutput": 55341
|
||||||
},
|
},
|
||||||
"package.json": {
|
"package.json": {
|
||||||
"bytesInOutput": 20
|
"bytesInOutput": 20
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bytes": 261473
|
"bytes": 305516
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -806,9 +806,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"esbuild": {
|
"esbuild": {
|
||||||
"version": "0.8.21",
|
"version": "0.8.22",
|
||||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.8.21.tgz",
|
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.8.22.tgz",
|
||||||
"integrity": "sha512-vRRx5MZmiekw2R7jK5BppvBUFCJA0Zkl0wYxrDmyUvMPBcQC/xJvxJUM4R+Hgjgb3gp5P1W655AsuoqDeQQDVw==",
|
"integrity": "sha512-7cgcJwjff5pw6JLTpUyN3QZ6raOYamfvBt7ry0tyGZwZJ/W8mJrHuv+VC5rbNEO4Mz8s8ElmcavKc7R2g1HWow==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"escalade": {
|
"escalade": {
|
||||||
|
@ -2258,9 +2258,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"simple-git": {
|
"simple-git": {
|
||||||
"version": "2.26.0",
|
"version": "2.27.0",
|
||||||
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.26.0.tgz",
|
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.27.0.tgz",
|
||||||
"integrity": "sha512-I9QIjBNA773X23SZ/S1HFMCA+S//san83Twyd5ffWFjo/sv8VRk7tuck23y1uFWuzTu4KTwDh5LEXyCfEfOWMw==",
|
"integrity": "sha512-/Q4aolzErYrIx6SgyH421jmtv5l1DaAw+KYWMWy229+isW6yld/nHGxJ2xUR/aeX3SuYJnbucyUigERwaw4Xow==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@kwsites/file-exists": "^1.1.1",
|
"@kwsites/file-exists": "^1.1.1",
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
"@vladmandic/pilogger": "^0.2.9",
|
"@vladmandic/pilogger": "^0.2.9",
|
||||||
"chokidar": "^3.4.3",
|
"chokidar": "^3.4.3",
|
||||||
"dayjs": "^1.9.7",
|
"dayjs": "^1.9.7",
|
||||||
"esbuild": "^0.8.21",
|
"esbuild": "^0.8.22",
|
||||||
"eslint": "^7.15.0",
|
"eslint": "^7.15.0",
|
||||||
"eslint-config-airbnb-base": "^14.2.1",
|
"eslint-config-airbnb-base": "^14.2.1",
|
||||||
"eslint-plugin-import": "^2.22.1",
|
"eslint-plugin-import": "^2.22.1",
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
"eslint-plugin-promise": "^4.2.1",
|
"eslint-plugin-promise": "^4.2.1",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"seedrandom": "^3.0.5",
|
"seedrandom": "^3.0.5",
|
||||||
"simple-git": "^2.26.0"
|
"simple-git": "^2.27.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node --trace-warnings --unhandled-rejections=strict --trace-uncaught --no-deprecation src/node.js",
|
"start": "node --trace-warnings --unhandled-rejections=strict --trace-uncaught --no-deprecation src/node.js",
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
const process = require('process');
|
const process = require('process');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const zlib = require('zlib');
|
const zlib = require('zlib');
|
||||||
|
const http = require('http');
|
||||||
const http2 = require('http2');
|
const http2 = require('http2');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const chokidar = require('chokidar');
|
const chokidar = require('chokidar');
|
||||||
|
@ -28,7 +29,8 @@ const options = {
|
||||||
cert: fs.readFileSync('server/https.crt'),
|
cert: fs.readFileSync('server/https.crt'),
|
||||||
root: '..',
|
root: '..',
|
||||||
default: 'demo/index.html',
|
default: 'demo/index.html',
|
||||||
port: 8000,
|
httpPort: 10030,
|
||||||
|
httpsPort: 10031,
|
||||||
monitor: ['package.json', 'config.js', 'demo', 'src'],
|
monitor: ['package.json', 'config.js', 'demo', 'src'],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -128,9 +130,12 @@ async function httpRequest(req, res) {
|
||||||
async function main() {
|
async function main() {
|
||||||
log.header();
|
log.header();
|
||||||
await watch();
|
await watch();
|
||||||
const server = http2.createSecureServer(options, httpRequest);
|
const server1 = http.createServer(options, httpRequest);
|
||||||
server.on('listening', () => log.state('HTTP2 server listening:', options.port));
|
server1.on('listening', () => log.state('HTTP server listening:', options.httpPort));
|
||||||
server.listen(options.port);
|
server1.listen(options.httpPort);
|
||||||
|
const server2 = http2.createSecureServer(options, httpRequest);
|
||||||
|
server2.on('listening', () => log.state('HTTP2 server listening:', options.httpsPort));
|
||||||
|
server2.listen(options.httpsPort);
|
||||||
await build.build('all', 'startup');
|
await build.build('all', 'startup');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit c4c8b30f6bf211ee267cf1884aaff9725f594631
|
Subproject commit d6c8004121fdeff63b8aaf19adc3b3ade6b11918
|
Loading…
Reference in New Issue