Skip to content
/ MCLDA Public

[SOICT2023] Official Implementation of MCLDA: Multi-level Contrastive Learning for Domain Adaptive Semantic Segmentation

License

Notifications You must be signed in to change notification settings

k1eNdn/MCLDA

Repository files navigation

Description

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).

Getting started

Prerequisite

  • CUDA/CUDNN
  • Python3
  • Packages found in requirements.txt

Run training and testing

Example of training a model with unsupervised domain adaptation on GTA5->CityScapes on a single gpu

python3 trainUDA.py --config ./configs/configUDA.json --name UDA

Example of testing a model with domain adaptation with CityScapes as target domain

python3 evaluateUDA.py --model-path checkpoint.pth

About

[SOICT2023] Official Implementation of MCLDA: Multi-level Contrastive Learning for Domain Adaptive Semantic Segmentation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages