From 194ad728523e8182d0acaf42537412af06a09bb3 Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Tue, 27 Dec 2022 17:06:05 +0800 Subject: [PATCH] fix warning (#7563) --- ppdet/utils/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppdet/utils/download.py b/ppdet/utils/download.py index 5319152df..8fb95afa3 100644 --- a/ppdet/utils/download.py +++ b/ppdet/utils/download.py @@ -191,7 +191,7 @@ def get_dataset_path(path, annotation, image_dir): "Dataset {} is not valid for reason above, please check again.". format(osp.realpath(path))) else: - logger.WARNING( + logger.warning( "Dataset {} is not valid for reason above, try searching {} or " "downloading dataset...".format(osp.realpath(path), DATASET_HOME)) -- GitLab