Open
Description
Hi! Thank you for all of the help here :)
I am having issues replicating the face recognition demonstration from scratch. Here are the steps I followed:
- Follow https://github.com/sitek94/vite-deploy-demo to create a new vite project and host it on GitHub pages.
- Copy the
face_recognition
folder to the repo: https://github.com/webmachinelearning/webnn-samples/tree/master/face_recognition - Copy the
common
folder to the repo: https://github.com/webmachinelearning/webnn-samples/tree/master/common - Run
git clone --recurse-submodules https://github.com/webmachinelearning/webnn-samples
(thanks to @Honry in Face recognition example does not work locally on latest Chrome Canary:Invalid signature.
#282) and copy thetest-data
folder with the model weights: https://github.com/jaanli/heartbeat/tree/main/test-data/models/ssd_mobilenetv2_face_nhwc - Navigate to the repository github page: https://jaanli.github.io/heartbeat/ and receive the following error:
CORS errors
at async HTMLLabelElement.<anonymous> (index-DkrgW5Z5.js:37:33170)Understand this errorAI
heartbeat/:1 Access to fetch at 'https://d3i5xkfad89fac.cloudfront.net/test-data/models/facenet_nhwc/weights/Block35_3_Branch_1_Conv2d_0b_3x3_kernel.npy' from origin 'https://jaanli.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
It seems like the example does not use the weights file that points to the test-data
even though it is in the repository.
Here's a screenshot if needed of what happens in chrome canary when navigating to the repository github page: https://jaanli.github.io/heartbeat/

Locally, the errors say invalid signature
in Numpy:

Any advice on how to fix this to get the example working? Thanks so much!
Metadata
Metadata
Assignees
Labels
No labels