All Projects → RoyalVane → Asm

RoyalVane / Asm

Licence: mit
( NeurIPS 2020 ) Adversarial Style Mining for One-Shot Unsupervised Domain Adaptation

Programming Languages

python
139335 projects - #7 most used programming language

ASM

Introduction

This is an official implementation for our NeurIPS 2020 paper: Adversarial Style Mining for One-Shot Unsupervised Domain Adaptation. In this paper, we aim at the problem named One-Shot Unsupervised Domain Adaptation. Unlike traditional Unsupervised Domain Adaptation, it assumes that only one unlabeled target sample can be available when learning to adapt.

Usage

Prerequisites

  • Python 3.6
  • GPU Memory >= 32G

Download ImageNet-pretained DeepLab:

Download Pretained RAIN

Download DataSets

Modify data path to your own

Train

CUDA_VISIBLE_DEVICES=<gpu_id> python ASM_train.py --snapshot-dir ./snapshots/GTA2Cityscapes

Test

CUDA_VISIBLE_DEVICES==<gpu_id> python ASM_evaluate.py

Compute IOU

python ASM_IOU.py

Our Pretrained Model

We also provide our Pretrained ASM models for direct evaluation. These models are trained using 32G V100.

  • The first model is consist with our reported IoU result in the paper. mIoU = 44.53:

  • The second model is trained recently, whose performance is slightly higher than the paper. mIoU = 44.78:

Citation

  • If you find this code useful, please consider citing
@inproceedings{Luo2020ASM,
title={Adversarial Style Mining for One-Shot Unsupervised Domain Adaptation},
  author={Luo, Yawei and Liu, Ping and Guan, Tao and Yu, Junqing and Yang, Yi},
  booktitle={Advances in Neural Information Processing Systems},
year={2020}
}

Related Works

  • CLAN: One-shot UDA is a realistic but more challenging setting than UDA, which we tried to solve in our CVPR2019 oral paper "Taking A Closer Look at Domain Shift: Category-level Adversaries for Semantics Consistent Domain Adaptation".

  • Copy and Paste GAN: RAIN is also employed as a strong data augmentation module in our CVPR2020 oral paper "Copy and Paste GAN: Face Hallucination from Shaded Thumbnails".

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].