GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tim-learn/DINE: code for our CVPR 2022 paper "DINE: Domain Adaptation from Single and Multiple Black-box Predictors"

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
data/office-home
data/office-home
 
 
figs
figs
 
 
.gitignore
.gitignore
 
 
DINE_dist.py
DINE_dist.py
 
 
DINE_ft.py
DINE_ft.py
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
data_list.py
data_list.py
 
 
loss.py
loss.py
 
 
network.py
network.py
 
 

Repository files navigation

Official implementation for DINE

DINE: Domain Adaptation from Single and Multiple Black-box Predictors

Problem setting (Black-box UDA):

Our framework (Distill-and-Finetune):

Prerequisites:

  • python == 3.6.8
  • cudatoolkit == 11.0
  • pytorch ==1.7.1
  • torchvision == 0.8.2
  • numpy, scipy, sklearn, PIL, argparse, tqdm

Demo:

  • Configure the pytorch environment

  • Download the dataset and write the correspinding text files via https://github.com/tim-learn/Generate_list (check the file path in the 'data/office-home/**_list.txt' folder)

  • Run the following code (reproduce the results for ResNet-50 (source backbone) -> ResNet-50 (target backbone) in upper Table 2)

    • training the source model first

      python DINE_dist.py --gpu_id 0 --seed 2021 --output_src ./ckps/src --dset office-home --s 0 --da uda --net_src resnet50 --max_epoch 50

    • the first step (Distill)

      python DINE_dist.py --gpu_id 0 --seed 2021 --output_src ./ckps/src --dset office-home --s 0 --da uda --net_src resnet50 --max_epoch 30 --net resnet50 --output ./ckps/tar --distill --topk 1

    • the second step (Finetune)

      python DINE_ft.py --gpu_id 0 --seed 2021 --dset office-home --s 0 --da uda --net_src resnet50 --max_epoch 30 --net resnet50 --lr 1e-2 --output ./ckps/tar

Results:

Citation

If you find this code useful for your research, please cite our paper

@inproceedings{liang2022dine,
    title={DINE: Domain Adaptation from Single and Multiple Black-box Predictors},
    author={Liang, Jian and Hu, Dapeng and Feng, Jiashi and He, Ran},
    booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
    year={2022}
}

Contact

  • [email protected]

About

code for our CVPR 2022 paper "DINE: Domain Adaptation from Single and Multiple Black-box Predictors"

Topics

black-boxcvpr2022distillationdomain-adaptationmulti-source-domain-adaptationsource-free-domain-adaptation

Resources

Readme
License
Activity

Stars

82 stars

Watchers

1 watching

Forks

8 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.