From a86806b01acdcf07f2a6b86c31e08893fc319d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=84=B6?= <396147081@qq.com> Date: Sat, 2 Sep 2023 11:02:46 +0800 Subject: [PATCH] fix: logger wrong call (#1159) * fix: logger wrong call * fix: log error in rvc_for_realtime.py --- configs/config.py | 4 ++-- tools/rvc_for_realtime.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/config.py b/configs/config.py index 701e08f..bfa7873 100644 --- a/configs/config.py +++ b/configs/config.py @@ -114,11 +114,11 @@ class Config: or "1070" in self.gpu_name or "1080" in self.gpu_name ): - logger.info("Found GPU", self.gpu_name, ", force to fp32") + logger.info("Found GPU %s, force to fp32", self.gpu_name) self.is_half = False use_fp32_config() else: - logger.info("Found GPU", self.gpu_name) + logger.info("Found GPU %s", self.gpu_name) self.gpu_mem = int( torch.cuda.get_device_properties(i_device).total_memory / 1024 diff --git a/tools/rvc_for_realtime.py b/tools/rvc_for_realtime.py index 1b693b9..906bf1e 100644 --- a/tools/rvc_for_realtime.py +++ b/tools/rvc_for_realtime.py @@ -341,5 +341,5 @@ class RVC: .float() ) t5 = ttime() - logger.info("Spent time: fea =", t2 - t1, ", index =", t3 - t2, ", f0 =", t4 - t3, ", model =", t5 - t4) + logger.info("Spent time: fea = %s, index = %s, f0 = %s, model = %s", t2 - t1, t3 - t2, t4 - t3, t5 - t4) return infered_audio