mirror of https://github.com/vladmandic/human
wip on embedding
parent
1c921294ba
commit
622de45e50
|
@ -82,7 +82,7 @@ let original;
|
|||
async function calcSimmilariry(result) {
|
||||
document.getElementById('compare-container').style.display = human.config.face.embedding.enabled ? 'block' : 'none';
|
||||
if (!human.config.face.embedding.enabled) return;
|
||||
if ((result?.face?.length > 0) && (result?.face[0].embedding?.length !== 192)) return;
|
||||
if (!(result?.face?.length > 0) || (result?.face[0]?.embedding?.length !== 192)) return;
|
||||
if (!original) {
|
||||
original = result;
|
||||
document.getElementById('compare-canvas').getContext('2d').drawImage(original.canvas, 0, 0, 200, 200);
|
||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
|||
Subproject commit 8d403c2d9d0185ead9897e7177f460b25b95b3b6
|
||||
Subproject commit 69294f7a0a99bd996286f8f5bb655c7ea8bfc10d
|
Loading…
Reference in New Issue