Skip to content
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

Code version problem #16

Open
Lixia1221 opened this issue Sep 29, 2021 · 0 comments
Open

Code version problem #16

Lixia1221 opened this issue Sep 29, 2021 · 0 comments

Comments

@Lixia1221
Copy link

CUDA:11.1
MMDET: 2.17

(open-mmlab) fsr@ServerE1:~/code/FoveaBox$ python tools/train.py "/home/fsr/code/FoveaBox/configs/foveabox/fovea_r50_fpn_4gpu_2x_align.py"
2021-09-29 19:19:16,717 - mmdet - INFO - Distributed training: False
/home/laocheng/anaconda3/envs/open-mmlab/lib/python3.7/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)
/home/laocheng/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmdet/models/detectors/single_stage.py:29: UserWarning: DeprecationWarning: pretrained is deprecated, please use "init_cfg" instead
warnings.warn('DeprecationWarning: pretrained is deprecated, '
/home/laocheng/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmdet/models/backbones/resnet.py:401: UserWarning: DeprecationWarning: pretrained is deprecated, please use "init_cfg" instead
warnings.warn('DeprecationWarning: pretrained is deprecated, '
/home/laocheng/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmdet/datasets/api_wrappers/coco_api.py:22: UserWarning: mmpycocotools is deprecated. Please install official pycocotools by "pip install pycocotools"
UserWarning)
loading annotations into memory...
Done (t=9.58s)
creating index...
index created!
Traceback (most recent call last):
File "tools/train.py", line 103, in
main()
File "tools/train.py", line 99, in main
train_detector(model,datasets,cfg,distributed=distributed)
File "/home/laocheng/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmdet/apis/train.py", line 71, in train_detector
seed=cfg.seed) for ds in dataset
File "/home/laocheng/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmdet/apis/train.py", line 71, in
seed=cfg.seed) for ds in dataset
File "/home/laocheng/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/utils/config.py", line 490, in getattr
return getattr(self._cfg_dict, name)
File "/home/laocheng/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/utils/config.py", line 47, in getattr
raise ex
AttributeError: 'ConfigDict' object has no attribute 'gpu_ids'

When I ran the code this error occurred because the version of the code was too old to adapt to the new package.Can the author update a new version of the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant