Code Monkey home page Code Monkey logo

snd's Introduction

SND

Stable Neighbor Denoising for Source-free Domain Adaptive Segmentation (CVPR-2024)

πŸ’¬ Comparison with various uncertainty estimation methods

πŸ’¬ Pipeline

πŸ’¬ Requirements

Python 3.8.0
pytorch 1.10.1
torchvision 0.11.2
einops  0.3.2

Please see requirements.txt for all the other requirements.

Getting started

Data:

The data folder should be structured as follows:

β”œβ”€β”€ datasets/
β”‚   β”œβ”€β”€ cityscapes/     
|   |   β”œβ”€β”€ gtFine/
|   |   β”œβ”€β”€ leftImg8bit/		
...

Pretrain models:

  • Download pretrained model on GTA5: (GTA5_DG)
  • Download pretrained model on (SYNTHIA_DG) Then, put these *.pth into the pretrain folder.

Train

G2C-warm:

CUDA_VISIBLE_DEVICES=0 nohup python train_SND.py -cfg configs/deeplabv2_r101_dtst_G2C.yaml OUTPUT_DIR results/G2C_SND_WARM/ resume pretrain/G2C_model_iter020000.pth > logs/G2C_SND_WARM.file 2>&1 &
cp -r results/G2C_SND_WARM/ results/G2C_SND/

SND:

CUDA_VISIBLE_DEVICES=3 nohup python train_SND.py -cfg configs/deeplabv2_r101_SND_G2C.yaml OUTPUT_DIR results/G2C_SND/ resume pretrain/G2C_model_iter020000.pth > logs/G2C_SND.file 2>&1 &\

Test:

CUDA_VISIBLE_DEVICES=1 python test.py -cfg configs/deeplabv2_r101_SND_G2C.yaml resume results/G2C_SND/

Acknowledge

Some codes are adapted from higher We thank them for their excellent projects.

Citation

If you find this code useful please consider citing

@inproceedings{zhao2023towards,
  title={Towards Better Stability and Adaptability: Improve Online Self-Training for Model Adaptation in Semantic Segmentation},
  author={Zhao, Dong and Wang, Shuang and Zang, Qi and Quan, Dou and Ye, Xiutiao and Jiao, Licheng},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={11733--11743},
  year={2023}
}

@InProceedings{Zhao_2024_CVPR,
    author    = {Zhao, Dong and Wang, Shuang and Zang, Qi and Jiao, Licheng and Sebe, Nicu and Zhong, Zhun},
    title     = {Stable Neighbor Denoising for Source-free Domain Adaptive Segmentation},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2024},
    pages     = {23416-23427}
}

snd's People

Contributors

dzhaoxd avatar

Stargazers

 avatar Cameltr avatar  avatar AdriΓ‘n RosellΓ³ Pedraza avatar Mingxuan Liu - Miu avatar Zhun Zhong avatar  avatar ZH Chen avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

snd's Issues

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.