This repository provides pytorch implementation of Known-region-aware Domain Alignment (KRADA) method published in Transactions on Machine Learning Research [TMLR].
Suppose that a set of source images with annotations are denoted as
- python = 3.6.12
- torch = 1.7.1
- torchvision = 0.8.2
- Download the SYNTHIA Dataset.
- Download the Cityscapes Dataset.
Here we provide the code for reproducing the implementations of AdaptSegNet + KRADA, CLAN + KRADA, and FADA + KRADA for the Synthia -> Cityscapes task. You can find the .sh
file in each folder to train and evaluate the models. More code details can be found in the original AdaptSegNet, CLAN, and FADA.
If you think this work is useful to your research, please cite:
@article{zhou2023krada,
title={KRADA: Known-region-aware Domain Alignment for Open-set Domain Adaptation in Semantic Segmentation},
author={Zhou, Chenhong and Liu, Feng and Gong, Chen and Zeng, Rongfei and Liu, Tongliang and Cheung, K. William and Han, Bo},
journal={Transactions of Machine Learning Research}
year={2023}
}
[1] AdaptSegNet (Tsai et al., 2018): https://github.com/wasidennis/AdaptSegNet
[2] CLAN (Luo et al., 2019): https://github.com/RoyalVane/CLAN
[3] FADA (Wang et al., 2020): https://github.com/JDAI-CV/FADA
[4] OSBP (Saito et al., 2018b) https://github.com/ksaito-ut/OPDA_BP