From c5d06bd2ecd51aeb0fd29933e6bb1eaebb62811f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Tue, 4 Jun 2024 22:11:36 +0900 Subject: [PATCH] fix(vc.info): show_model_info similiarity --- infer/modules/vc/info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infer/modules/vc/info.py b/infer/modules/vc/info.py index d3ff8b4..7ef1c59 100644 --- a/infer/modules/vc/info.py +++ b/infer/modules/vc/info.py @@ -25,7 +25,7 @@ def show_model_info(cpt, show_long_id=False): + ")" ) sim = hash_similarity(h, hread) - if sim is float: sim = "%.2f%" % (sim*100) + if not isinstance(sim, str): sim = "%.2f%%" % (sim*100) if not show_long_id: h = i18n("不显示") if h != hread: