GithubHelp home page GithubHelp logo

chanstk / facerecognition_mtcnn_facenet Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 10.0 2.06 MB

A face recognition system based on facenet and mtcnn algorithm(pure c++ version)

CMake 1.61% C++ 98.39%

facerecognition_mtcnn_facenet's People

Contributors

chanstk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

facerecognition_mtcnn_facenet's Issues

prediction accurate

hello,chan,I'm using your code to make predictions, but I find that the accuracy of the prediction is very low. Is that the same for you? thank you

crashing with opencv4

the program is crashing in following line
Image = Image - cv::Vec3d(mean_pxl, mean_pxl, mean_pxl);
please help me to fix the issue

set_per_process_gpu_memory_fraction cause Segmentation fault

Hi,
Have you try to limit the GPU memory usage?
I just use GTX1070 which has 8G memory and config the GPU memory using the following code

void getSession(string graph_path, std::unique_ptr<tensorflow::Session> &session){
     tensorflow::GraphDef graph_def;
     if (!ReadBinaryProto(tensorflow::Env::Default(), graph_path, &graph_def).ok()) {
         LOG(ERROR) << "Read proto";
         return ;
     }
     tensorflow::SessionOptions sess_opt;
     sess_opt.config.mutable_gpu_options()->set_per_process_gpu_memory_fraction(0.8);
 
     (&session)->reset(tensorflow::NewSession(sess_opt));
 
     if (!session->Create(graph_def).ok()) {
         LOG(ERROR) << "Create graph";
         return ;
     }
 }

But when I generate the binary file and run it, the program got:

/opt/tf_test/FaceRecognition_MTCNN_FaceNet
2017-12-28 17:48:06.721839: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2017-12-28 17:48:06.904772: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:898] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2017-12-28 17:48:06.905343: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1202] Found device 0 with properties: 
name: GeForce GTX 1070 major: 6 minor: 1 memoryClockRate(GHz): 1.645
pciBusID: 0000:01:00.0
totalMemory: 7.92GiB freeMemory: 7.11GiB
2017-12-28 17:48:06.905357: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1296] Adding visible gpu device 0
Segmentation fault (core dumped)

Thank you very much.

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.