update tfjs to 3.1.0

pull/293/head
Vladimir Mandic 2021-02-17 10:22:38 -05:00
parent a34b677e75
commit c70b621d67
5 changed files with 47 additions and 27 deletions

18
human.service Normal file
View File

@ -0,0 +1,18 @@
[Unit]
Description=human
After=network.target network-online.target
[Service]
Type=simple
Environment="NODE_ENV=production"
ExecStart=/home/vlado/.nvm/versions/node/v15.7.0/bin/node server/serve.js
WorkingDirectory=/home/vlado/dev/human
StandardOutput=inherit
StandardError=inherit
Restart=always
RestartSec=300
User=vlado
StandardOutput=null
[Install]
WantedBy=multi-user.target

View File

@ -22,23 +22,23 @@
"dependencies": {}, "dependencies": {},
"peerDependencies": {}, "peerDependencies": {},
"devDependencies": { "devDependencies": {
"@tensorflow/tfjs": "^3.0.0", "@tensorflow/tfjs": "^3.1.0",
"@tensorflow/tfjs-backend-cpu": "^3.0.0", "@tensorflow/tfjs-backend-cpu": "^3.1.0",
"@tensorflow/tfjs-backend-wasm": "^3.0.0", "@tensorflow/tfjs-backend-wasm": "^3.1.0",
"@tensorflow/tfjs-backend-webgl": "^3.0.0", "@tensorflow/tfjs-backend-webgl": "^3.1.0",
"@tensorflow/tfjs-converter": "^3.0.0", "@tensorflow/tfjs-converter": "^3.1.0",
"@tensorflow/tfjs-core": "^3.0.0", "@tensorflow/tfjs-core": "^3.1.0",
"@tensorflow/tfjs-data": "^3.0.0", "@tensorflow/tfjs-data": "^3.1.0",
"@tensorflow/tfjs-layers": "^3.0.0", "@tensorflow/tfjs-layers": "^3.1.0",
"@tensorflow/tfjs-node": "^3.0.0", "@tensorflow/tfjs-node": "^3.1.0",
"@tensorflow/tfjs-node-gpu": "^3.0.0", "@tensorflow/tfjs-node-gpu": "^3.1.0",
"@types/node": "^14.14.27", "@types/node": "^14.14.28",
"@typescript-eslint/eslint-plugin": "^4.15.0", "@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.0", "@typescript-eslint/parser": "^4.15.1",
"@vladmandic/pilogger": "^0.2.14", "@vladmandic/pilogger": "^0.2.14",
"chokidar": "^3.5.1", "chokidar": "^3.5.1",
"dayjs": "^1.10.4", "dayjs": "^1.10.4",
"esbuild": "^0.8.45", "esbuild": "^0.8.46",
"eslint": "^7.20.0", "eslint": "^7.20.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",
@ -47,9 +47,9 @@
"eslint-plugin-promise": "^4.3.1", "eslint-plugin-promise": "^4.3.1",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"seedrandom": "^3.0.5", "seedrandom": "^3.0.5",
"simple-git": "^2.34.2", "simple-git": "^2.35.0",
"tslib": "^2.1.0", "tslib": "^2.1.0",
"typescript": "^4.3.0-dev.20210213" "typescript": "^4.3.0-dev.20210217"
}, },
"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",

View File

@ -43,6 +43,7 @@ function mergeDeep(...objects) {
class Human { class Human {
tf: any; tf: any;
package: any;
version: string; version: string;
config: any; config: any;
fx: any; fx: any;
@ -63,6 +64,7 @@ class Human {
constructor(userConfig = {}) { constructor(userConfig = {}) {
this.tf = tf; this.tf = tf;
this.package = app;
this.version = app.version; this.version = app.version;
this.config = mergeDeep(config.default, userConfig); this.config = mergeDeep(config.default, userConfig);
this.fx = null; this.fx = null;

View File

@ -10,11 +10,11 @@
// { modules: 1064, moduleBytes: 3793219, outputBytes: 1535600 } // { modules: 1064, moduleBytes: 3793219, outputBytes: 1535600 }
// get versions of all packages. // get versions of all packages.
import { version as tfjs } from '@tensorflow/tfjs/package.json'; import * as packageBundle from '@tensorflow/tfjs/package.json';
import { version as versionCore } from '@tensorflow/tfjs-core/package.json'; import * as packageCore from '@tensorflow/tfjs-core/package.json';
import { version as versionData } from '@tensorflow/tfjs-data/package.json'; import * as packageData from '@tensorflow/tfjs-data/package.json';
import { version as versionLayers } from '@tensorflow/tfjs-layers/package.json'; import * as packageLayers from '@tensorflow/tfjs-layers/package.json';
import { version as versionConverter } from '@tensorflow/tfjs-converter/package.json'; import * as packageConverter from '@tensorflow/tfjs-converter/package.json';
// for backends, get version from source so it can register backend during import // for backends, get version from source so it can register backend during import
import { version_cpu } from '@tensorflow/tfjs-backend-cpu/dist/index.js'; import { version_cpu } from '@tensorflow/tfjs-backend-cpu/dist/index.js';
import { version_webgl } from '@tensorflow/tfjs-backend-webgl/dist/index.js'; import { version_webgl } from '@tensorflow/tfjs-backend-webgl/dist/index.js';
@ -31,11 +31,11 @@ export * from '@tensorflow/tfjs-backend-wasm/dist/index.js';
// export versions // export versions
export const version = { export const version = {
tfjs, tfjs: packageBundle.version,
'tfjs-core': versionCore, 'tfjs-core': packageCore.version,
'tfjs-data': versionData, 'tfjs-data': packageData.version,
'tfjs-layers': versionLayers, 'tfjs-layers': packageLayers.version,
'tfjs-converter': versionConverter, 'tfjs-converter': packageConverter.version,
'tfjs-backend-cpu': version_cpu, 'tfjs-backend-cpu': version_cpu,
'tfjs-backend-webgl': version_webgl, 'tfjs-backend-webgl': version_webgl,
'tfjs-backend-wasm': version_wasm, 'tfjs-backend-wasm': version_wasm,

2
wiki

@ -1 +1 @@
Subproject commit 94e5f4cdd622f7de1580e8ef87b8d15d50af92df Subproject commit b7cfba497d975a86b558a7eeb612ad453b21b5d3