From 5074eb1a9b0d0726bd08fe643717dd992d34e078 Mon Sep 17 00:00:00 2001 From: youkaichao <youkaichao@gmail.com> Date: Wed, 13 Feb 2019 17:28:53 +0800 Subject: [PATCH] Typo (#316) * correct typo * correct registry typo * remove f-string * readme.md --- README.md | 2 +- mmdet/models/registry.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 919f9e4..7861d5b 100644 --- a/README.md +++ b/README.md @@ -184,7 +184,7 @@ We provide a training script using the launch utility provided by PyTorch. Supported arguments are: - --validate: perform evaluation every k (default=1) epochs during the training. -- --work_dir <WORK_DIR>: if specified, the path in config file will be overwritten. +- --work_dir <WORK_DIR>: if specified, the path in config file will be replaced. Expected results in WORK_DIR: diff --git a/mmdet/models/registry.py b/mmdet/models/registry.py index 7e45ad4..bab395d 100644 --- a/mmdet/models/registry.py +++ b/mmdet/models/registry.py @@ -24,7 +24,7 @@ class Registry(object): if not issubclass(module_class, nn.Module): raise TypeError( 'module must be a child of nn.Module, but got {}'.format( - type(module_class))) + module_class)) module_name = module_class.__name__ if module_name in self._module_dict: raise KeyError('{} is already registered in {}'.format( -- GitLab