Giter Site home page Giter Site logo

facerecognition's Introduction

Using pytorch,yolocv5+facenet+svm

Requirements

Python 3.7 or later with all requirements.txt dependencies installed, including torch >= 1.5. To install run:

$ pip install -U -r requirements.txt

dataset

*first:

Making database face data,The size of each picture is (160,160),One folder per person

*then:

Open main function in recognitiuon/test.py,you can see face2database\ClassifyTrainSVC\detect()
The first step is to run face2database
The second step is to run ClassifyTrainSVC
After running, Annotate the two steps above
The third step is to run detect(setOPT()),In the setOPT() method, you can set parameters.

weights:

last.pt

Get it with yolov5 training.
The dataset uses celeba.
You can replace it with your own weight

20180402-114759

This is the weight file for facenet.
rogram and model of downloading facet

Inference

Inference can be run on most common media formats. $ python recognition/test.py --source file.jpg # image
file.mp4 # video
./dir # directory
0 # webcam
rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa # rtsp stream
http://112.50.243.8/PLTV/88888888/224/3221225900/1.m3u8 # http stream

Reproduce Our Training

Download celeba and yolov5, install Apex and run command below. I used yolov5s for training,you can use other weights to train your own model.

quote

yolov5:(https://github.com/ultralytics/yolov5)
blog:(https://blog.csdn.net/ninesky110/article/details/84844307)

facerecognition's People

Contributors

blackfeatherqq 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.