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
345a5e3a
Commit
345a5e3a
authored
Nov 10, 2019
by
Thang Vu
Committed by
Kai Chen
Nov 10, 2019
Browse files
move validation warning to _non_dist_train() (#1651)
parent
8a60fc43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mmdet/apis/train.py
mmdet/apis/train.py
+5
-5
No files found.
mmdet/apis/train.py
View file @
345a5e3a
...
@@ -141,11 +141,6 @@ def build_optimizer(model, optimizer_cfg):
...
@@ -141,11 +141,6 @@ def build_optimizer(model, optimizer_cfg):
def
_dist_train
(
model
,
dataset
,
cfg
,
validate
=
False
):
def
_dist_train
(
model
,
dataset
,
cfg
,
validate
=
False
):
if
validate
:
raise
NotImplementedError
(
'Built-in validation is not implemented '
'yet in not-distributed training. Use '
'distributed training or test.py and '
'*eval.py scripts instead.'
)
# prepare data loaders
# prepare data loaders
dataset
=
dataset
if
isinstance
(
dataset
,
(
list
,
tuple
))
else
[
dataset
]
dataset
=
dataset
if
isinstance
(
dataset
,
(
list
,
tuple
))
else
[
dataset
]
data_loaders
=
[
data_loaders
=
[
...
@@ -198,6 +193,11 @@ def _dist_train(model, dataset, cfg, validate=False):
...
@@ -198,6 +193,11 @@ def _dist_train(model, dataset, cfg, validate=False):
def
_non_dist_train
(
model
,
dataset
,
cfg
,
validate
=
False
):
def
_non_dist_train
(
model
,
dataset
,
cfg
,
validate
=
False
):
if
validate
:
raise
NotImplementedError
(
'Built-in validation is not implemented '
'yet in not-distributed training. Use '
'distributed training or test.py and '
'*eval.py scripts instead.'
)
# prepare data loaders
# prepare data loaders
dataset
=
dataset
if
isinstance
(
dataset
,
(
list
,
tuple
))
else
[
dataset
]
dataset
=
dataset
if
isinstance
(
dataset
,
(
list
,
tuple
))
else
[
dataset
]
data_loaders
=
[
data_loaders
=
[
...
...
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