Code used for the results in the paper "MCLDA: Multi-level Contrastive Learning for Domain Adaptive Semantic Segmentation"
We introduce MCLDA, a method that employs multi-level contrastive learning to align domains and enhance feature discriminability. Additionally, we introduce an image mixing strategy to address imbalanced data and consider class context. Our proposed method demonstrates comparable performance to the top-performing methods when using the same segmentation architecture, Deeplabv2 (ResNet101).
- CUDA/CUDNN
- Python3
- Packages found in requirements.txt
python3 trainUDA.py --config ./configs/configUDA.json --name UDA
python3 evaluateUDA.py --model-path checkpoint.pth