Skip to content

Commit

Permalink
f string pring
Browse files Browse the repository at this point in the history
  • Loading branch information
serengil committed Aug 31, 2024
1 parent 9d8d2dd commit 3e2df1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepface/commons/weight_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ def download_weights_if_necessary(
if compress_type == "zip":
with zipfile.ZipFile(f"{target_file}.zip", "r") as zip_ref:
zip_ref.extractall(os.path.join(home, ".deepface/weights"))
logger.info("{target_file}.zip unzipped")
logger.info(f"{target_file}.zip unzipped")
elif compress_type == "bz2":
bz2file = bz2.BZ2File(f"{target_file}.bz2")
data = bz2file.read()
with open(target_file, "wb") as f:
f.write(data)
logger.info("{target_file}.bz2 unzipped")
logger.info(f"{target_file}.bz2 unzipped")

return target_file

0 comments on commit 3e2df1b

Please sign in to comment.