ADE20k Semantic Segmentation with DeepMIM

March 16, 2023 ยท View on GitHub

Getting started

  1. Install the mmsegmentation library and some required packages.
pip install mmcv-full==1.3.0 mmsegmentation==0.11.0
pip install scipy timm==0.3.2
  1. Install apex for mixed-precision training
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
  1. Follow the guide in mmseg to prepare the ADE20k dataset.

Fine-tuning with DeepMIM-CLIP

Command:

bash tools/dist_train.sh \
configs/mae/upernet_mae_base_12_512_slide_160k_ade20k.py 8 --seed 0 --work-dir ./ckpt/ \
--options model.pretrained="/path/to/DeepMIM-CLIP-PT.pth"

Expected results log :

+--------+-------+-------+-------+
| Scope  | mIoU  | mAcc  | aAcc  |
+--------+-------+-------+-------+
| global | 53.05 | 64.18 | 84.73 |
+--------+-------+-------+-------+

Checkpoint

The checkpoint can be found in Google Drive

Acknowledgement

This repository is built using mae segmentation, mmseg