Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get AttributeError: 'Tensor' object has no attribute 'numpy' when RetinaFace.detect_faces(image) #30

Closed
madityarafip opened this issue Mar 28, 2022 · 2 comments

Comments

@madityarafip
Copy link

Traceback (most recent call last):
File "face_service.py", line 101, in face_detection    
    bboxes = RetinaFace.detect_faces(image)
File "/usr/local/lib/python3.8/dist-packages/retinaface/RetinaFace.py", line 91, in detect_faces
    net_out = [elt.numpy() for elt in net_out]
File "/usr/local/lib/python3.8/dist-packages/retinaface/RetinaFace.py", line 91, in <listcomp>
    net_out = [elt.numpy() for elt in net_out]
File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/framework/ops.py", line 401, in __getattr__
    self.__getattribute__(name)
AttributeError: 'Tensor' object has no attribute 'numpy'
@madityarafip madityarafip changed the title Get AttributeError: 'Tensor' object has no attribute 'numpy' Get AttributeError: 'Tensor' object has no attribute 'numpy' when RetinaFace.detect_faces(image) Mar 28, 2022
@serengil
Copy link
Owner

please provide more information e.g. your input image and your code

@serengil
Copy link
Owner

closed due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants