vladmandic / face-api

FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS
https://vladmandic.github.io/face-api/demo/webcam.html
MIT License
824 stars 149 forks source link

Error while loading the model : SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON #127

Closed raheelProjects closed 1 year ago

raheelProjects commented 1 year ago

Issue Description model are not loading and this error arise in the console

Steps to Reproduce image

output image

raheelProjects commented 1 year ago

The issue is solved. I didn't put the model file in the public folder instead i was using it from the src folder. When i moved the models to public folder the model loaded. image