Coder Social home page Coder Social logo

Comments (11)

jklontz avatar jklontz commented on July 19, 2024

This is the expected behavior. When enrollAll is true, the system will only enroll the faces it correctly detects, which in many cases is less than the total number of images. This is generally the desired behavior in most practical applications.

The alternative is when enrollAll is false. In this case the system will enroll exactly one face per image no matter what (even if it fails to detect a face!). This is generally the desired behavior in most research scenarios.

enrollAll is a terrible name that needs to be changed to something else. But i suspect that is the source of the confusion?

from openbr.

SocialMobile avatar SocialMobile commented on July 19, 2024

Sounds like this is not the case. Because all of them are valid faces and they can be compared one by one.

from openbr.

jklontz avatar jklontz commented on July 19, 2024

Hmm, how do you do the 1-to-1 comparison? enrollAll is false by default, so I still think this is the problem. Perhaps you can post a minimum reproducing example with images to the mailing list?

from openbr.

SocialMobile avatar SocialMobile commented on July 19, 2024

which mail list?

On Thu, Sep 12, 2013 at 7:16 AM, jklontz [email protected] wrote:

Hmm, how do you do the 1-to-1 comparison? enrollAll is false by default,
so I still think this is the problem. Perhaps you can post a minimum
reproducing example with images to the mailing list?


Reply to this email directly or view it on GitHubhttps://github.com//issues/104#issuecomment-24322930
.

Michael

from openbr.

jklontz avatar jklontz commented on July 19, 2024

https://groups.google.com/forum/#!forum/openbr-dev

from openbr.

SocialMobile avatar SocialMobile commented on July 19, 2024

They might be different issues. The issue I noticed was in the face_recognition_search example code as follows:

10 // Enroll templates
11 br::Globals->enrollAll = true; // Enroll 0 or more faces per image
12 target >> *transform;
13 br::Globals->enrollAll = false; // Enroll exactly one face per image
14 query >> *transform;

I have 10 images loaded in target. But after the above line 12, the target has only 6 images. So the workaround would have to enroll the target images one by one like the above line 14.

Any comments?

from openbr.

jklontz avatar jklontz commented on July 19, 2024

Why not just delete line 11 and have enrollAll = false?

from openbr.

SocialMobile avatar SocialMobile commented on July 19, 2024

It works. Can you explain a little what the enrolling does? As you know, the target is br::TemplateList. How can it work for enrolling one only?

Originally I used a loop to enroll them one by one like

for (i = 0; i < target.size(); i++)
{
target[i] >> *transform;
score[i] = distance->compare(target[i], query);
}

from openbr.

jklontz avatar jklontz commented on July 19, 2024

Happy to explain, but can you re-ask this on the mailing list so that it's more visible to others who may be wondering the same thing?

from openbr.

SocialMobile avatar SocialMobile commented on July 19, 2024

Just posted but it is weird it cannot showup immediately.

from openbr.

jklontz avatar jklontz commented on July 19, 2024

(Messages from new posters must be approved before they show up)

from openbr.

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.