diff --git a/README.md b/README.md index 919f9e4eb3fdd355100b23a05152b88e4d054e9b..7861d5bc66c463aa591bc91b99dc3a11fb0f4d55 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 7e45ad450dd777e01c9ee3ea0e0aa3f036d40065..bab395d60597f264e86284da275a382074921861 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(