Comments (13)
from face-detection-javascript.
@WebDevSimplified Whenever I run it on port 8000 it runs, but it NEVER kills. Even when I run force killing commands to kill all activity on port 8000. Next time I open up the browser, without even initializing a new local server, it will open up again.
Also, if I initialize it on a different port (eg. 1234) it throws errors to load the models and never runs.
SUPER confused about this. Please help!
from face-detection-javascript.
This sounds like it is a problem with the server setup you are using. Are you using live server through VSCode or some other server to load the pages?
from face-detection-javascript.
@WebDevSimplified I'm using python -m http.server
The default port for this is 8000, but you can also set a specific port. Whenever I set a specific one it stops working...
edit: It's also sad, because it means I cannot add/adjust the code and play around with it. Eg. when I set it up to estimate gender and age, it also doesn't update. (yes I did save the file before running again)
from face-detection-javascript.
I am not familiar with that library, but most likely you need to configure the server so that the models are accessible via url as well.
from face-detection-javascript.
what do you mean accessible via urls? I'm giving it the direct path to the models. Even when I delete the entire folder with everything in it, kill my localhost:8000 (from terminal) and then check localhost:8000 it keeps connecting.
from face-detection-javascript.
The face-api library works by accessing the models via a URL, so your models must be available at that URL. For example localhost:8000/models/model_name.json
. If your server does not also serve the models via URL it will not work. The path to the load models function is just a relative path to the current URL you are on.
from face-detection-javascript.
@WebDevSimplified solved, for some reason they were cached in my chrome browser. When I do incognito it works correctly, or when I do "disable cache" in dev tools it also works as it should...
from face-detection-javascript.
That makes sense. You can also press ctrl + r
to do a hard refresh which clears your cache.
from face-detection-javascript.
I am running a file using xampp server coded in php. I am facing this issues. Is there any way that the face.api work in xampp server
from face-detection-javascript.
Any workaround if we wish to run it without the server?
from face-detection-javascript.
Any workaround if we wish to run it without the server?
no use xampp server. https://www.apachefriends.org/download.html
from face-detection-javascript.
just install the live server in visual code
https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer
from face-detection-javascript.
Related Issues (20)
- Won't run on mobile HOT 2
- The webcam is opening but its not showing in the html file
- Slow Face Detection
- Face Detect does not work with Covid Mask HOT 2
- face-api.min.js:1 Fetch API cannot load HOT 2
- Fetch API cannot load and promise all typeerror HOT 3
- The project is not working HOT 1
- camera is not showing in browser HOT 12
- Getting nothing on screen HOT 1
- How to use the face-api.min.js in React? HOT 1
- Webcam is loading, but canvas/face recognision isnt HOT 4
- My browser not loading the camera HOT 1
- Iam getting the following error repeatedly HOT 3
- These are the errors I'm getting when running on live server
- How to console log only the top expression
- java
- Face api
- Face API is returning null array
- Not working at all!
- woooo! This is a great project.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from face-detection-javascript.