-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Face detection on different browser #73
Comments
Hi, Either host your model file on localhost via an express server for example, or implement a filepicker to upload the model file. |
Hi, |
Hmm, that's odd. Usually browsers don't allow you to access files from your filesystem for security reasons, that's why the fetch request in model.load is failing in chrome (not sure why this works for you in firefox). If you look at my examples in this repo, you can see that I state, which folders can be publicly accessed (in server.js). This way you can load your model from an url e.g. net.load('models/my-model'). You can do the same for your model. With filepicker I mean, you can use an input element of type 'file', which is another way to browse and load files from your browser. There should be plenty of tutorials out there, explaining how to implement a file upload. |
Isn't this just a warning? When exactly does this appear, when loading the model or during inference? Edit: I think this just pops up when the event loop is blocked for some amount of time, essentially saying, that the main thread is not reacting to any interaction while blocked. |
yes it is just a warning and it happen during loading the model ! |
Hi firstly i want to thank you for this amazing API that help me a lot for my project !!
So:
if you can help me to solve this !!
The text was updated successfully, but these errors were encountered: