-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertionError: train_cfg specified in both outer field and model field #62
Comments
mmdet_base = "../../../mmdetection/configs/base" model = dict( img_norm_cfg = dict( train_pipeline = [ strong_pipeline = [ test_pipeline = [ fold = 1 semi_wrapper = dict( custom_hooks = [ log_config = dict(
) 用的自带的配置文件 |
请问您解决了吗 |
please make sure ur mmdet version when u git clone and it will be solved |
你好,请问有具体的解决方案吗,我现在也遇到这个问题 |
Hello, do you have any specific solutions? I am encountering this problem now as well. |
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
The text was updated successfully, but these errors were encountered: