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

docstrings updated #1151

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions deepface/basemodels/Facenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,14 @@ def scaling(x, scale):
return x * scale


def InceptionResNetV2(dimension: int = 128) -> Model:
def InceptionResNetV1(dimension: int = 128) -> Model:
"""
InceptionResNetV2 model
InceptionResNetV1 model heavily inspired from
github.com/davidsandberg/facenet/blob/master/src/models/inception_resnet_v1.py
As mentioned in Sandberg's repo's readme, pre-trained models are using Inception ResNet v1
Besides training process is documented at
sefiks.com/2018/09/03/face-recognition-with-facenet-in-keras/

Args:
dimension (int): number of dimensions in the embedding layer
Returns:
Expand Down Expand Up @@ -1685,7 +1690,7 @@ def load_facenet128d_model(
Returns:
model (Model)
"""
model = InceptionResNetV2()
model = InceptionResNetV1()

# -----------------------------------

Expand Down Expand Up @@ -1715,7 +1720,7 @@ def load_facenet512d_model(
model (Model)
"""

model = InceptionResNetV2(dimension=512)
model = InceptionResNetV1(dimension=512)

# -------------------------

Expand Down