Home

Awesome

[ECCV22] Bi-directional Contrastive Learning for Domain Adaptive Semantic Segmentation

This is a PyTorch implementation of [Bi-directional Contrastive Learning for Domain adaptive Semantic Segmentation].

<figure> <img src="./overview.png" alt="DASS"> </figure>

Requirements

To install requirements:

Getting Started

  1. Download the dataset.
  2. Download the ImageNet-pretrained Model [Link].

Training

Train the source-only model:

python so_run.py

Train our model:

python run.py

Evaluation

To perform evaluation on single model:

python eval.py --frm model.pth --single