This is a PyTorch implementation of [Bi-directional Contrastive Learning for Domain adaptive Semantic Segmentation].
To install requirements:
- Python 3.6
- Pytorch 1.4.0
- Download the dataset.
- Download the ImageNet-pretrained Model [Link].
Train the source-only model:
python so_run.py
Train our model:
python run.py
To perform evaluation on single model:
python eval.py --frm model.pth --single