From 6a553d47c30fd341e8898d579d58cb93f4c9cab8 Mon Sep 17 00:00:00 2001 From: NingYuanLin <57001533+NingYuanLin@users.noreply.github.com> Date: Sun, 9 Oct 2022 20:14:17 +0800 Subject: [PATCH] fix bug: set adet as parent logger --- tools/visualize_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/visualize_data.py b/tools/visualize_data.py index 620cc879d..e3160b371 100644 --- a/tools/visualize_data.py +++ b/tools/visualize_data.py @@ -49,7 +49,7 @@ def parse_args(in_args=None): if __name__ == "__main__": args = parse_args() - logger = setup_logger() + logger = setup_logger(name='adet') logger.info("Arguments: " + str(args)) cfg = setup(args) @@ -98,4 +98,4 @@ def output(vis, fname): img = utils.read_image(dic["file_name"], "RGB") visualizer = Visualizer(img, metadata=metadata, scale=scale) vis = visualizer.draw_dataset_dict(dic) - output(vis, os.path.basename(dic["file_name"])) \ No newline at end of file + output(vis, os.path.basename(dic["file_name"]))