GithubHelp home page GithubHelp logo

vectornguyen76 / face-recognition Goto Github PK

View Code? Open in Web Editor NEW
68.0 68.0 15.0 129.26 MB

Real-Time Face Recognition use SCRFD, ArcFace, ByteTrack, Similarity Measure

License: MIT License

Python 100.00%
arcface bytetrack cosine-similarity face-alignment face-detection face-recognition insightface multithreading real-time scrfd yolov5-face

face-recognition's People

Contributors

jayllfpt avatar thanhphuc21 avatar vectornguyen76 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  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  avatar  avatar

Watchers

 avatar  avatar

face-recognition's Issues

Error while running

Traceback (most recent call last):
File "/home/muflih/Development/src/gitlab.com/face-recog-example/face-recognition/main.py", line 29, in
model = attempt_load("face_detection/yolov5_face/yolov5n-0.5.pt", map_location=device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/muflih/Development/src/gitlab.com/face-recog-example/face-recognition/face_detection/yolov5_face/models/experimental.py", line 136, in attempt_load
torch.load(w, map_location=map_location)["model"].float().fuse().eval()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/muflih/Development/src/gitlab.com/face-recog-example/face-recognition/myenv/lib/python3.11/site-packages/torch/serialization.py", line 986, in load
with _open_file_like(f, 'rb') as opened_file:
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/muflih/Development/src/gitlab.com/face-recog-example/face-recognition/myenv/lib/python3.11/site-packages/torch/serialization.py", line 435, in _open_file_like
return _open_file(name_or_buffer, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/muflih/Development/src/gitlab.com/face-recog-example/face-recognition/myenv/lib/python3.11/site-packages/torch/serialization.py", line 416, in init
super().init(open(name, mode))
^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'face_detection/yolov5_face/yolov5n-0.5.pt'

Low FPS

I am running this on Windows, Rtx 3080 GPU and only getting 15-18 FPS. How can I get more FPS

Help connecting the model

Is it possible to connect and work with yolov8n-face.pt . And use Yolo v8. I'm trying to do it but no result yet.

FileNotFoundError

Mình thấy không có file insightface/resnet100_backbone.pth . Bạn có thể chia sẻ không

can you let me know python version you used?

I am using python 3.11.5
torch 2.0.0+cu118
torchvision 0.15.1+cu118

when I run detect.py, I got following error.

File "E:\project\python\react_facial\sample\face-recognition-master\detect.py", line 174, in
main()
File "E:\project\python\react_facial\sample\face-recognition-master\detect.py", line 126, in main
bboxs, landmarks = get_face(frame)
^^^^^^^^^^^^^^^
File "E:\project\python\react_facial\sample\face-recognition-master\detect.py", line 90, in get_face
pred = model(img[None, :])[0]
^^^^^^^^^^^^^^^^^^^
File "C:\Users\KIC\anaconda3\Lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\project\python\react_facial\sample\face-recognition-master\yolov5_face\models\yolo.py", line 180, in forward
return self.forward_once(x, profile) # single-scale inference, train
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\project\python\react_facial\sample\face-recognition-master\yolov5_face\models\yolo.py", line 196, in forward_once
x = m(x) # run
^^^^
File "C:\Users\KIC\anaconda3\Lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\KIC\anaconda3\Lib\site-packages\torch\nn\modules\upsampling.py", line 157, in forward
recompute_scale_factor=self.recompute_scale_factor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\KIC\anaconda3\Lib\site-packages\torch\nn\modules\module.py", line 1614, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'

Someone said this issue may arise due to a mismatch between the versions of the YOLOv5 model and the PyTorch library.

Ask about the value score.

Dear,

When identifying the face I see that a value called score is displayed.
I would like to know if it refers to the accuary score metric or is it another value.

Greetings.

image

recognition ?

你好,多线程同时识别多个人,会显示同一个ID!怎么解决呢

16_backbone.pth

作者,您好,可以上传16_backbone.pth这个文件吗?,或者告诉一个这个是在insightface那里,哪一个训练模型训练来的?

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.