C1_W4_Lab_1_retrain.html : error

Rock Paper Scissors ungraded lab : tensorflow-2-public/C1_Browser-based-TF-JS/W4/ungraded_lab

when running in Chrome (Version 125.0.6422.142 (Official Build) (x86_64)) : http://0.0.0.0:8000/C1_W4_Lab_1_retrain.html
=>uncaught error

index.js:109
await in init (async)
(anonymous) @ index.js:113

Please help
Is it due to webcam capture failure ?

Hi @Thierry_Pochon

It can be! Ensure that your browser has permission to access the webcam. Also, make sure you are running the application over https or on localhost as many browsers block webcam access for non-secure contexts (i.e., http).

Additionally, check that you are using a compatible version of TensorFlow.js with your code.

Hope this helps.

Hi Alireza,
Thank you very much for your help : indeed using http://localhost:8000/C1_W4_Lab_1_retrain.html (instead of http://0.0.0.0:8000/C1_W4_Lab_1_retrain.html) and allowing Chrome to use the camera fixed the issue.
Best regards,
Thierry

You’re welcome! happy to help :raised_hands: