IDEA-Research / detrex

detrex is a research platform for DETR-based object detection, segmentation, pose estimation and other visual recognition tasks.
https://detrex.readthedocs.io/en/latest/
Apache License 2.0
1.92k stars 202 forks source link

path config #265

Closed Zesheng666 closed 1 year ago

Zesheng666 commented 1 year ago

Which file in the DINO code is used to configure the path of the COCO dataset? I've been searching for a while but couldn't find it.

rentainhe commented 1 year ago

Which file in the DINO code is used to configure the path of the COCO dataset? I've been searching for a while but couldn't find it.

We defined it here:

@Zesheng666

Zesheng666 commented 1 year ago

出现 No such file or directory: 'datasets/coco/annotations/instances_train2017.json',在哪个文件里面修改数据集的相关的路径呢?上面那两个文件里面似乎没有

rentainhe commented 1 year ago

出现 No such file or directory: 'datasets/coco/annotations/instances_train2017.json',在哪个文件里面修改数据集的相关的路径呢?上面那两个文件里面似乎没有

你需要指定一下

export DETECTRON2_DATASETS=/path/to/datasets

即可

如果你需要修改这个路径的话,需要修改你安装下来的d2文件夹的dataset/builtin.py,具体文件路径在:

https://github.com/facebookresearch/detectron2/blob/2c6c380f94a27bd8455a39506c9105f652b9f760/detectron2/data/datasets/builtin.py#L35

@Zesheng666