serengil / deepface

A Lightweight Face Recognition and Facial Attribute Analysis (Age, Gender, Emotion and Race) Library for Python
https://www.youtube.com/watch?v=WnUVYQP4h44&list=PLsS_1RYmYQQFdWqxQggXHynP1rqaYXv_E&index=1
MIT License
14.34k stars 2.2k forks source link

[Bug] alignment_procedure() takes 3 positional arguments but 4 were given #303

Closed robonetphy closed 3 years ago

robonetphy commented 3 years ago

I am installing deepface on colab using following command:

  !pip install deepface

and when I try to run code:

  from deepface import DeepFace
  from deepface.basemodels import Facenet
  from deepface.commons import functions
  embedding = DeepFace.represent(img_path, model_name = 'Facenet', detector_backend = 'retinaface')

It's giving me following problem: image

But, it's working properly when I install

!pip install deepface==0.0.63
serengil commented 3 years ago

Oke, I understood the problem. This new argument added in retinaface because of a bug. Even though retinaface code was updated, it was not put to pip. Now, it is up-to-date in pip. Please update retinaface requirement to 0.0.5.