Skip to content
Snippets Groups Projects
Commit 8a60fc43 authored by Korabelnikov Aleks's avatar Korabelnikov Aleks Committed by Kai Chen
Browse files

prevent silent skip of validation #1594 (#1624)

* prevent silent skip of validation #1594

see https://github.com/open-mmlab/mmdetection/issues/1594

* correct for flake8
parent e1f6ef2c
No related branches found
No related tags found
No related merge requests found
......@@ -141,6 +141,11 @@ def build_optimizer(model, optimizer_cfg):
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
dataset = dataset if isinstance(dataset, (list, tuple)) else [dataset]
data_loaders = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment