-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
added buffalo_l model to deepface #1439
Conversation
thresholds are missing for various distance metrics for this model here - https://github.com/serengil/deepface/blob/master/deepface/modules/verification.py#L409 |
@serengil made the necessary changes could you review once |
@Raghucharan16 Added my review already |
My bad will do that. |
I cannot see the changes in the PR - https://github.com/serengil/deepface/pull/1439/files |
41ae9bb
to
c272bef
Compare
Hey @serengil they have provided only google drive links for the model but i doubt this may work or not. what can we do for model's path? push it to somewhere in github? |
Still you can download it with gdown as https://github.com/serengil/deepface/blob/master/deepface/models/face_detection/Yolo.py#L31 |
interestingly, it was working fine for me in the first run. |
add this pylint: disable=line-too-long |
I found a bug from deepface import DeepFace
model_name = "Buffalo_L"
ndim = 512
is_verified = DeepFace.verify(
img1_path = "dataset/img1.jpg",
img2_path = "dataset/img2.jpg",
model_name = model_name,
)
img_paths = ["dataset/img1.jpg", "dataset/img2.jpg", "dataset/couple.jpg"]
batch_results = DeepFace.represent(
img_path=img_paths,
model_name=model_name,)
assert isinstance(batch_results, list)
assert len(batch_results) == len(img_paths)
for batch_result in batch_results:
assert isinstance(batch_result, list)
for result in batch_result:
assert isinstance(result, dict)
assert isinstance(result["embedding"], list)
assert len(result["embedding"]) == ndim This is because preprocess in Buffalo_L.py is being called with (4, 112, 112, 3) shaped numpy array but the following code block ignores them all.
|
Failed at linting
please run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think everything seems fine. let me know if any corrections are needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@serengil Thanking you for maintaining this cool project. Now i guess you may need to add the new model (buffalo_L) to readme 😅Looking forward to collaborate with you again.. |
Will do Meanwhile, you can create a PR to update readme |
Oh sure...will do that.. |
Tickets
#1187
What has been done
With this PR, buffao_l model will be added to deepface's face recognition models. I ran the face-recognition-how.py for testing the buffalo_l model.
How to test