diff --git a/test/build.log b/test/build.log index c0c51e17..4e392bd3 100644 --- a/test/build.log +++ b/test/build.log @@ -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/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 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"} diff --git a/test/test-embedding.html b/test/test-embedding.html index bdf0f238..5ffabc5d 100644 --- a/test/test-embedding.html +++ b/test/test-embedding.html @@ -18,6 +18,7 @@ const testConfig = { debug: true, async: false, + backend: 'humangl', modelBasePath: 'https://vladmandic.github.io/human-models/models/', cacheSensitivity: 0, cacheModels: false, @@ -55,7 +56,7 @@ // log(backend, { backend: human.tf.getBackend(), env, tfjs: human.tf.env().flags }); const res = await human.warmup(); 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();