Home

Awesome

Dense Siamese Network for Dense Unsupervised Learning

Introduction

This is an official release of the paper Dense Siamese Network for Dense Unsupervised Learning.

Dense Siamese Network for Dense Unsupervised Learning,
Wenwei Zhang, Jiangmiao Pang, Kai Chen, Chen Change Loy
In: Proc. European Conference on Computer Vision (ECCV), 2022
[arXiv][project page][Bibetex]

Results

Semantic segmentation on curated COCO stuff-thing dataset

The results of DenseSiam and their corresponding configs on unsupervised semantic segmentation task are shown as below. We also re-implemented PiCIE based on the official code release.

BackboneMethodLr SchdmIoUConfigDownload
R-18PiCIE10e14.4configmodel | log
R-18DenseSiam10e16.4configmodel | log

Unsupervised representation learning

BackboneMethodLr SchdCOCO Mask mAPConfigPre-train Download
R-50DenseSiam1x36.8configmodel | log

Installation

It requires the following OpenMMLab packages:

pip install openmim mmdet mmsegmentation mmselfsup
mim install mmcv-full

Usage

Data preparation

data/
├── curated
│   ├── train2017
│   │   ├── Coco164kFull_Stuff_Coarse_7.txt
│   ├── val2017
│   │   ├── Coco164kFull_Stuff_Coarse_7.txt
├── coco
│   ├── annotations
│   │   ├── train2017
│   │   │   ├── xxxxxxxxx.png
│   │   ├── val2017
│   │   │   ├── xxxxxxxxx.png
│   ├── train2017
│   │   ├── xxxxxxxxx.jpeg
│   ├── val2017
│   │   ├── xxxxxxxxx.jpeg

Training and testing

For training and testing, you can directly use mim to train and test the model

# train instance/panoptic segmentation models
sh ./tools/slurm_train.sh $PARTITION $JOBNAME $CONFIG $WORK_DIR

# test semantic segmentation models
sh ./tools/slurm_test.sh $PARTITION $JOBNAME $CONFIG $CHECKPOINT --eval mIoU

Acknowledgement

This codebase is based on MMCV and it benefits a lot from PiCIE MMSelfSup, and Detectron2.

License

This project is released under the Apache 2.0 license.

Citation

@inproceedings{zhang2022densesiam,
author = {Wenwei Zhang and Jiangmiao Pang and Kai Chen and Chen Change Loy},
title = {Dense Siamese Network for Dense Unsupervised Learning},
year = {2022},
booktitle = {ECCV},
}