From d9abd8870e81fce4be4cdb0d4704c8ec9c93a5da Mon Sep 17 00:00:00 2001 From: WuHaobo Date: Tue, 21 Apr 2020 01:37:27 +0800 Subject: [PATCH] add advertisement --- ppcls/utils/config.py | 2 +- ppcls/utils/logger.py | 2 +- tools/train.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ppcls/utils/config.py b/ppcls/utils/config.py index e1674314..9f3d4b9c 100644 --- a/ppcls/utils/config.py +++ b/ppcls/utils/config.py @@ -84,7 +84,7 @@ def print_config(config): Arguments: config: configs """ - logger.advertisement() + logger.advertise() print_dict(config) diff --git a/ppcls/utils/logger.py b/ppcls/utils/logger.py index b66818fd..43cb2f06 100644 --- a/ppcls/utils/logger.py +++ b/ppcls/utils/logger.py @@ -71,7 +71,7 @@ def error(fmt, *args): _logger.error(fmt, *args) -def advertisement(): +def advertise(): """ Show the advertising message like the following: diff --git a/tools/train.py b/tools/train.py index 1fc1465e..fda294e7 100644 --- a/tools/train.py +++ b/tools/train.py @@ -108,4 +108,4 @@ def main(args): if __name__ == '__main__': args = parse_args() main(args) - logger.advertisement() + logger.advertise() -- GitLab