Git Product home page Git Product logo

facerecognition's Introduction

Project

  • Bài toán phân loại ảnh (~400.000) gồm nhiều class (~5000)

  • Data có nhiều ảnh nhiễu, không đúng ảnh người nổi tiếng

  • Dùng thư viện face_recognition để tính vector embedding (128 chiều) cho mỗi ảnh trong dataset

    • Các ảnh của cùng 1 người sẽ có vector embedding gần nhau
    • Với mỗi mid (người) chọn ra top những ảnh có mức độ giống với các ảnh còn lại trong folder nhất để giữ lại. Loại các ảnh không giống với các ảnh khác trong folder, vì đây khả năng cao là các ảnh nhiễu.
    • Mục đích: Loại ảnh nhiễu khỏi tập train
  • Train mô hình Machine Learning

    • Với mỗi ảnh thì sử dụng feature là vector embedding tính bởi thư viện face_recognition
    • Train các mô hình SVM, Random Forest, KNN
      • Thời gian train khá lâu, chỉ test được độ chính xác của KNN (validation accuracy: ~80%)
  • Train mô hình mạng neuron

    • Chỉ dùng một tập nhỏ data để train, validation (~28k ảnh, 500 người và mỗi người có ít nhất 50 ảnh)
    • Thử nghiệm các mô hình pretrained VGG16, Resnet50, tự code mô hình VGG thu nhỏ
      • Train 100 epoch (khoảng 4-5h)
      • Learning rate cần phải nhỏ, xấp xỉ khoảng 2*10e-4 (nếu lr=10e-3 thì valid accuracy chỉ ở mức 0.25% ~ mô hình đoán ngẫu nhiên)
      • Mọi mô hình đều overfit nặng (92% train accuracy - 72% valid accuracy, nếu train thêm thì train accuracy tăng đến 96% còn valid accuracy không tăng)
    • Thử train mạng Siamese với base network là mô hình đã train ở bước trước, nhưng kết quả không cải thiện (có thể do code sai)

facerecognition's People

Contributors

quancq avatar

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.