loading annotations into memory...
Done (t=0.18s)
creating index...
index created!
/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py:173: UserWarning: Runner was deprecated, please use EpochBasedRunner instead
'Runner was deprecated, please use EpochBasedRunner instead')
/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/mmcv/runner/base_runner.py:59: UserWarning: batch_processor is deprecated, please implement train_step() and val_step() in the model instead.
warnings.warn('batch_processor is deprecated, please implement '
2020-07-26 15:38:11,938 - mmdet - INFO - Start running, host: xuwt@DGX-2, work_dir: /raid/xuwt/ting/DetectoRS/work_dirs/DetectoRS_mstrain_400_1200_x101_32x4d_40e.py
2020-07-26 15:38:11,938 - mmdet - INFO - workflow: [('train', 1)], max: 40 epochs
Traceback (most recent call last):
File "tools/train.py", line 142, in
main()
File "tools/train.py", line 138, in main
meta=meta)
File "/raid/xuwt/ting/DetectoRS/mmdet/apis/train.py", line 111, in train_detector
meta=meta)
File "/raid/xuwt/ting/DetectoRS/mmdet/apis/train.py", line 242, in _non_dist_train
runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
File "/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 122, in run
epoch_runner(data_loaders[i], kwargs)
File "/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 35, in train
self.model, data_batch, train_mode=True, kwargs)
File "/raid/xuwt/ting/DetectoRS/mmdet/apis/train.py", line 75, in batch_processor
losses = model(data)
File "/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, *kwargs)
File "/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 150, in forward
return self.module(inputs[0], kwargs[0])
File "/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, kwargs)
File "/raid/xuwt/ting/DetectoRS/mmdet/core/fp16/decorators.py", line 49, in new_func
return old_func(args, kwargs)
File "/raid/xuwt/ting/DetectoRS/mmdet/models/detectors/base.py", line 147, in forward
return self.forward_train(img, img_metas, kwargs)
File "/raid/xuwt/ting/DetectoRS/mmdet/models/detectors/htc.py", line 216, in forward_train
rpn_loss_inputs, gt_bboxes_ignore=gt_bboxes_ignore)
File "/raid/xuwt/ting/DetectoRS/mmdet/models/anchor_heads/rpn_head.py", line 51, in loss
gt_bboxes_ignore=gt_bboxes_ignore)
File "/raid/xuwt/ting/DetectoRS/mmdet/core/fp16/decorators.py", line 127, in new_func
return old_func(*args, *kwargs)
File "/raid/xuwt/ting/DetectoRS/mmdet/models/anchor_heads/anchor_head.py", line 189, in loss
sampling=self.sampling)
File "/raid/xuwt/ting/DetectoRS/mmdet/core/anchor/anchor_target.py", line 63, in anchor_target
unmap_outputs=unmap_outputs)
File "/raid/xuwt/ting/DetectoRS/mmdet/core/utils/misc.py", line 24, in multi_apply
return tuple(map(list, zip(map_results)))
File "/raid/xuwt/ting/DetectoRS/mmdet/core/anchor/anchor_target.py", line 116, in anchor_target_single
anchors, gt_bboxes, gt_bboxes_ignore, None, cfg)
File "/raid/xuwt/ting/DetectoRS/mmdet/core/bbox/assign_sampling.py", line 27, in assign_and_sample
bbox_assigner = build_assigner(cfg.assigner)
File "/raid/xuwt/ting/DetectoRS/mmdet/core/bbox/assign_sampling.py", line 10, in build_assigner
return mmcv.runner.obj_from_dict(cfg, assigners, default_args=kwargs)
File "/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/mmcv/runner/utils.py", line 55, in obj_from_dict
return obj_type(args)
TypeError: init() got an unexpected keyword argument 'match_low_quality'
**Bug fix**
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!
I solved the problem and now I can train normally.The reason for the problem is that the code related to splitting in the configuration file is not cleaned up.
Thanks to the author for sharing the code.
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug A clear and concise description of what the bug is.
Reproduction
loading annotations into memory... Done (t=0.18s) creating index... index created! /raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py:173: UserWarning: Runner was deprecated, please use EpochBasedRunner instead 'Runner was deprecated, please use EpochBasedRunner instead') /raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/mmcv/runner/base_runner.py:59: UserWarning: batch_processor is deprecated, please implement train_step() and val_step() in the model instead. warnings.warn('batch_processor is deprecated, please implement ' 2020-07-26 15:38:11,938 - mmdet - INFO - Start running, host: xuwt@DGX-2, work_dir: /raid/xuwt/ting/DetectoRS/work_dirs/DetectoRS_mstrain_400_1200_x101_32x4d_40e.py 2020-07-26 15:38:11,938 - mmdet - INFO - workflow: [('train', 1)], max: 40 epochs Traceback (most recent call last): File "tools/train.py", line 142, in
main()
File "tools/train.py", line 138, in main
meta=meta)
File "/raid/xuwt/ting/DetectoRS/mmdet/apis/train.py", line 111, in train_detector
meta=meta)
File "/raid/xuwt/ting/DetectoRS/mmdet/apis/train.py", line 242, in _non_dist_train
runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
File "/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 122, in run
epoch_runner(data_loaders[i], kwargs)
File "/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 35, in train
self.model, data_batch, train_mode=True, kwargs)
File "/raid/xuwt/ting/DetectoRS/mmdet/apis/train.py", line 75, in batch_processor
losses = model(data)
File "/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, *kwargs)
File "/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 150, in forward
return self.module(inputs[0], kwargs[0])
File "/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, kwargs)
File "/raid/xuwt/ting/DetectoRS/mmdet/core/fp16/decorators.py", line 49, in new_func
return old_func(args, kwargs)
File "/raid/xuwt/ting/DetectoRS/mmdet/models/detectors/base.py", line 147, in forward
return self.forward_train(img, img_metas, kwargs)
File "/raid/xuwt/ting/DetectoRS/mmdet/models/detectors/htc.py", line 216, in forward_train
rpn_loss_inputs, gt_bboxes_ignore=gt_bboxes_ignore)
File "/raid/xuwt/ting/DetectoRS/mmdet/models/anchor_heads/rpn_head.py", line 51, in loss
gt_bboxes_ignore=gt_bboxes_ignore)
File "/raid/xuwt/ting/DetectoRS/mmdet/core/fp16/decorators.py", line 127, in new_func
return old_func(*args, *kwargs)
File "/raid/xuwt/ting/DetectoRS/mmdet/models/anchor_heads/anchor_head.py", line 189, in loss
sampling=self.sampling)
File "/raid/xuwt/ting/DetectoRS/mmdet/core/anchor/anchor_target.py", line 63, in anchor_target
unmap_outputs=unmap_outputs)
File "/raid/xuwt/ting/DetectoRS/mmdet/core/utils/misc.py", line 24, in multi_apply
return tuple(map(list, zip(map_results)))
File "/raid/xuwt/ting/DetectoRS/mmdet/core/anchor/anchor_target.py", line 116, in anchor_target_single
anchors, gt_bboxes, gt_bboxes_ignore, None, cfg)
File "/raid/xuwt/ting/DetectoRS/mmdet/core/bbox/assign_sampling.py", line 27, in assign_and_sample
bbox_assigner = build_assigner(cfg.assigner)
File "/raid/xuwt/ting/DetectoRS/mmdet/core/bbox/assign_sampling.py", line 10, in build_assigner
return mmcv.runner.obj_from_dict(cfg, assigners, default_args=kwargs)
File "/raid/xuwt/anaconda3/envs/detection_rs/lib/python3.7/site-packages/mmcv/runner/utils.py", line 55, in obj_from_dict
return obj_type(args)
TypeError: init() got an unexpected keyword argument 'match_low_quality'