Skip to content

Commit

Permalink
Remove type hints (PEP484)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-Stragier committed Mar 1, 2023
1 parent 7b0f34c commit 0d17636
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deepface/commons/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# --------------------------------------------------


def initialize_folder() -> None:
def initialize_folder():
"""Initialize the folder for storing weights and models.
Raises:
Expand All @@ -46,7 +46,7 @@ def initialize_folder() -> None:
print("Directory ", home, "/.deepface/weights created")


def get_deepface_home() -> str:
def get_deepface_home():
"""Get the home directory for storing weights and models.
Returns:
Expand Down Expand Up @@ -120,7 +120,7 @@ def extract_faces(
grayscale=False,
enforce_detection=True,
align=True,
) -> list:
):
"""Extract faces from an image.
Args:
Expand Down Expand Up @@ -285,7 +285,7 @@ def normalize_input(img, normalization="base"):
return img


def find_target_size(model_name: str) -> tuple:
def find_target_size(model_name):
"""Find the target size of the model.
Args:
Expand Down

0 comments on commit 0d17636

Please sign in to comment.