vectornguyen76 / face-recognition Goto Github PK
View Code? Open in Web Editor NEWReal-Time Face Recognition use SCRFD, ArcFace, ByteTrack, Similarity Measure
License: MIT License
Real-Time Face Recognition use SCRFD, ArcFace, ByteTrack, Similarity Measure
License: MIT License
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'
Can you upload a model file or guide me how to use retinaface in it?
I am running this on Windows, Rtx 3080 GPU and only getting 15-18 FPS. How can I get more FPS
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.
Mình thấy không có file insightface/resnet100_backbone.pth . Bạn có thể chia sẻ không
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.
Is the landmark value regressed in yolov5-face used for face-alignment?
Or do use it right away for recognition?
Or you don't use it for any works?
Thank you !
你好,多线程同时识别多个人,会显示同一个ID!怎么解决呢
I have trained Yolov5 model for Catttle Face Recognition. How can i run that Train model To this Repo @vectornguyen76 @ThanhPhuc21 @jayllfpt
作者,您好,可以上传16_backbone.pth这个文件吗?,或者告诉一个这个是在insightface那里,哪一个训练模型训练来的?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.