Skip to content
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

The model mobilefacenet.tflite doesn't produce accurate result #28

Closed
ThangVuNguyenViet opened this issue Aug 8, 2021 · 3 comments
Closed

Comments

@ThangVuNguyenViet
Copy link

Hi, I'm having trouble with the model.

I compared the _euclideanDistance of array result from frames of my face, it yields the distance around .7-.9, which is below
the threshold, which is correct.

However, when I compare the array result of my face with my sister's face, it also yields the same distance, around .7-.9, which is still below the threshold, while it shouldn't be.

I tested it on both Android and iOS, it shows the same result

@fuadarradhi
Copy link

in my case, just check length is 192.

double _euclideanDistance(List e1, List e2) {
    if (e1 == null || e2 == null || e1.length != 192 || e2.length != 192) throw Exception("Null or empty argument");

    double sum = 0.0;
    for (int i = 0; i < e1.length; i++) {
      sum += pow((e1[i] - e2[i]), 2);
    }
    return sqrt(sum);
  }

@ThangVuNguyenViet
Copy link
Author

I've made some checks, and I am sure that the length of both List are equally 192

@matejsvajger
Copy link

matejsvajger commented Nov 4, 2021

I'm having the same issue.

The lengths are correct, but the distance is always below the threshold of 1 for any face.

@ThangVuNguyenViet did you find a solution for this?


Update: My problem seems to be related to #12 -- Cross-platform registration/sign-in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants