From 3e2df1bf105511f13c4a464a70a3936b61077d3b Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Sat, 31 Aug 2024 13:42:26 +0100 Subject: [PATCH] f string pring --- deepface/commons/weight_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deepface/commons/weight_utils.py b/deepface/commons/weight_utils.py index ad0d15b..2c2508e 100644 --- a/deepface/commons/weight_utils.py +++ b/deepface/commons/weight_utils.py @@ -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