mirror of https://github.com/vladmandic/human
update
parent
3c324033ab
commit
94b7253642
|
@ -631,3 +631,15 @@
|
|||
2022-09-02 11:57:04 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m 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 [32mDATA: [39m HTTPS: {"method":"GET","ver":"2.0","status":200,"mime":"image/x-icon","size":261950,"url":"/favicon.ico","remote":"::1"}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue