GithubHelp home page GithubHelp logo

Comments (8)

sladomic avatar sladomic commented on September 28, 2024

HI @mkosik

When trying to run a "Recognition Training" for Image Reshaping with SVM, it stucks on a white screen (Training Activity) & it doesn't process any image successfully.

With the current code, it's inefficient to use a high N for image reshaping. For the neural network of facenet we use 160 x 160 as input and get vector of 1 x 128 as output. But if you use the same number for image reshaping, you get 160 x 160 x 4 (channels) = 102'400

Here's the inefficient bottleneck in the SupportVectorMachine class

public String getSvmString(Mat img){
        img = getFeatureVector(img);
        String result = "";
        for (int i=0; i<img.cols(); i++){
            result = result + " " + i + ":" + img.get(0,i)[0];
        }
        return result;
    }

from android-face-recognition-with-deep-learning-test-framework.

sladomic avatar sladomic commented on September 28, 2024

If you use N < 50, it works. We mostly used N = 25, because the results were similar to N = 50, but it was a lot faster.

from android-face-recognition-with-deep-learning-test-framework.

tomsang avatar tomsang commented on September 28, 2024

I have a small patch to fix this issue. The performance of Reshaping with N=160 will be close to that of TensorFlow with SVM.

But I don't know how to submit it.

from android-face-recognition-with-deep-learning-test-framework.

chithrabaskar avatar chithrabaskar commented on September 28, 2024

by changing the package name of this app it did not work...why??

from android-face-recognition-with-deep-learning-test-framework.

sladomic avatar sladomic commented on September 28, 2024

@tomsang to submit your code you could 1. fork the repo, 2. implement the changes in the forked repo, 3. Create a pull request. I can then test and check it and then merge into the core repo.

from android-face-recognition-with-deep-learning-test-framework.

sladomic avatar sladomic commented on September 28, 2024

@chithrabaskar does Android Studio give you any errors? At which point does it crash?

from android-face-recognition-with-deep-learning-test-framework.

chithrabaskar avatar chithrabaskar commented on September 28, 2024

No, there is no error by changing the package name...but it unfortunately stopped while running...please give me any solution

from android-face-recognition-with-deep-learning-test-framework.

tomsang avatar tomsang commented on September 28, 2024

I would like to provide a improve patch in the later

from android-face-recognition-with-deep-learning-test-framework.

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.