pull/293/head
Vladimir Mandic 2022-09-02 12:04:26 -04:00
parent 3c324033ab
commit 94b7253642
2 changed files with 14 additions and 1 deletions

View File

@ -631,3 +631,15 @@
2022-09-02 11:57:04 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"text/html","size":2662,"url":"/test/test-embedding.html","remote":"::1"} 2022-09-02 11:57:04 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"text/html","size":2662,"url":"/test/test-embedding.html","remote":"::1"}
2022-09-02 11:57:04 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"text/javascript","size":3103557,"url":"/dist/human.esm.js","remote":"::1"} 2022-09-02 11:57:04 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"text/javascript","size":3103557,"url":"/dist/human.esm.js","remote":"::1"}
2022-09-02 11:57:04 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"image/x-icon","size":261950,"url":"/favicon.ico","remote":"::1"} 2022-09-02 11:57:04 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"image/x-icon","size":261950,"url":"/favicon.ico","remote":"::1"}
2022-09-02 12:01:00 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"text/html","size":2690,"url":"/test/test-embedding.html","remote":"::1"}
2022-09-02 12:01:00 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"text/javascript","size":3103557,"url":"/dist/human.esm.js","remote":"::1"}
2022-09-02 12:01:00 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"image/x-icon","size":261950,"url":"/favicon.ico","remote":"::1"}
2022-09-02 12:03:09 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"text/html","size":2734,"url":"/test/test-embedding.html","remote":"::1"}
2022-09-02 12:03:09 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"text/javascript","size":3103557,"url":"/dist/human.esm.js","remote":"::1"}
2022-09-02 12:03:09 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"image/x-icon","size":261950,"url":"/favicon.ico","remote":"::1"}
2022-09-02 12:03:36 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"text/html","size":2751,"url":"/test/test-embedding.html","remote":"::1"}
2022-09-02 12:03:36 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"text/javascript","size":3103557,"url":"/dist/human.esm.js","remote":"::1"}
2022-09-02 12:03:37 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"image/x-icon","size":261950,"url":"/favicon.ico","remote":"::1"}
2022-09-02 12:04:00 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"text/html","size":2736,"url":"/test/test-embedding.html","remote":"::1"}
2022-09-02 12:04:00 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"text/javascript","size":3103557,"url":"/dist/human.esm.js","remote":"::1"}
2022-09-02 12:04:00 DATA:  HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"image/x-icon","size":261950,"url":"/favicon.ico","remote":"::1"}

View File

@ -18,6 +18,7 @@
const testConfig = { const testConfig = {
debug: true, debug: true,
async: false, async: false,
backend: 'humangl',
modelBasePath: 'https://vladmandic.github.io/human-models/models/', modelBasePath: 'https://vladmandic.github.io/human-models/models/',
cacheSensitivity: 0, cacheSensitivity: 0,
cacheModels: false, cacheModels: false,
@ -55,7 +56,7 @@
// log(backend, { backend: human.tf.getBackend(), env, tfjs: human.tf.env().flags }); // log(backend, { backend: human.tf.getBackend(), env, tfjs: human.tf.env().flags });
const res = await human.warmup(); const res = await human.warmup();
if (Array.isArray(res?.face?.[0]?.embedding) && (res?.face?.[0]?.embedding.length === 1024)) res.face[0].embedding.length = 10; if (Array.isArray(res?.face?.[0]?.embedding) && (res?.face?.[0]?.embedding.length === 1024)) res.face[0].embedding.length = 10;
log({ backend: human.tf.getBackend(), gender: res?.face?.[0]?.gender, genderScore: res?.face?.[0]?.genderScore, age: res?.face?.[0]?.age, embedding: res?.face?.[0]?.embedding }); log({ backend: human.tf.getBackend(), webgl: human.tf.env().flags['WEBGL_VERSION'], gender: res?.face?.[0]?.gender, genderScore: res?.face?.[0]?.genderScore, age: res?.face?.[0]?.age, embedding: res?.face?.[0]?.embedding });
} }
main(); main();