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

When i train with your config,i encounter a problem #13

Open
EwardJohn opened this issue Apr 20, 2020 · 6 comments
Open

When i train with your config,i encounter a problem #13

EwardJohn opened this issue Apr 20, 2020 · 6 comments

Comments

@EwardJohn
Copy link

When i train with your config,i encounter a problem,it is :
Traceback (most recent call last):
File "src/tools/train.py", line 108, in
main()
File "src/tools/train.py", line 86, in main
datasets = [build_dataset(cfg.data.train)]
File "/cache/user-job-dir/codes/mmdetection/src/mmdet/datasets/builder.py", line 39, in build_dataset
dataset = build_from_cfg(cfg, DATASETS, default_args)
File "/cache/user-job-dir/codes/mmdetection/src/mmdet/utils/registry.py", line 76, in build_from_cfg
return obj_cls(**args)
TypeError: init() got an unexpected keyword argument 'normal'
How can i solve this problem?Thanks

@cizhenshi
Copy link
Owner

We changed the default dataloader and added some new parameters. Just copying the configuration file is not enough. You also need to change the corresponding dataloader.

@EwardJohn
Copy link
Author

Thanks for your reply,I am a new guy for OB,you mean I need change dataloader of torch.utils.data?
Best wishes!

@cizhenshi
Copy link
Owner

Not the torch.utils.dataloader. Did you use a custom dataset? In the ./mmdet/datasets/coco.py or any other dataset? My configs needs to be used with ./mmdet/datasets/coco_r2.py.

@EwardJohn
Copy link
Author

EwardJohn commented Apr 20, 2020 via email

@cizhenshi
Copy link
Owner

If you want to use the other settings in the configs except dataset, you need to change the 171-line dataset_type = 'CocopairDataset_r2' in the config file. You can refer to some of the default configuration files in mmdetection.

@EwardJohn
Copy link
Author

EwardJohn commented Apr 21, 2020 via email

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

2 participants