anurag14 / accessfaceid Goto Github PK
View Code? Open in Web Editor NEWFace Detection, verification and recognition in Near real time on CPU brewing with all the SOTA all over
License: Apache License 2.0
Face Detection, verification and recognition in Near real time on CPU brewing with all the SOTA all over
License: Apache License 2.0
Green bbox for --> known
Red bbox for --> unkwon
statistics. Statistics Error: no unique mode; found 2 equally common values error
(opencv-env) F:\RBS FaceReid\accessfaceid>python livestream/newmain.py
2019-05-21 12:13:52.029104: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
[LOG] Loading Encoded faces Database ...
[Camera Server] Camera is initializing ...
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 0 faces!
[FaceTracker Server] Found 1 faces!
[Base Server] Running inference...
Traceback (most recent call last):
File "livestream/newmain.py", line 74, in
demo.run()
File ".\modules\camera_server.py", line 40, in run
self.processs(frame)
File "livestream/newmain.py", line 51, in processs
_similar_face_name = self.face_db.get_similar_faces(_face_description)
File ".\modules\face_db.py", line 37, in get_similar_faces
print('[Face DB] Looking for similar faces in a DataBase of {} faces...'.format(len(self.faces)))
AttributeError: 'Model' object has no attribute 'faces'
[ WARN:1] terminating async callback
hello, where to get vggface.h5? thankyou
It would be handy to have a visualization tool/script to check post alignment output.
Recognition doesn't work because encoding do not use face alignment
class FaceAlignment:
def __init__(self, landmarks_type, network_size=NetworkSize.LARGE,
device='cuda', flip_input=False, face_detector='sfd', verbose=False):
self.device = device
self.flip_input = flip_input
self.landmarks_type = landmarks_type
self.verbose = verbose
network_size = int(network_size)
if 'cuda' in device:
torch.backends.cudnn.benchmark = True
# Get the face detector
face_detector_module = __import__('face_alignment.detection.' + face_detector,
globals(), locals(), [face_detector], 0)
self.face_detector = face_detector_module.FaceDetector(device=device, verbose=verbose)
For certain face pictures faced library is unable to detect a face in the image and crashes after it. Building a if-else / try catch for same is required.
Recongition even after using insightface for one shot examples happens to have a lot of wrong labels being given.
Traceback (most recent call last):
File "register/register.py", line 79, in
register.run()
File ".\modules\camera_server.py", line 40, in run
self.processs(frame)
File "register/register.py", line 58, in processs
_similar_face_name = self.face_db.who_is_this_face(_face_description, cores='single')
File ".\modules\face_db.py", line 54, in who_is_this_face
who_is_this = compare_faces(self.faces_descriptions, self.faces_names, face_description)
File ".\utils\utils_insightface.py", line 57, in compare_faces
face_value,name= face_distance(known_face_encodings, names, face_query)
File ".\utils\utils_insightface.py", line 11, in face_distance
face_dist_value = np.linalg.norm(face_encodings - face_query, axis=1)
ValueError: operands could not be broadcast together with shapes (16384,) (512,)
[ WARN:0] terminating async callback
make fill box and font size dynamic in size
generates incorrect file link
[Live Streaming] -----------------------------------------------------------
[FaceTracker Server] Found 1 faces!
[Base Server] Running inference...
[Live Streaming] -----------------------------------------------------------
[FaceTracker Server] Found 1 faces!
[Base Server] Running inference...
Traceback (most recent call last):
File "livestream/newmain.py", line 79, in
livestream.run()
File ".\modules\camera_server.py", line 40, in run
self.processs(frame)
File "livestream/newmain.py", line 53, in processs
_similar_face_name = self.face_db.who_is_this_face(_face_description)
File ".\modules\face_db.py", line 54, in who_is_this_face
who_is_this = compare_faces(self.faces_descriptions, self.faces_names, face_description, mode)
File ".\utils\utils_insightface.py", line 57, in compare_faces
name = face_distance_single_majority(known_face_encodings, names, face_query)
File ".\utils\utils_insightface.py", line 19, in face_distance_single_majority
name = max(set(name_list),key=name_list.count)
ValueError: max() arg is an empty sequence
[ WARN:0] terminating async callback
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.