mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
Remove type hints (PEP484)
This commit is contained in:
parent
7b0f34cbb1
commit
0d176360ad
@ -29,7 +29,7 @@ elif tf_major_version == 2:
|
|||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
def initialize_folder() -> None:
|
def initialize_folder():
|
||||||
"""Initialize the folder for storing weights and models.
|
"""Initialize the folder for storing weights and models.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
@ -46,7 +46,7 @@ def initialize_folder() -> None:
|
|||||||
print("Directory ", home, "/.deepface/weights created")
|
print("Directory ", home, "/.deepface/weights created")
|
||||||
|
|
||||||
|
|
||||||
def get_deepface_home() -> str:
|
def get_deepface_home():
|
||||||
"""Get the home directory for storing weights and models.
|
"""Get the home directory for storing weights and models.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
@ -120,7 +120,7 @@ def extract_faces(
|
|||||||
grayscale=False,
|
grayscale=False,
|
||||||
enforce_detection=True,
|
enforce_detection=True,
|
||||||
align=True,
|
align=True,
|
||||||
) -> list:
|
):
|
||||||
"""Extract faces from an image.
|
"""Extract faces from an image.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
@ -285,7 +285,7 @@ def normalize_input(img, normalization="base"):
|
|||||||
return img
|
return img
|
||||||
|
|
||||||
|
|
||||||
def find_target_size(model_name: str) -> tuple:
|
def find_target_size(model_name):
|
||||||
"""Find the target size of the model.
|
"""Find the target size of the model.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user