Giter VIP home page Giter VIP logo

Comments (4)

neon-ninja avatar neon-ninja commented on May 25, 2024 1

Looks good to me. getAllFaceBoundingBox returns the bounding boxes for each face (left,top,width,height - http://dlib.net/python/#dlib.rectangle), so I'd recommend recording which bounding box corresponds to which net.forward matrix (maybe with a dict). To compare against other matrices you can perform the same math as in https://github.com/UoA-eResearch/openface_mass_compare/blob/master/web_server.py#L90 -

d = rep - r  
dot = np.dot(d,d)

where lowest dot product = best match. If you respond with bounding box + closest match you can overlay rectangles on the source image with a text overlay for identifier

from openface_mass_compare.

twobob avatar twobob commented on May 25, 2024

I figured it in the end and reworked the workflow to be primarily server centric.
got it to return multiple data per image now
image
my workflow is probably klunky but working purely on MS has its unique requirements.

we included 300 ish training files over 18 classes
we provided exactly "one" of each type of a random person for 300 ish in the unknown class.

in terms of confidence, we wished to track total hits for a class and just assumed a base confidence, with a simple python pass to exclude any results from the unknown class, post classification. A kind of "bit-bucket exception management approach", after initial recognition and that discriminatory pass all confidence was ignored.

Quick question: In the final "infer" stage when retrieving a result, is there a "fastest" best practice to retrieve a result back from the SVM pkl. I think I noted two approaches in the various demos to gain classification, a grid search was one certainly. I'll dig back around and try to ask a more coherent question, however, multiple results are now being parsed thank you.

A worked demo to do multiple classification, with images in a folder, would be very much appreciated.
Should you ever fancy expanding your demos.

from openface_mass_compare.

neon-ninja avatar neon-ninja commented on May 25, 2024

The reason I store matrices in a pickle, is that when they're precomputed, checking against them is much faster. You need to compare the computed matrix against every precomputed matrix, potentially to speed this up you could check in parallel in batches. I've found checking single threaded against 4000+ matrices can be done in under a second.

from openface_mass_compare.

neon-ninja avatar neon-ninja commented on May 25, 2024

Hey - Microsoft made some changes to their API to restrict free accounts to 1 month trials. So I've been revisiting https://github.com/UoA-eResearch/hololens_facial_recognition to try and get it working again - I'm using a wrapper script around faceplusplus and kairos with https://github.com/UoA-eResearch/face_api

So while I'm revisiting this, I wanted to try and optimise speed. For that, I want to be able to send out all requests to external apis at once. So I needed openface_mass_compare to support multiple faces. I've pushed a commit similar to what you've done with getAllFaceBoundingBoxes - it's 19337dc

from openface_mass_compare.

Related Issues (7)

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.