Giter Club home page Giter Club logo

assuda's Introduction

ASSUDA

Code and data of Exploring Robustness of Unsupervised Domain Adaptation in Semantic Segmentation (ICCV 2021; Oral)

Datasets

Initial models

Training

An example (SYNTHIA->Cityscapes with DeepLab):

python main.py \
    --data-dir /path/to/synthia_deeplab \
    --data-list ./dataset/synthia_list/train.txt \
    --data-dir-target /path/to/cityscapes \
    --data-list-target ./dataset/cityscapes_list/train.txt \
    --data-label-folder-target /path/to/synthia_deeplab/cityscapes_ssl \
    --snapshot-dir ./snapshots/synthia2city_deeplab \
    --init-weights ./initial_model/DeepLab_init.pth \
    --num-steps-stop 80000 \
    --model DeepLab \
    --source synthia \
    --learning-rate 1e-4 \
    --learning-rate-D 1e-6 \
    --lambda-adv-target 1e-4 \
    --save-pred-every 5000 \
    --alpha 1.0 \
    --lambda-contrastive 0.01

Evaluation

An example (SYNTHIA->Cityscapes with DeepLab):

python evaluation.py \
    --data-dir-target /path/to/pspnet_attack/pspnet_fgsm_0.1 \
    --data-list-target ./dataset/cityscapes_list/val.txt \
    --gt_dir /path/to/cityscapes/gtFine/val \
    --devkit_dir ./dataset/cityscapes_list \
    --restore-from ./snapshots/synthia2city_deeplab/synthia_80000 \
    --save results/cityscapes_eval \
    --model DeepLab \
    --source synthia

Citation

@article{yang2021exploring,
  title={Exploring Robustness of Unsupervised Domain Adaptation in Semantic Segmentation},
  author={Yang, Jinyu and Li, Chunyuan and An, Weizhi and Ma, Hehuan and Guo, Yuzhi and Rong, Yu and Zhao, Peilin and Huang, Junzhou},
  journal={Proceedings of the IEEE international conference on computer vision (ICCV)},
  year={2021}
}

Acknowledgment

The code is heavily borrowed from BDL

assuda's People

Contributors

viyjy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.