diff --git a/docker-compose.yml b/docker-compose.yml index 9d7af9b..9a284bc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,4 +18,5 @@ services: - ${PWD}/config/local.json:/website/config/local.json - /opt/ketrface/models:/root/.deepface # - ${PWD}:/website + - ${PWD}/frontend:/website/frontend - ${PWD}/server:/website/server diff --git a/frontend/identities.html b/frontend/identities.html index ae8176d..1d0e3e2 100755 --- a/frontend/identities.html +++ b/frontend/identities.html @@ -18,7 +18,8 @@ function createFace(faceId, photoId, selectable) { div.classList.add("face"); div.setAttribute("photo-id", photoId); div.setAttribute("face-id", faceId); - div.style.backgroundImage = "url(face-data/" + (faceId % 100) + "/" + faceId + "-original.png)"; + const dir = String(faceId % 100).padStart(2, '0') + div.style.backgroundImage = `url(faces/${dir}/${faceId}.jpg)`; div.addEventListener("click", (event) => { if (event.shiftKey) { /* identities */ let faceId = parseInt(event.currentTarget.getAttribute("face-id")); diff --git a/frontend/slideshow.html b/frontend/slideshow.html index be3026a..5b9fb8b 100755 --- a/frontend/slideshow.html +++ b/frontend/slideshow.html @@ -77,39 +77,73 @@ body {