Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.5 KB

INSTALL.md

File metadata and controls

49 lines (40 loc) · 1.5 KB

Install MMSegmentation

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

Datasets preparation for training segmenters

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

Pascal VOC 2012 could be downloaded from here

COCO

The COCO2017 dataset could be downloaded from here.

The semantic segmentation annotations for the MS COCO dataset could be downloaded from here

Usage

Prefer to README