diff --git a/demo/face3d.js b/demo/face3d.js index c540f0a0..f3553b8c 100644 --- a/demo/face3d.js +++ b/demo/face3d.js @@ -90,7 +90,7 @@ function resize(input) { camera.bottom = -height / 2; camera.near = -100; camera.far = 100; - camera.zoom = 3; + camera.zoom = 2; camera.updateProjectionMatrix(); renderer.setSize(width, height); } diff --git a/demo/facematch.js b/demo/facematch.js index 68f7a8e4..c68ff1e8 100644 --- a/demo/facematch.js +++ b/demo/facematch.js @@ -186,6 +186,23 @@ async function main() { log('Enumerated:', images.length, 'images'); for (let i = 0; i < images.length; i++) await process(i, images[i]); + // could not dynamically enumerate images so using static list + if (images.length === 0) { + images = [ + '/assets/sample1.jpg', + '/assets/sample2.jpg', + '/assets/sample3.jpg', + '/assets/sample4.jpg', + '/assets/sample5.jpg', + '/assets/sample6.jpg', + '/assets/sample6.jpg', + '/assets/sample-me.jpg', + '/assets/human-sample-face.jpg', + '/assets/human-sample-upper.jpg', + '/assets/human-sample-body.jpg', + ]; + } + // print stats const num = all.reduce((prev, cur) => prev += cur.length, 0); log('Extracted faces:', num, 'from images:', all.length);