[Fix] Fix a wrong paramter of `get_root_logger` in `apis/train.py`. (#486)

The get_root_logger(log_file=None, log_level=logging.INFO) function does not needs the string type cfg.log_level as input. This bug does not have negative effect.
pull/489/head
Tan Y.Q 2021-10-13 14:54:47 +08:00 committed by GitHub
parent 7eeb54ce9c
commit c1b3757ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def train_model(model,
timestamp=None,
device='cuda',
meta=None):
logger = get_root_logger(cfg.log_level)
logger = get_root_logger()
# prepare data loaders
dataset = dataset if isinstance(dataset, (list, tuple)) else [dataset]