Giter VIP home page Giter VIP logo

accessfaceid's People

Contributors

anurag14 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

accessfaceid's Issues

majority mode in utils/utils_insightface.py face when no match

[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

Face alignment library uses inferior detection implicitly

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)

Tracker has no visualization for no faces in start. Also fails in first face visualization

(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

register/register.py fails after adding a unknown person

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

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.