pip install -U openmim
mim install mmengine
mim install "mmcv>=2.0.0"
- Install MMSegmentation
cd mmsegmentation
pip install -v -e .
- Optional: MMDetection for training Mask2Former model.
mim install mmdet
This dataset preparation is inspired by MMSegmentation datasets structure
It is recommended to symlink the dataset root to data
.
You need to structure the data
folder as follows:
data
├── VOCdevkit
│ ├── VOC2012
│ │ ├── JPEGImages
│ │ ├── ImageSets
│ │ │ ├── Segmentation
│ │ ├── SegmentationClass
├── coco
│ ├── train2017
│ ├── val2017
│ ├── masks
Pascal VOC 2012 could be downloaded from here
The COCO2017 dataset could be downloaded from here.
The semantic segmentation annotations for the MS COCO dataset could be downloaded from here
Prefer to README