Git Product home page Git Product logo

gvb's Introduction

GVB

Code release for "Gradually Vanishing Bridge for Adversarial Domain Adaptation" (CVPR 2020)

Dataset

Office-31 dataset can be found here.

Office-Home dataset can be found here.

VisDA 2017 dataset can be found here in the classification track.

Requirements

The code is implemented with Python(3.6) and Pytorch(1.0.0).

To install the required python packages, run

pip install -r requirements.txt

Training

Training instructions for GVB-GD and CDAN-GD are in the README.md in GVB-GD and CDAN-GD respectively.

Citation

If you use this code for your research, please consider citing:

@inproceedings{cui2020gvb,
  title={Gradually Vanishing Bridge for Adversarial Domain Adaptation},
  author={Cui, Shuhao and Wang, Shuhui and Zhuo, Junbao and Su, Chi and Huang, Qingming and Tian Qi},
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
  year={2020}
}

Contact

If you have any problem about our code, feel free to contact

or describe your problem in Issues.

gvb's People

Contributors

cuishuhao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gvb's Issues

Cannot reproduce the results on office-31

Hello, thanks for checking this issue. I use the uploaded code and run GVB-GD on the dataset Office-31. However, I cannot reproduce the claimed results in the paper. I run " python train_image.py --gpu_id 0 --GVBG 1 --GVBD 1 --num_iterations 8004 --dset office --s_dset_path data/office/amazon_list.txt --t_dset_path data/office/dslr_list.txt --test_interval 500 --output_dir gvbgd/adn " multiple times . Then the best performace is about 89.7%. However the number in your paper is 95.0%.

Any suggestions on how to solve this ? Would you mind providing your training scripts to reproduce the results on the Office-31 ? Thank you !

Running error

Traceback (most recent call last):
File "train_image.py", line 204, in
config["out_file"] = open(osp.join(config["output_path"], "log.txt"), "w")
FileNotFoundError: [Errno 2] No such file or directory: 'office-home/san\log.txt'

Office31 results

Thanks for the great work.
I tried to run GVB-GD on office31 several times but cannot obtain the reported results. Can you show some training log?

How to address class imbalance?

I am using my custom dataset with 2 classes which has 10% samples with label 1 and 90% samples with label 0 in both source and target datasets. The accuracy is quite good, and is around 98+%!. But, calling accuracy 'precision' is incorrect as precision means (no. of samples in target classified as 1)/(no. of samples in target with ground truth 1).
But, how to find precision in this case? Which part of the code must be modified to find the following:

  1. sensitivity (precision) = (no. of samples in target classified as 1)/(no. of samples in target with ground truth 1).
  2. specificity = (no. of samples in target classified as 0)/(no. of samples in target with ground truth 0).

We promise to give you credit in our publication. Thank you

关于论文中的一些不懂的地方

  1. 在Figure 4中,分类层中减去了γi,是怎么反向得到image的变化的,用什么工具可以做到;
  2. 在公式8,D*=D1+D2,在公式10,D*=D1-D2,论文中没有对D*=D1-D2有更多的解释,代码中也是D1-D2的实现。
    我理解是D2可以表示为“domain-invariant”?

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.