mirror of https://github.com/vladmandic/human
workaround for chrome offscreencanvas bug
parent
980285d363
commit
3f8bba584b
|
@ -1,3 +1,4 @@
|
||||||
node_modules
|
node_modules
|
||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
assets/tf*
|
assets/tf*
|
||||||
|
*.swp
|
||||||
|
|
|
@ -11,9 +11,8 @@
|
||||||
|
|
||||||
### **HEAD -> main** 2021/10/04 mandic00@live.com
|
### **HEAD -> main** 2021/10/04 mandic00@live.com
|
||||||
|
|
||||||
|
- add blazepose v2 and add annotations to body results
|
||||||
### **origin/main** 2021/10/03 mandic00@live.com
|
- fix backend order initialization
|
||||||
|
|
||||||
- added docker notes
|
- added docker notes
|
||||||
- breaking change: new similarity and match methods
|
- breaking change: new similarity and match methods
|
||||||
- release candidate
|
- release candidate
|
||||||
|
|
|
@ -499,7 +499,7 @@ function runHumanDetect(input, canvas, timestamp) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ui.hintsThread) clearInterval(ui.hintsThread);
|
if (ui.hintsThread) clearInterval(ui.hintsThread);
|
||||||
if (ui.useWorker) {
|
if (ui.useWorker && human.env.offscreen) {
|
||||||
// get image data from video as we cannot send html objects to webworker
|
// get image data from video as we cannot send html objects to webworker
|
||||||
const offscreen = (typeof OffscreenCanvas !== 'undefined') ? new OffscreenCanvas(canvas.width, canvas.height) : document.createElement('canvas');
|
const offscreen = (typeof OffscreenCanvas !== 'undefined') ? new OffscreenCanvas(canvas.width, canvas.height) : document.createElement('canvas');
|
||||||
offscreen.width = canvas.width;
|
offscreen.width = canvas.width;
|
||||||
|
|
|
@ -1008,7 +1008,6 @@ async function backendInfo() {
|
||||||
async function get() {
|
async function get() {
|
||||||
env2.browser = typeof navigator !== "undefined";
|
env2.browser = typeof navigator !== "undefined";
|
||||||
env2.node = typeof process !== "undefined";
|
env2.node = typeof process !== "undefined";
|
||||||
env2.worker = env2.browser ? typeof WorkerGlobalScope !== "undefined" : void 0;
|
|
||||||
env2.tfjs.version = tfjs_esm_exports.version_core;
|
env2.tfjs.version = tfjs_esm_exports.version_core;
|
||||||
env2.offscreen = typeof env2.offscreen === "undefined" ? typeof OffscreenCanvas !== "undefined" : env2.offscreen;
|
env2.offscreen = typeof env2.offscreen === "undefined" ? typeof OffscreenCanvas !== "undefined" : env2.offscreen;
|
||||||
if (typeof navigator !== "undefined") {
|
if (typeof navigator !== "undefined") {
|
||||||
|
@ -1020,11 +1019,18 @@ async function get() {
|
||||||
if (env2.platform[1])
|
if (env2.platform[1])
|
||||||
env2.agent = env2.agent.replace(raw[1], "");
|
env2.agent = env2.agent.replace(raw[1], "");
|
||||||
env2.agent = env2.agent.replace(/ /g, " ");
|
env2.agent = env2.agent.replace(/ /g, " ");
|
||||||
|
const isChrome = env2.agent.match(/Chrome\/.[0-9]/g);
|
||||||
|
const verChrome = isChrome && isChrome[0] ? isChrome[0].split("/")[1] : 0;
|
||||||
|
if (verChrome > 0 && verChrome > 92 && verChrome < 96) {
|
||||||
|
log("disabling offscreenCanvas due to browser error:", isChrome ? isChrome[0] : "unknown");
|
||||||
|
env2.offscreen = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (typeof process !== "undefined") {
|
} else if (typeof process !== "undefined") {
|
||||||
env2.platform = `${process.platform} ${process.arch}`;
|
env2.platform = `${process.platform} ${process.arch}`;
|
||||||
env2.agent = `NodeJS ${process.version}`;
|
env2.agent = `NodeJS ${process.version}`;
|
||||||
}
|
}
|
||||||
|
env2.worker = env2.browser && env2.offscreen ? typeof WorkerGlobalScope !== "undefined" : void 0;
|
||||||
await backendInfo();
|
await backendInfo();
|
||||||
}
|
}
|
||||||
async function set(obj) {
|
async function set(obj) {
|
||||||
|
@ -1042,6 +1048,8 @@ function canvas(width, height) {
|
||||||
if (env2.offscreen) {
|
if (env2.offscreen) {
|
||||||
c = new OffscreenCanvas(width, height);
|
c = new OffscreenCanvas(width, height);
|
||||||
} else {
|
} else {
|
||||||
|
if (typeof document === "undefined")
|
||||||
|
throw new Error("attempted to run in web worker but offscreenCanvas is not supported");
|
||||||
c = document.createElement("canvas");
|
c = document.createElement("canvas");
|
||||||
c.width = width;
|
c.width = width;
|
||||||
c.height = height;
|
c.height = height;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -61076,7 +61076,6 @@ async function backendInfo() {
|
||||||
async function get3() {
|
async function get3() {
|
||||||
env2.browser = typeof navigator !== "undefined";
|
env2.browser = typeof navigator !== "undefined";
|
||||||
env2.node = typeof process !== "undefined";
|
env2.node = typeof process !== "undefined";
|
||||||
env2.worker = env2.browser ? typeof WorkerGlobalScope !== "undefined" : void 0;
|
|
||||||
env2.tfjs.version = version;
|
env2.tfjs.version = version;
|
||||||
env2.offscreen = typeof env2.offscreen === "undefined" ? typeof OffscreenCanvas !== "undefined" : env2.offscreen;
|
env2.offscreen = typeof env2.offscreen === "undefined" ? typeof OffscreenCanvas !== "undefined" : env2.offscreen;
|
||||||
if (typeof navigator !== "undefined") {
|
if (typeof navigator !== "undefined") {
|
||||||
|
@ -61088,11 +61087,18 @@ async function get3() {
|
||||||
if (env2.platform[1])
|
if (env2.platform[1])
|
||||||
env2.agent = env2.agent.replace(raw[1], "");
|
env2.agent = env2.agent.replace(raw[1], "");
|
||||||
env2.agent = env2.agent.replace(/ /g, " ");
|
env2.agent = env2.agent.replace(/ /g, " ");
|
||||||
|
const isChrome = env2.agent.match(/Chrome\/.[0-9]/g);
|
||||||
|
const verChrome = isChrome && isChrome[0] ? isChrome[0].split("/")[1] : 0;
|
||||||
|
if (verChrome > 0 && verChrome > 92 && verChrome < 96) {
|
||||||
|
log("disabling offscreenCanvas due to browser error:", isChrome ? isChrome[0] : "unknown");
|
||||||
|
env2.offscreen = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (typeof process !== "undefined") {
|
} else if (typeof process !== "undefined") {
|
||||||
env2.platform = `${process.platform} ${process.arch}`;
|
env2.platform = `${process.platform} ${process.arch}`;
|
||||||
env2.agent = `NodeJS ${process.version}`;
|
env2.agent = `NodeJS ${process.version}`;
|
||||||
}
|
}
|
||||||
|
env2.worker = env2.browser && env2.offscreen ? typeof WorkerGlobalScope !== "undefined" : void 0;
|
||||||
await backendInfo();
|
await backendInfo();
|
||||||
}
|
}
|
||||||
async function set(obj) {
|
async function set(obj) {
|
||||||
|
@ -61110,6 +61116,8 @@ function canvas(width, height) {
|
||||||
if (env2.offscreen) {
|
if (env2.offscreen) {
|
||||||
c = new OffscreenCanvas(width, height);
|
c = new OffscreenCanvas(width, height);
|
||||||
} else {
|
} else {
|
||||||
|
if (typeof document === "undefined")
|
||||||
|
throw new Error("attempted to run in web worker but offscreenCanvas is not supported");
|
||||||
c = document.createElement("canvas");
|
c = document.createElement("canvas");
|
||||||
c.width = width;
|
c.width = width;
|
||||||
c.height = height;
|
c.height = height;
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1031,7 +1031,6 @@ async function backendInfo() {
|
||||||
async function get() {
|
async function get() {
|
||||||
env2.browser = typeof navigator !== "undefined";
|
env2.browser = typeof navigator !== "undefined";
|
||||||
env2.node = typeof process !== "undefined";
|
env2.node = typeof process !== "undefined";
|
||||||
env2.worker = env2.browser ? typeof WorkerGlobalScope !== "undefined" : void 0;
|
|
||||||
env2.tfjs.version = tf.version_core;
|
env2.tfjs.version = tf.version_core;
|
||||||
env2.offscreen = typeof env2.offscreen === "undefined" ? typeof OffscreenCanvas !== "undefined" : env2.offscreen;
|
env2.offscreen = typeof env2.offscreen === "undefined" ? typeof OffscreenCanvas !== "undefined" : env2.offscreen;
|
||||||
if (typeof navigator !== "undefined") {
|
if (typeof navigator !== "undefined") {
|
||||||
|
@ -1043,11 +1042,18 @@ async function get() {
|
||||||
if (env2.platform[1])
|
if (env2.platform[1])
|
||||||
env2.agent = env2.agent.replace(raw[1], "");
|
env2.agent = env2.agent.replace(raw[1], "");
|
||||||
env2.agent = env2.agent.replace(/ /g, " ");
|
env2.agent = env2.agent.replace(/ /g, " ");
|
||||||
|
const isChrome = env2.agent.match(/Chrome\/.[0-9]/g);
|
||||||
|
const verChrome = isChrome && isChrome[0] ? isChrome[0].split("/")[1] : 0;
|
||||||
|
if (verChrome > 0 && verChrome > 92 && verChrome < 96) {
|
||||||
|
log("disabling offscreenCanvas due to browser error:", isChrome ? isChrome[0] : "unknown");
|
||||||
|
env2.offscreen = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (typeof process !== "undefined") {
|
} else if (typeof process !== "undefined") {
|
||||||
env2.platform = `${process.platform} ${process.arch}`;
|
env2.platform = `${process.platform} ${process.arch}`;
|
||||||
env2.agent = `NodeJS ${process.version}`;
|
env2.agent = `NodeJS ${process.version}`;
|
||||||
}
|
}
|
||||||
|
env2.worker = env2.browser && env2.offscreen ? typeof WorkerGlobalScope !== "undefined" : void 0;
|
||||||
await backendInfo();
|
await backendInfo();
|
||||||
}
|
}
|
||||||
async function set(obj) {
|
async function set(obj) {
|
||||||
|
@ -1065,6 +1071,8 @@ function canvas(width, height) {
|
||||||
if (env2.offscreen) {
|
if (env2.offscreen) {
|
||||||
c = new OffscreenCanvas(width, height);
|
c = new OffscreenCanvas(width, height);
|
||||||
} else {
|
} else {
|
||||||
|
if (typeof document === "undefined")
|
||||||
|
throw new Error("attempted to run in web worker but offscreenCanvas is not supported");
|
||||||
c = document.createElement("canvas");
|
c = document.createElement("canvas");
|
||||||
c.width = width;
|
c.width = width;
|
||||||
c.height = height;
|
c.height = height;
|
||||||
|
|
|
@ -1032,7 +1032,6 @@ async function backendInfo() {
|
||||||
async function get() {
|
async function get() {
|
||||||
env2.browser = typeof navigator !== "undefined";
|
env2.browser = typeof navigator !== "undefined";
|
||||||
env2.node = typeof process !== "undefined";
|
env2.node = typeof process !== "undefined";
|
||||||
env2.worker = env2.browser ? typeof WorkerGlobalScope !== "undefined" : void 0;
|
|
||||||
env2.tfjs.version = tf.version_core;
|
env2.tfjs.version = tf.version_core;
|
||||||
env2.offscreen = typeof env2.offscreen === "undefined" ? typeof OffscreenCanvas !== "undefined" : env2.offscreen;
|
env2.offscreen = typeof env2.offscreen === "undefined" ? typeof OffscreenCanvas !== "undefined" : env2.offscreen;
|
||||||
if (typeof navigator !== "undefined") {
|
if (typeof navigator !== "undefined") {
|
||||||
|
@ -1044,11 +1043,18 @@ async function get() {
|
||||||
if (env2.platform[1])
|
if (env2.platform[1])
|
||||||
env2.agent = env2.agent.replace(raw[1], "");
|
env2.agent = env2.agent.replace(raw[1], "");
|
||||||
env2.agent = env2.agent.replace(/ /g, " ");
|
env2.agent = env2.agent.replace(/ /g, " ");
|
||||||
|
const isChrome = env2.agent.match(/Chrome\/.[0-9]/g);
|
||||||
|
const verChrome = isChrome && isChrome[0] ? isChrome[0].split("/")[1] : 0;
|
||||||
|
if (verChrome > 0 && verChrome > 92 && verChrome < 96) {
|
||||||
|
log("disabling offscreenCanvas due to browser error:", isChrome ? isChrome[0] : "unknown");
|
||||||
|
env2.offscreen = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (typeof process !== "undefined") {
|
} else if (typeof process !== "undefined") {
|
||||||
env2.platform = `${process.platform} ${process.arch}`;
|
env2.platform = `${process.platform} ${process.arch}`;
|
||||||
env2.agent = `NodeJS ${process.version}`;
|
env2.agent = `NodeJS ${process.version}`;
|
||||||
}
|
}
|
||||||
|
env2.worker = env2.browser && env2.offscreen ? typeof WorkerGlobalScope !== "undefined" : void 0;
|
||||||
await backendInfo();
|
await backendInfo();
|
||||||
}
|
}
|
||||||
async function set(obj) {
|
async function set(obj) {
|
||||||
|
@ -1066,6 +1072,8 @@ function canvas(width, height) {
|
||||||
if (env2.offscreen) {
|
if (env2.offscreen) {
|
||||||
c = new OffscreenCanvas(width, height);
|
c = new OffscreenCanvas(width, height);
|
||||||
} else {
|
} else {
|
||||||
|
if (typeof document === "undefined")
|
||||||
|
throw new Error("attempted to run in web worker but offscreenCanvas is not supported");
|
||||||
c = document.createElement("canvas");
|
c = document.createElement("canvas");
|
||||||
c.width = width;
|
c.width = width;
|
||||||
c.height = height;
|
c.height = height;
|
||||||
|
|
|
@ -1031,7 +1031,6 @@ async function backendInfo() {
|
||||||
async function get() {
|
async function get() {
|
||||||
env2.browser = typeof navigator !== "undefined";
|
env2.browser = typeof navigator !== "undefined";
|
||||||
env2.node = typeof process !== "undefined";
|
env2.node = typeof process !== "undefined";
|
||||||
env2.worker = env2.browser ? typeof WorkerGlobalScope !== "undefined" : void 0;
|
|
||||||
env2.tfjs.version = tf.version_core;
|
env2.tfjs.version = tf.version_core;
|
||||||
env2.offscreen = typeof env2.offscreen === "undefined" ? typeof OffscreenCanvas !== "undefined" : env2.offscreen;
|
env2.offscreen = typeof env2.offscreen === "undefined" ? typeof OffscreenCanvas !== "undefined" : env2.offscreen;
|
||||||
if (typeof navigator !== "undefined") {
|
if (typeof navigator !== "undefined") {
|
||||||
|
@ -1043,11 +1042,18 @@ async function get() {
|
||||||
if (env2.platform[1])
|
if (env2.platform[1])
|
||||||
env2.agent = env2.agent.replace(raw[1], "");
|
env2.agent = env2.agent.replace(raw[1], "");
|
||||||
env2.agent = env2.agent.replace(/ /g, " ");
|
env2.agent = env2.agent.replace(/ /g, " ");
|
||||||
|
const isChrome = env2.agent.match(/Chrome\/.[0-9]/g);
|
||||||
|
const verChrome = isChrome && isChrome[0] ? isChrome[0].split("/")[1] : 0;
|
||||||
|
if (verChrome > 0 && verChrome > 92 && verChrome < 96) {
|
||||||
|
log("disabling offscreenCanvas due to browser error:", isChrome ? isChrome[0] : "unknown");
|
||||||
|
env2.offscreen = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (typeof process !== "undefined") {
|
} else if (typeof process !== "undefined") {
|
||||||
env2.platform = `${process.platform} ${process.arch}`;
|
env2.platform = `${process.platform} ${process.arch}`;
|
||||||
env2.agent = `NodeJS ${process.version}`;
|
env2.agent = `NodeJS ${process.version}`;
|
||||||
}
|
}
|
||||||
|
env2.worker = env2.browser && env2.offscreen ? typeof WorkerGlobalScope !== "undefined" : void 0;
|
||||||
await backendInfo();
|
await backendInfo();
|
||||||
}
|
}
|
||||||
async function set(obj) {
|
async function set(obj) {
|
||||||
|
@ -1065,6 +1071,8 @@ function canvas(width, height) {
|
||||||
if (env2.offscreen) {
|
if (env2.offscreen) {
|
||||||
c = new OffscreenCanvas(width, height);
|
c = new OffscreenCanvas(width, height);
|
||||||
} else {
|
} else {
|
||||||
|
if (typeof document === "undefined")
|
||||||
|
throw new Error("attempted to run in web worker but offscreenCanvas is not supported");
|
||||||
c = document.createElement("canvas");
|
c = document.createElement("canvas");
|
||||||
c.width = width;
|
c.width = width;
|
||||||
c.height = height;
|
c.height = height;
|
||||||
|
|
|
@ -66,14 +66,14 @@
|
||||||
"@tensorflow/tfjs-layers": "^3.9.0",
|
"@tensorflow/tfjs-layers": "^3.9.0",
|
||||||
"@tensorflow/tfjs-node": "^3.9.0",
|
"@tensorflow/tfjs-node": "^3.9.0",
|
||||||
"@tensorflow/tfjs-node-gpu": "^3.9.0",
|
"@tensorflow/tfjs-node-gpu": "^3.9.0",
|
||||||
"@types/node": "^16.10.2",
|
"@types/node": "^16.10.3",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
||||||
"@typescript-eslint/parser": "^4.33.0",
|
"@typescript-eslint/parser": "^4.33.0",
|
||||||
"@vladmandic/build": "^0.5.3",
|
"@vladmandic/build": "^0.5.3",
|
||||||
"@vladmandic/pilogger": "^0.3.3",
|
"@vladmandic/pilogger": "^0.3.3",
|
||||||
"canvas": "^2.8.0",
|
"canvas": "^2.8.0",
|
||||||
"dayjs": "^1.10.7",
|
"dayjs": "^1.10.7",
|
||||||
"esbuild": "^0.13.3",
|
"esbuild": "^0.13.4",
|
||||||
"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",
|
||||||
|
|
|
@ -24,6 +24,7 @@ export function canvas(width, height): HTMLCanvasElement | OffscreenCanvas {
|
||||||
if (env.offscreen) {
|
if (env.offscreen) {
|
||||||
c = new OffscreenCanvas(width, height);
|
c = new OffscreenCanvas(width, height);
|
||||||
} else {
|
} else {
|
||||||
|
if (typeof document === 'undefined') throw new Error('attempted to run in web worker but offscreenCanvas is not supported');
|
||||||
c = document.createElement('canvas');
|
c = document.createElement('canvas');
|
||||||
c.width = width;
|
c.width = width;
|
||||||
c.height = height;
|
c.height = height;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as tf from '../../dist/tfjs.esm.js';
|
import * as tf from '../../dist/tfjs.esm.js';
|
||||||
import * as image from '../image/image';
|
import * as image from '../image/image';
|
||||||
import { mergeDeep } from './util';
|
import { mergeDeep, log } from './util';
|
||||||
|
|
||||||
export type Env = {
|
export type Env = {
|
||||||
browser: undefined | boolean,
|
browser: undefined | boolean,
|
||||||
|
@ -129,8 +129,6 @@ export async function backendInfo() {
|
||||||
export async function get() {
|
export async function get() {
|
||||||
env.browser = typeof navigator !== 'undefined';
|
env.browser = typeof navigator !== 'undefined';
|
||||||
env.node = typeof process !== 'undefined';
|
env.node = typeof process !== 'undefined';
|
||||||
// @ts-ignore WorkerGlobalScope evaluated in browser only
|
|
||||||
env.worker = env.browser ? (typeof WorkerGlobalScope !== 'undefined') : undefined;
|
|
||||||
env.tfjs.version = tf.version_core;
|
env.tfjs.version = tf.version_core;
|
||||||
|
|
||||||
// offscreencanvas supported?
|
// offscreencanvas supported?
|
||||||
|
@ -144,11 +142,21 @@ export async function get() {
|
||||||
env.agent = navigator.userAgent.replace(raw[0], '');
|
env.agent = navigator.userAgent.replace(raw[0], '');
|
||||||
if (env.platform[1]) env.agent = env.agent.replace(raw[1], '');
|
if (env.platform[1]) env.agent = env.agent.replace(raw[1], '');
|
||||||
env.agent = env.agent.replace(/ /g, ' ');
|
env.agent = env.agent.replace(/ /g, ' ');
|
||||||
|
|
||||||
|
// chrome offscreencanvas gpu memory leak
|
||||||
|
const isChrome = env.agent.match(/Chrome\/.[0-9]/g);
|
||||||
|
const verChrome = isChrome && isChrome[0] ? isChrome[0].split('/')[1] : 0;
|
||||||
|
if (verChrome > 0 && verChrome > 92 && verChrome < 96) {
|
||||||
|
log('disabling offscreenCanvas due to browser error:', isChrome ? isChrome[0] : 'unknown');
|
||||||
|
env.offscreen = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (typeof process !== 'undefined') {
|
} else if (typeof process !== 'undefined') {
|
||||||
env.platform = `${process.platform} ${process.arch}`;
|
env.platform = `${process.platform} ${process.arch}`;
|
||||||
env.agent = `NodeJS ${process.version}`;
|
env.agent = `NodeJS ${process.version}`;
|
||||||
}
|
}
|
||||||
|
// @ts-ignore WorkerGlobalScope evaluated in browser only
|
||||||
|
env.worker = env.browser && env.offscreen ? (typeof WorkerGlobalScope !== 'undefined') : undefined;
|
||||||
await backendInfo();
|
await backendInfo();
|
||||||
|
|
||||||
// get cpu info
|
// get cpu info
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
2021-10-04 17:01:38 [36mINFO: [39m @vladmandic/human version 2.3.0
|
2021-10-06 11:29:10 [36mINFO: [39m @vladmandic/human version 2.3.0
|
||||||
2021-10-04 17:01:38 [36mINFO: [39m User: vlado Platform: linux Arch: x64 Node: v16.10.0
|
2021-10-06 11:29:10 [36mINFO: [39m User: vlado Platform: linux Arch: x64 Node: v16.10.0
|
||||||
2021-10-04 17:01:38 [36mINFO: [39m Application: {"name":"@vladmandic/human","version":"2.3.0"}
|
2021-10-06 11:29:10 [36mINFO: [39m Application: {"name":"@vladmandic/human","version":"2.3.0"}
|
||||||
2021-10-04 17:01:38 [36mINFO: [39m Environment: {"profile":"production","config":"build.json","tsconfig":true,"eslintrc":true,"git":true}
|
2021-10-06 11:29:10 [36mINFO: [39m Environment: {"profile":"production","config":"build.json","tsconfig":true,"eslintrc":true,"git":true}
|
||||||
2021-10-04 17:01:38 [36mINFO: [39m Toolchain: {"build":"0.5.3","esbuild":"0.13.3","typescript":"4.4.3","typedoc":"0.22.5","eslint":"7.32.0"}
|
2021-10-06 11:29:10 [36mINFO: [39m Toolchain: {"build":"0.5.3","esbuild":"0.13.4","typescript":"4.4.3","typedoc":"0.22.5","eslint":"7.32.0"}
|
||||||
2021-10-04 17:01:38 [36mINFO: [39m Build: {"profile":"production","steps":["clean","compile","typings","typedoc","lint","changelog"]}
|
2021-10-06 11:29:10 [36mINFO: [39m Build: {"profile":"production","steps":["clean","compile","typings","typedoc","lint","changelog"]}
|
||||||
2021-10-04 17:01:38 [35mSTATE:[39m Clean: {"locations":["dist/*","types/*","typedoc/*"]}
|
2021-10-06 11:29:10 [35mSTATE:[39m Clean: {"locations":["dist/*","types/*","typedoc/*"]}
|
||||||
2021-10-04 17:01:38 [35mSTATE:[39m Compile: {"name":"tfjs/nodejs/cpu","format":"cjs","platform":"node","input":"tfjs/tf-node.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":102,"outputBytes":1275}
|
2021-10-06 11:29:10 [35mSTATE:[39m Compile: {"name":"tfjs/nodejs/cpu","format":"cjs","platform":"node","input":"tfjs/tf-node.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":102,"outputBytes":1275}
|
||||||
2021-10-04 17:01:38 [35mSTATE:[39m Compile: {"name":"human/nodejs/cpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node.js","files":52,"inputBytes":508376,"outputBytes":423214}
|
2021-10-06 11:29:10 [35mSTATE:[39m Compile: {"name":"human/nodejs/cpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node.js","files":52,"inputBytes":508920,"outputBytes":423715}
|
||||||
2021-10-04 17:01:38 [35mSTATE:[39m Compile: {"name":"tfjs/nodejs/gpu","format":"cjs","platform":"node","input":"tfjs/tf-node-gpu.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":110,"outputBytes":1283}
|
2021-10-06 11:29:10 [35mSTATE:[39m Compile: {"name":"tfjs/nodejs/gpu","format":"cjs","platform":"node","input":"tfjs/tf-node-gpu.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":110,"outputBytes":1283}
|
||||||
2021-10-04 17:01:38 [35mSTATE:[39m Compile: {"name":"human/nodejs/gpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-gpu.js","files":52,"inputBytes":508384,"outputBytes":423218}
|
2021-10-06 11:29:10 [35mSTATE:[39m Compile: {"name":"human/nodejs/gpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-gpu.js","files":52,"inputBytes":508928,"outputBytes":423719}
|
||||||
2021-10-04 17:01:38 [35mSTATE:[39m Compile: {"name":"tfjs/nodejs/wasm","format":"cjs","platform":"node","input":"tfjs/tf-node-wasm.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":149,"outputBytes":1350}
|
2021-10-06 11:29:10 [35mSTATE:[39m Compile: {"name":"tfjs/nodejs/wasm","format":"cjs","platform":"node","input":"tfjs/tf-node-wasm.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":149,"outputBytes":1350}
|
||||||
2021-10-04 17:01:38 [35mSTATE:[39m Compile: {"name":"human/nodejs/wasm","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-wasm.js","files":52,"inputBytes":508451,"outputBytes":423290}
|
2021-10-06 11:29:10 [35mSTATE:[39m Compile: {"name":"human/nodejs/wasm","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-wasm.js","files":52,"inputBytes":508995,"outputBytes":423791}
|
||||||
2021-10-04 17:01:38 [35mSTATE:[39m Compile: {"name":"tfjs/browser/version","format":"esm","platform":"browser","input":"tfjs/tf-version.ts","output":"dist/tfjs.version.js","files":1,"inputBytes":1063,"outputBytes":1631}
|
2021-10-06 11:29:10 [35mSTATE:[39m Compile: {"name":"tfjs/browser/version","format":"esm","platform":"browser","input":"tfjs/tf-version.ts","output":"dist/tfjs.version.js","files":1,"inputBytes":1063,"outputBytes":1631}
|
||||||
2021-10-04 17:01:38 [35mSTATE:[39m Compile: {"name":"tfjs/browser/esm/nobundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":3088,"outputBytes":793}
|
2021-10-06 11:29:10 [35mSTATE:[39m Compile: {"name":"tfjs/browser/esm/nobundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":3088,"outputBytes":793}
|
||||||
2021-10-04 17:01:38 [35mSTATE:[39m Compile: {"name":"human/browser/esm/nobundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm-nobundle.js","files":52,"inputBytes":507894,"outputBytes":424694}
|
2021-10-06 11:29:10 [35mSTATE:[39m Compile: {"name":"human/browser/esm/nobundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm-nobundle.js","files":52,"inputBytes":508438,"outputBytes":425195}
|
||||||
2021-10-04 17:01:39 [35mSTATE:[39m Compile: {"name":"tfjs/browser/esm/bundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":8,"inputBytes":3088,"outputBytes":2377041}
|
2021-10-06 11:29:11 [35mSTATE:[39m Compile: {"name":"tfjs/browser/esm/bundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":8,"inputBytes":3088,"outputBytes":2377041}
|
||||||
2021-10-04 17:01:39 [35mSTATE:[39m Compile: {"name":"human/browser/iife/bundle","format":"iife","platform":"browser","input":"src/human.ts","output":"dist/human.js","files":52,"inputBytes":2884142,"outputBytes":1418149}
|
2021-10-06 11:29:11 [35mSTATE:[39m Compile: {"name":"human/browser/iife/bundle","format":"iife","platform":"browser","input":"src/human.ts","output":"dist/human.js","files":52,"inputBytes":2884686,"outputBytes":1418473}
|
||||||
2021-10-04 17:01:39 [35mSTATE:[39m Compile: {"name":"human/browser/esm/bundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm.js","files":52,"inputBytes":2884142,"outputBytes":2629703}
|
2021-10-06 11:29:12 [35mSTATE:[39m Compile: {"name":"human/browser/esm/bundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm.js","files":52,"inputBytes":2884686,"outputBytes":2630204}
|
||||||
2021-10-04 17:01:57 [35mSTATE:[39m Typings: {"input":"src/human.ts","output":"types","files":6}
|
2021-10-06 11:29:29 [35mSTATE:[39m Typings: {"input":"src/human.ts","output":"types","files":6}
|
||||||
2021-10-04 17:02:02 [35mSTATE:[39m TypeDoc: {"input":"src/human.ts","output":"typedoc","objects":35,"generated":true}
|
2021-10-06 11:29:35 [35mSTATE:[39m TypeDoc: {"input":"src/human.ts","output":"typedoc","objects":35,"generated":true}
|
||||||
2021-10-04 17:02:31 [35mSTATE:[39m Lint: {"locations":["*.json","src/**/*.ts","test/**/*.js","demo/**/*.js"],"files":86,"errors":0,"warnings":0}
|
2021-10-06 11:30:03 [35mSTATE:[39m Lint: {"locations":["*.json","src/**/*.ts","test/**/*.js","demo/**/*.js"],"files":86,"errors":0,"warnings":0}
|
||||||
2021-10-04 17:02:31 [35mSTATE:[39m ChangeLog: {"repository":"https://github.com/vladmandic/human","branch":"main","output":"CHANGELOG.md"}
|
2021-10-06 11:30:04 [35mSTATE:[39m ChangeLog: {"repository":"https://github.com/vladmandic/human","branch":"main","output":"CHANGELOG.md"}
|
||||||
2021-10-04 17:02:31 [36mINFO: [39m Done...
|
2021-10-06 11:30:04 [36mINFO: [39m Done...
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/image/image.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAGlC,oBAAY,KAAK,GA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