Our dataloader follows Detectron2 contains (1) A dataset registrator. (2) A dataset mapper. (3) A dataset loader. We modify the dataset registrator and mapper for different datasets.
Please Refer to Mask2Former.
Please download the 10k split of BDD100k at https://doc.bdd100k.com/download.html#id1
.
└── bdd100k/
├── images/
│ └── 10k/
│ ├── test
│ ├── train
│ └── val
└── labels/
├── ins_seg
├── pan_seg
└── sem_seg
Please download the original refcoco datasets at https://github.com/lichengunc/refer.
.
└── refcocoseg/
└── refcocog/
├── instances.json
├── refs(google).p
└── refs(umd).p
Also download the coco dataset at https://cocodataset.org/#home:
.
└── coco/
├── annotations
├── train2017
└── val2017
After preparing the dataset, run the following command:
# NOTE: Please modify coco_root and ref_root
python3 refcoco2json.py