mirror of
https://github.com/serengil/deepface.git
synced 2025-06-09 04:55:24 +00:00
minor changes and typos corrected
This commit is contained in:
parent
3a6ab4820b
commit
b4a35fe80b
@ -300,7 +300,7 @@ def find(
|
|||||||
silent (boolean): Suppress or allow some log messages for a quieter analysis process
|
silent (boolean): Suppress or allow some log messages for a quieter analysis process
|
||||||
(default is False).
|
(default is False).
|
||||||
|
|
||||||
refresh_data_base (boolean): Sincronizes the images representation (pkl) file with the
|
refresh_database (boolean): Synchronizes the images representation (pkl) file with the
|
||||||
directory/db files, if set to false, it will ignore any file changes inside the db_path
|
directory/db files, if set to false, it will ignore any file changes inside the db_path
|
||||||
(default is True).
|
(default is True).
|
||||||
|
|
||||||
@ -334,7 +334,7 @@ def find(
|
|||||||
threshold=threshold,
|
threshold=threshold,
|
||||||
normalization=normalization,
|
normalization=normalization,
|
||||||
silent=silent,
|
silent=silent,
|
||||||
refresh_data_base=refresh_database,
|
refresh_database=refresh_database,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ def find(
|
|||||||
threshold: Optional[float] = None,
|
threshold: Optional[float] = None,
|
||||||
normalization: str = "base",
|
normalization: str = "base",
|
||||||
silent: bool = False,
|
silent: bool = False,
|
||||||
refresh_data_base: bool = True,
|
refresh_database: bool = True,
|
||||||
) -> List[pd.DataFrame]:
|
) -> List[pd.DataFrame]:
|
||||||
"""
|
"""
|
||||||
Identify individuals in a database
|
Identify individuals in a database
|
||||||
@ -68,7 +68,7 @@ def find(
|
|||||||
|
|
||||||
silent (boolean): Suppress or allow some log messages for a quieter analysis process.
|
silent (boolean): Suppress or allow some log messages for a quieter analysis process.
|
||||||
|
|
||||||
refresh_data_base (boolean): Sincronizes the images representation (pkl) file with the
|
refresh_database (boolean): Synchronizes the images representation (pkl) file with the
|
||||||
directory/db files, if set to false, it will ignore any file changes inside the db_path
|
directory/db files, if set to false, it will ignore any file changes inside the db_path
|
||||||
directory (default is True).
|
directory (default is True).
|
||||||
|
|
||||||
@ -156,12 +156,12 @@ def find(
|
|||||||
old_images = []
|
old_images = []
|
||||||
replaced_images = []
|
replaced_images = []
|
||||||
|
|
||||||
if not refresh_data_base:
|
if not refresh_database:
|
||||||
logger.info(f"There could be changes in {db_path} not tracked. Set refresh_data_base to true to assure that any changes will be tracked.")
|
logger.info(f"There could be changes in {db_path} not tracked. Set refresh_database to true to assure that any changes will be tracked.")
|
||||||
|
|
||||||
|
|
||||||
# Enforce data consistency amongst on disk images and pickle file
|
# Enforce data consistency amongst on disk images and pickle file
|
||||||
if refresh_data_base:
|
if refresh_database:
|
||||||
if len(storage_images) == 0:
|
if len(storage_images) == 0:
|
||||||
raise ValueError(f"No item found in {db_path}")
|
raise ValueError(f"No item found in {db_path}")
|
||||||
|
|
||||||
@ -170,7 +170,6 @@ def find(
|
|||||||
old_images = list(set(pickled_images) - set(storage_images)) # images removed from storage
|
old_images = list(set(pickled_images) - set(storage_images)) # images removed from storage
|
||||||
|
|
||||||
# detect replaced images
|
# detect replaced images
|
||||||
replaced_images = []
|
|
||||||
for current_representation in representations:
|
for current_representation in representations:
|
||||||
identity = current_representation["identity"]
|
identity = current_representation["identity"]
|
||||||
if identity in old_images:
|
if identity in old_images:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user