mirror of https://github.com/vladmandic/human
add benchmark info
parent
296501cbf8
commit
79bb653409
1
TODO.md
1
TODO.md
|
@ -6,6 +6,7 @@ WebGL shader optimizations for faster load and initial detection
|
||||||
|
|
||||||
- Implement WebGL uniforms for shaders: <https://github.com/tensorflow/tfjs/issues/5205>
|
- Implement WebGL uniforms for shaders: <https://github.com/tensorflow/tfjs/issues/5205>
|
||||||
- Fix shader packing: <https://github.com/tensorflow/tfjs/issues/5343>
|
- Fix shader packing: <https://github.com/tensorflow/tfjs/issues/5343>
|
||||||
|
- Event emitters
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
"canvas": "^2.8.0",
|
"canvas": "^2.8.0",
|
||||||
"chokidar": "^3.5.2",
|
"chokidar": "^3.5.2",
|
||||||
"dayjs": "^1.10.6",
|
"dayjs": "^1.10.6",
|
||||||
"esbuild": "^0.12.24",
|
"esbuild": "^0.12.25",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-airbnb-base": "^14.2.1",
|
"eslint-config-airbnb-base": "^14.2.1",
|
||||||
"eslint-plugin-import": "^2.24.2",
|
"eslint-plugin-import": "^2.24.2",
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
"node-fetch": "^3.0.0",
|
"node-fetch": "^3.0.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"seedrandom": "^3.0.5",
|
"seedrandom": "^3.0.5",
|
||||||
"simple-git": "^2.45.0",
|
"simple-git": "^2.45.1",
|
||||||
"tslib": "^2.3.1",
|
"tslib": "^2.3.1",
|
||||||
"typedoc": "0.21.9",
|
"typedoc": "0.21.9",
|
||||||
"typescript": "4.4.2"
|
"typescript": "4.4.2"
|
||||||
|
|
|
@ -62,7 +62,7 @@ export type TensorFlow = typeof tf;
|
||||||
*/
|
*/
|
||||||
export class Human {
|
export class Human {
|
||||||
/** Current version of Human library in *semver* format */
|
/** Current version of Human library in *semver* format */
|
||||||
static version: string;
|
version: string;
|
||||||
/** Current configuration
|
/** Current configuration
|
||||||
* - Details: {@link Config}
|
* - Details: {@link Config}
|
||||||
*/
|
*/
|
||||||
|
@ -148,7 +148,7 @@ export class Human {
|
||||||
* @param userConfig: {@link Config}
|
* @param userConfig: {@link Config}
|
||||||
*/
|
*/
|
||||||
constructor(userConfig?: Config | Record<string, unknown>) {
|
constructor(userConfig?: Config | Record<string, unknown>) {
|
||||||
Human.version = app.version; // expose version property on instance of class
|
this.version = app.version; // expose version property on instance of class
|
||||||
Object.defineProperty(this, 'version', { value: app.version }); // expose version property directly on class itself
|
Object.defineProperty(this, 'version', { value: app.version }); // expose version property directly on class itself
|
||||||
defaults.wasmPath = `https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm@${tf.version_core}/dist/`;
|
defaults.wasmPath = `https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm@${tf.version_core}/dist/`;
|
||||||
this.config = mergeDeep(defaults, userConfig || {});
|
this.config = mergeDeep(defaults, userConfig || {});
|
||||||
|
@ -270,7 +270,7 @@ export class Human {
|
||||||
if (userConfig) this.config = mergeDeep(this.config, userConfig) as Config;
|
if (userConfig) this.config = mergeDeep(this.config, userConfig) as Config;
|
||||||
|
|
||||||
if (this.#firstRun) { // print version info on first run and check for correct backend setup
|
if (this.#firstRun) { // print version info on first run and check for correct backend setup
|
||||||
if (this.config.debug) log(`version: ${Human.version}`);
|
if (this.config.debug) log(`version: ${this.version}`);
|
||||||
if (this.config.debug) log(`tfjs version: ${this.tf.version_core}`);
|
if (this.config.debug) log(`tfjs version: ${this.tf.version_core}`);
|
||||||
if (this.config.debug) log('platform:', this.sysinfo.platform);
|
if (this.config.debug) log('platform:', this.sysinfo.platform);
|
||||||
if (this.config.debug) log('agent:', this.sysinfo.agent);
|
if (this.config.debug) log('agent:', this.sysinfo.agent);
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit 7f55fd1c8aea22f33a767da840147b15aeeed034
|
Subproject commit 82ce7a69656a11fa4cd5c5bea447cd1a2797b903
|
Loading…
Reference in New Issue