Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
SOLOv2-pytorch
Commits
5074eb1a
Commit
5074eb1a
authored
Feb 13, 2019
by
youkaichao
Committed by
Kai Chen
Feb 13, 2019
Browse files
Typo (#316)
* correct typo * correct registry typo * remove f-string * readme.md
parent
24da4c81
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+1
-1
mmdet/models/registry.py
mmdet/models/registry.py
+1
-1
No files found.
README.md
View file @
5074eb1a
...
@@ -184,7 +184,7 @@ We provide a training script using the launch utility provided by PyTorch.
...
@@ -184,7 +184,7 @@ We provide a training script using the launch utility provided by PyTorch.
Supported arguments are:
Supported arguments are:
-
--validate: perform evaluation every k (default=1) epochs during the training.
-
--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:
Expected results in WORK_DIR:
...
...
mmdet/models/registry.py
View file @
5074eb1a
...
@@ -24,7 +24,7 @@ class Registry(object):
...
@@ -24,7 +24,7 @@ class Registry(object):
if
not
issubclass
(
module_class
,
nn
.
Module
):
if
not
issubclass
(
module_class
,
nn
.
Module
):
raise
TypeError
(
raise
TypeError
(
'module must be a child of nn.Module, but got {}'
.
format
(
'module must be a child of nn.Module, but got {}'
.
format
(
type
(
module_class
))
)
module_class
))
module_name
=
module_class
.
__name__
module_name
=
module_class
.
__name__
if
module_name
in
self
.
_module_dict
:
if
module_name
in
self
.
_module_dict
:
raise
KeyError
(
'{} is already registered in {}'
.
format
(
raise
KeyError
(
'{} is already registered in {}'
.
format
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment