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

Is there a better way to specify data root? #6915

Closed
DianCh opened this issue Dec 29, 2021 · 0 comments
Closed

Is there a better way to specify data root? #6915

DianCh opened this issue Dec 29, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request feature request Request new features planned feature

Comments

@DianCh
Copy link

DianCh commented Dec 29, 2021

Hi! I was wondering if there's a better way to change the data root. Specifically, when I tried to train on COCO I specified data_root either through --cfg-options or hard-code it in the config file. However, only data_root was successfully changed whereas img_prefix, ann_file under cfg.data.train and cfg.data.val are still populated by the default data/coco/ (for example, data/coco/train2017/). It looks like those fields have already been populated in _base_/datasets/coco_detection.py before my change to data_root takes place.

I want to avoid making symlinks under the current project. How to overwrite fields like this?

Thank you!

@ZwwWayne ZwwWayne added enhancement New feature or request feature request Request new features labels Mar 14, 2022
CCODING04 pushed a commit to CCODING04/mmdetection that referenced this issue Mar 14, 2022
CCODING04 added a commit to CCODING04/mmdetection that referenced this issue Mar 15, 2022
CCODING04 pushed a commit to CCODING04/mmdetection that referenced this issue Mar 15, 2022
CCODING04 added a commit to CCODING04/mmdetection that referenced this issue Mar 15, 2022
CCODING04 added a commit to CCODING04/mmdetection that referenced this issue Mar 15, 2022
CCODING04 added a commit to CCODING04/mmdetection that referenced this issue Mar 15, 2022
CCODING04 added a commit to CCODING04/mmdetection that referenced this issue Mar 16, 2022
CCODING04 added a commit to CCODING04/mmdetection that referenced this issue Mar 16, 2022
CCODING04 added a commit to CCODING04/mmdetection that referenced this issue Mar 16, 2022
ZwwWayne pushed a commit that referenced this issue Mar 25, 2022
* Fix #6915: Support to set data root through commands

* Support #6915: seperate function in tools/utils.py, support test.py and browse_dataset.py

* update #6915: refactor the code ref @hhaAndroid advice

* support #6915: fix format problem

* supoort corresponding scripts and update doc @hhaAndroid

* updata misc.py as @ZwwWayne and @hhaAndroid

* Update mmdet/utils/misc.py

Co-authored-by: Haian Huang(深度眸) <[email protected]>

* fix mmdet/utils/misc.py format problem

Co-authored-by: Haian Huang(深度眸) <[email protected]>
ZwwWayne pushed a commit that referenced this issue Jul 18, 2022
* Fix #6915: Support to set data root through commands

* Support #6915: seperate function in tools/utils.py, support test.py and browse_dataset.py

* update #6915: refactor the code ref @hhaAndroid advice

* support #6915: fix format problem

* supoort corresponding scripts and update doc @hhaAndroid

* updata misc.py as @ZwwWayne and @hhaAndroid

* Update mmdet/utils/misc.py

Co-authored-by: Haian Huang(深度眸) <[email protected]>

* fix mmdet/utils/misc.py format problem

Co-authored-by: Haian Huang(深度眸) <[email protected]>
ZwwWayne pushed a commit to ZwwWayne/mmdetection that referenced this issue Jul 19, 2022
* Fix open-mmlab#6915: Support to set data root through commands

* Support open-mmlab#6915: seperate function in tools/utils.py, support test.py and browse_dataset.py

* update open-mmlab#6915: refactor the code ref @hhaAndroid advice

* support open-mmlab#6915: fix format problem

* supoort corresponding scripts and update doc @hhaAndroid

* updata misc.py as @ZwwWayne and @hhaAndroid

* Update mmdet/utils/misc.py

Co-authored-by: Haian Huang(深度眸) <[email protected]>

* fix mmdet/utils/misc.py format problem

Co-authored-by: Haian Huang(深度眸) <[email protected]>
SakiRinn pushed a commit to SakiRinn/mmdetection-locount that referenced this issue Mar 17, 2023
* Fix open-mmlab#6915: Support to set data root through commands

* Support open-mmlab#6915: seperate function in tools/utils.py, support test.py and browse_dataset.py

* update open-mmlab#6915: refactor the code ref @hhaAndroid advice

* support open-mmlab#6915: fix format problem

* supoort corresponding scripts and update doc @hhaAndroid

* updata misc.py as @ZwwWayne and @hhaAndroid

* Update mmdet/utils/misc.py

Co-authored-by: Haian Huang(深度眸) <[email protected]>

* fix mmdet/utils/misc.py format problem

Co-authored-by: Haian Huang(深度眸) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request Request new features planned feature
Projects
None yet
Development

No branches or pull requests

3 participants