pull/94/head
Vladimir Mandic 2021-04-02 08:09:06 -04:00
parent 7b980ccec8
commit 65800ae036
1 changed files with 3 additions and 2 deletions

View File

@ -182,9 +182,7 @@ async function main() {
dir = (res && res.ok) ? await res.json() : [];
images = images.concat(dir.filter((img) => (img.endsWith('.jpg'))));
// download and analyze all images
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) {
@ -204,6 +202,9 @@ async function main() {
log('Adding static image list:', images.length, 'images');
}
// download and analyze all images
for (let i = 0; i < images.length; i++) await process(i, images[i]);
// print stats
const num = all.reduce((prev, cur) => prev += cur.length, 0);
log('Extracted faces:', num, 'from images:', all.length);