We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03a6244 commit 7ec952fCopy full SHA for 7ec952f
tools/train.py
@@ -217,8 +217,10 @@ def main():
217
218
datasets = [build_dataset(cfg.data.train)]
219
if len(cfg.workflow) == 2:
220
+ assert 'val' in [mode for (mode, _) in cfg.workflow]
221
val_dataset = copy.deepcopy(cfg.data.val)
- val_dataset.pipeline = cfg.data.train.pipeline
222
+ val_dataset.pipeline = cfg.data.train.get(
223
+ 'pipeline', cfg.data.train.dataset.get('pipeline'))
224
datasets.append(build_dataset(val_dataset))
225
if cfg.checkpoint_config is not None:
226
# save mmdet version, config file content and class names in
0 commit comments