mirror of
https://github.com/open-mmlab/mmpretrain.git
synced 2025-06-03 14:59:18 +08:00
[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.
This commit is contained in:
parent
7eeb54ce9c
commit
c1b3757ae4
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user