From 8a60fc4317e44bbd850b06f98482c3aac8887a87 Mon Sep 17 00:00:00 2001 From: Korabelnikov Aleks <nesoriti@yandex.ru> Date: Thu, 7 Nov 2019 21:48:32 +0300 Subject: [PATCH] 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 --- mmdet/apis/train.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mmdet/apis/train.py b/mmdet/apis/train.py index fee47d6..951f251 100644 --- a/mmdet/apis/train.py +++ b/mmdet/apis/train.py @@ -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 = [ -- GitLab