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

layer for external models are no longer being used #1091

Merged
merged 1 commit into from Mar 10, 2024

Conversation

serengil
Copy link
Owner

Tickets

#1090

What has been done

In the early versions of deepface, we were grabbing the target size of an image from the model's layers object's input_shape argument. This is available for keras based model but not available for external models such as Dlib or SFace. That is why, we added a layer object in the wrapper and referenced a class. However, we are now having input shape and output shape arguments in the base model's clients already. So, layers is not being used.

With this PR, we retired the layer object of external models.

How to test

make lint && make test

@serengil serengil merged commit 5c45aa5 into master Mar 10, 2024
4 checks passed
@serengil serengil deleted the feat-task-1003-layer-info-for-external-models branch March 10, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant