GithubHelp home page GithubHelp logo

cuzyoung / coda Goto Github PK

View Code? Open in Web Editor NEW
22.0 3.0 0.0 8.95 MB

[ECCV 2024] Official project of CoDA: Instructive Chain-of-Domain Adaptation with Severity-Aware Visual Prompt Tuning

License: MIT License

Python 100.00%

coda's Introduction

[ECCV 2024] CoDA: Instructive Chain-of-Domain Adaptation with Severity-Aware Visual Prompt Tuning


Sun Yat-sen University

CPNT Lab

EPFL

๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ Home

Here is the official project of ๐ŸŽปCoDA. We are releasing the training code and dataset generated by ourselves in our paper.

CoDA is a UDA methodology that boosts models to understand all adverse scenes (โ˜๏ธ,โ˜”,โ„๏ธ,๐ŸŒ™) by highlighting the discrepancies between and within these scenes. CoDA achieves state-of-the-art performances on widely used benchmarks.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ News

[2024-7-10]We have released our generated data samples. You can download from here.

[Baidu Netdisk]ย ย ย ย [Google Drive]

[2024-7-2] We are delighted to inform that CoDA has been accepted by ECCV 2024 main conference ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰!!!

[2024-3-8] We create the official project of CoDA and release the inference code.

Overview

night

PWC

PWC

PWC

PWC

PWC

CoDA

Experiments mIoU Checkpoint
Cityscapes $\rightarrow$ ACDC 72.6 -
Cityscapes $\rightarrow$ Foggy Zurich 60.9 -
Cityscapes $\rightarrow$ Foggy Driving 61.0 -
Cityscapes $\rightarrow$ Dark Zurich 61.2 -
Cityscapes $\rightarrow$ Nighttime Driving 59.2 -
Cityscapes $\rightarrow$ BDD100K-Night 41.6 -

If you find this project useful in your research, please consider citing:

@article{gong2024coda,
  title={CoDA: Instructive Chain-of-Domain Adaptation with Severity-Aware Visual Prompt Tuning},
  author={Gong, Ziyang and Li, Fuhao and Deng, Yupeng and Bhattacharjee, Deblina and Zhu, Xiangwei and Ji, Zhenming},
  journal={arXiv preprint arXiv:2403.17369},
  year={2024}
}

Download Checkpoint

cd CoDA
python ./tools/download_ck.py

or you can manually download checkpoints from Google Drive.

Environment

conda create -n coda python=3.8.5 pip=22.3.1
conda activate coda
pip install -r requirements.txt -f https://download.pytorch.org/whl/torch_stable.html
pip install mmcv-full==1.3.7 -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7/index.html

Before run demo, first configure the PYTHONPATH, or you may encounter error like 'can not found tools...'.

cd CoDA
export PYTHONPATH=.:$PYTHONPATH

or directly modify the .bashrc file

vi ~/.bashrc
export PYTHONPATH=your path/CoDA:$PYTHONPATH
source ~/.bashrc

demo

python ./tools/image_demo.py --img ./images/night_demo.png --config ./configs/coda/csHR2acdcHR_coda.py --checkpoint ./pretrained/CoDA_cs2acdc.pth

Inference Steps

python ./tools/image_demo.py --img_dir ./acdc_dir --config ./configs/coda/csHR2acdcHR_coda.py --checkpoint ./pretrained/CoDA_cs2acdc.pth --out_dir ./workdir/cs2acdc

Traning Steps

python ./tools/train.py --config ./configs/coda/csHR2acdcHR_coda.py --work-dir ./workdir/cs2acdc

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.