Skip to content

AssertionError: train_cfg specified in both outer field and model field #62

@HtAgoni

Description

@HtAgoni

For the configuration file, I only changed the data path and the number of categories.Run the following code:
python tools/train.py configs/consistent-teacher/consistent_teacher_r50_fpn_coco_180k_10p.py --work-dir ./work-dir --gpus 1

Then,

/root/anaconda3/envs/cont2/lib/python3.6/site-packages/mmdet/models/builder.py:53: UserWarning: train_cfg and test_cfg is deprecated, please specify them in model
'please specify them in model', UserWarning)
Traceback (most recent call last):
File "tools/train.py", line 200, in
main()
File "tools/train.py", line 171, in main
cfg.model, train_cfg=cfg.get("train_cfg"), test_cfg=cfg.get("test_cfg")
File "/root/anaconda3/envs/cont2/lib/python3.6/site-packages/mmdet/models/builder.py", line 55, in build_detector
'train_cfg specified in both outer field and model field '
AssertionError: train_cfg specified in both outer field and model field

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions