Giter Club home page Giter Club logo

Comments (8)

serengil avatar serengil commented on June 12, 2024

it worked for me

from retinaface.

serengil avatar serengil commented on June 12, 2024

if you set the threshold to a lower value, then it will find faces easily.

https://github.com/serengil/retinaface/blob/master/retinaface/RetinaFace.py#L210

from retinaface.

newbiemate avatar newbiemate commented on June 12, 2024

@serengil Could you share what values you used? I tried lowering it:

faces = RetinaFace.extract_faces(img_path = "test.jpg", align = True,  threshold=0.01)

But I'm still getting an empty array. Not sure if it makes a difference, but I'm not using CUDA to do any calculations:

Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
 Ignore above cudart dlerror if you do not have a GPU set up on your machine.

And I'm using a clean install of deepface, current build using pip install -e .

from retinaface.

serengil avatar serengil commented on June 12, 2024

I used the default one. You can find the result in the attachment.

from retinaface import RetinaFace
import matplotlib.pyplot as plt

img_path = "x.jpg"

faces = RetinaFace.extract_faces(img_path = img_path, align = True)

for face in faces:
  plt.imshow(face)
  plt.show()

which version are you using? this is mine

(base) sefik@L-GCCDXDDT:~/workspace/facial-recognition-benchmarks-main$ pip show retina-face
Name: retina-face
Version: 0.0.13

Untitled

from retinaface.

newbiemate avatar newbiemate commented on June 12, 2024

This is what I have:

Name: retina-face
Version: 0.0.15

This is my pip freeze:

absl-py==2.1.0
astunparse==1.6.3
beautifulsoup4==4.12.3
blinker==1.7.0
cachetools==5.3.3
certifi==2024.2.2
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
contourpy==1.2.0
cycler==0.12.1
# Editable install with no version control (deepface==0.0.90)
-e c:\my programs\python projects\phototest\deepface-master
filelock==3.13.3
fire==0.6.0
Flask==3.0.2
flatbuffers==1.12
fonttools==4.50.0
gast==0.4.0
gdown==5.1.0
google-auth==2.29.0
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
grpcio==1.62.1
gunicorn==21.2.0
h5py==3.10.0
idna==3.6
importlib_metadata==7.1.0
importlib_resources==6.4.0
itsdangerous==2.1.2
Jinja2==3.1.3
keras==2.9.0
Keras-Preprocessing==1.1.2
kiwisolver==1.4.5
libclang==18.1.1
Markdown==3.6
MarkupSafe==2.1.5
matplotlib==3.8.3
mtcnn==0.1.1
numpy==1.22.3
oauthlib==3.2.2
opencv-python==4.9.0.80
opt-einsum==3.3.0
packaging==24.0
pandas==2.0.3
Pillow==9.0.0
protobuf==3.19.6
pyasn1==0.6.0
pyasn1_modules==0.4.0
pyparsing==3.1.2
PySocks==1.7.1
python-dateutil==2.9.0.post0
pytz==2024.1
requests==2.31.0
requests-oauthlib==2.0.0
retina-face==0.0.15
rsa==4.9
six==1.16.0
soupsieve==2.5
tensorboard==2.9.1
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow==2.9.0
tensorflow-estimator==2.9.0
tensorflow-io-gcs-filesystem==0.31.0
termcolor==2.4.0
tqdm==4.66.2
typing_extensions==4.10.0
tzdata==2024.1
urllib3==2.2.1
Werkzeug==3.0.1
wrapt==1.16.0
zipp==3.18.1

from retinaface.

serengil avatar serengil commented on June 12, 2024

Okay I get the same error when upgrade to 15.

from retinaface.

serengil avatar serengil commented on June 12, 2024

This is a bug. You can downgrade this to 13 not to have that error. Hope to sort this soon.

from retinaface.

serengil avatar serengil commented on June 12, 2024

Closed with PR - #100

from retinaface.

Related Issues (20)

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.