Giter VIP home page Giter VIP logo

damp's Introduction

Domain-Agnostic Mutual Prompting for Unsupervised Domain Adaptation

This repository contains the code for 'Domain-Agnostic Mutual Prompting for Unsupervised Domain Adaptation' (Accepted to CVPR 2024)



How to Install Dependent Environments

Our code is built based on CLIP and Dassl, which can be installed with following commands.

# install CLIP

pip install git+https://github.com/openai/CLIP.git


# install Dassl

git clone https://github.com/KaiyangZhou/Dassl.pytorch.git

cd dassl

pip install -r requirements.txt

pip install .

cd..

One can install other dependent tools via

pip install -r requirements.txt

How to Download Datasets

The datasets used for UDA tasks can be downloaded via the following links.

VisDA17 (http://ai.bu.edu/visda-2017/#download)

Office-Home (https://drive.google.com/file/d/0B81rNlvomiwed0V1YUxQdC1uOTg/view?resourcekey=0-2SNWq0CDAuWOBRRBL7ZZsw)

Mini-DomainNet (http://ai.bu.edu/DomainNet/)

After downloading the datasets, please update the dataset paths in scripts/{dataset}.sh accordingly.

How to Run the Code

We provide scripts for running UDA experiments on Office-Home, VisDA17, Mini-DomainNet datasets in the scripts folder.

For instance, to run a task on VisDA17:

cd scripts

sh VisDA17.sh

Citation

If you find the code useful in your research, please consider citing:

@InProceedings{du2024domain,
  author = {Zhekai Du, Xinyao Li, Fengling Li, Ke Lu, Lei Zhu, Jingjing Li},
  title = {Domain-Agnostic Mutual Prompting for Unsupervised Domain Adaptation},
  booktitle = {IEEE Conference on Computer Vision and Pattern Recognition},
  year = {2024}
}

Acknowledgments

This project builds upon the invaluable contributions of following open-source projects:

  1. DAPrompt (https://github.com/LeapLabTHU/DAPrompt)
  2. CoOp (https://github.com/KaiyangZhou/CoOp)

We express our sincere gratitude to the talented authors who have generously shared their source code with the public, enabling us to leverage their work in our own endeavor.

damp's People

Contributors

duzhekai avatar

Stargazers

%xixihahaheihei!! avatar Eman Ali avatar Yeojeong Park avatar  avatar Meredith avatar  avatar ethan avatar LianyuWang avatar Cameltr avatar Jumponthemoon avatar Hossein Kashiani avatar Yue Zhan avatar  avatar  avatar Xin Zhao avatar 丁雨禾 Yuhe Ding avatar  avatar

Watchers

 avatar Kostas Georgiou avatar

damp'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.