Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
food-round2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joel Joseph
food-round2
Commits
5074eb1a
Commit
5074eb1a
authored
6 years ago
by
youkaichao
Committed by
Kai Chen
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Typo (#316)
* correct typo * correct registry typo * remove f-string * readme.md
parent
24da4c81
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
mmdet/models/registry.py
+1
-1
1 addition, 1 deletion
mmdet/models/registry.py
with
2 additions
and
2 deletions
README.md
+
1
−
1
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:
...
...
This diff is collapsed.
Click to expand it.
mmdet/models/registry.py
+
1
−
1
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
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment