Giter VIP home page Giter VIP logo

Comments (13)

WebDevSimplified avatar WebDevSimplified commented on June 26, 2024

from face-detection-javascript.

Fritskee avatar Fritskee commented on June 26, 2024

@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.

WebDevSimplified avatar WebDevSimplified commented on June 26, 2024

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.

Fritskee avatar Fritskee commented on June 26, 2024

@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.

WebDevSimplified avatar WebDevSimplified commented on June 26, 2024

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.

Fritskee avatar Fritskee commented on June 26, 2024

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.

WebDevSimplified avatar WebDevSimplified commented on June 26, 2024

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.

Fritskee avatar Fritskee commented on June 26, 2024

@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.

WebDevSimplified avatar WebDevSimplified commented on June 26, 2024

That makes sense. You can also press ctrl + r to do a hard refresh which clears your cache.

from face-detection-javascript.

duttanaman1 avatar duttanaman1 commented on June 26, 2024

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.

VikramKharvi avatar VikramKharvi commented on June 26, 2024

Any workaround if we wish to run it without the server?

from face-detection-javascript.

d3M0N-wq avatar d3M0N-wq commented on June 26, 2024

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.

duclm3 avatar duclm3 commented on June 26, 2024

just install the live server in visual code
https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer

from face-detection-javascript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.