From f8ee61ad466519bf65229ccea5faab98e1f66acc Mon Sep 17 00:00:00 2001 From: Liyulingyue <852433440@qq.com> Date: Thu, 25 Apr 2024 06:18:27 +0800 Subject: [PATCH] fix codestyle --- tools/program.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/program.py b/tools/program.py index 0670d90b32c..d9aa068209b 100755 --- a/tools/program.py +++ b/tools/program.py @@ -795,10 +795,11 @@ def preprocess(is_train=False): loggers = [] - if "use_visualdl" in config["Global"] and config["Global"]["use_visualdl"]: save_model_dir = config['Global']['save_model_dir'] + if "use_visualdl" in config["Global"] and config["Global"]["use_visualdl"]: logger.warning( "You are using VisualDL, the VisualDL is deprecated and " - "removed in ppocr!") + "removed in ppocr!" + ) log_writer = None if ( "use_wandb" in config["Global"] and config["Global"]["use_wandb"]