Merge pull request #1151 from serengil/feat-task-2803-facenet-documentation

docstrings updated
This commit is contained in:
Sefik Ilkin Serengil 2024-03-28 18:50:36 +00:00 committed by GitHub
commit 0f89272532
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,9 +97,14 @@ def scaling(x, scale):
return 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: Args:
dimension (int): number of dimensions in the embedding layer dimension (int): number of dimensions in the embedding layer
Returns: Returns:
@ -1685,7 +1690,7 @@ def load_facenet128d_model(
Returns: Returns:
model (Model) model (Model)
""" """
model = InceptionResNetV2() model = InceptionResNetV1()
# ----------------------------------- # -----------------------------------
@ -1715,7 +1720,7 @@ def load_facenet512d_model(
model (Model) model (Model)
""" """
model = InceptionResNetV2(dimension=512) model = InceptionResNetV1(dimension=512)
# ------------------------- # -------------------------