Skip to content

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

Closed
@DianCh

Description

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!

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions