Giter VIP home page Giter VIP logo

aaa's Introduction

Divergence-agnostic Unsupervised Domain Adaptation

This is the PyTorch code for validating our proposed method in this paper. For simple validation purpose, only a trained model and the validation code are provided for review, the full code will be published later. Here we take the task A->D on Office-31 dataset as an example.

The framework of the proposed method is shown in Fig.2 of the manuscript.

Prerequisites:

  • python == 3.6.10
  • pytorch == 1.5.0
  • cuda == 9.2
  • torchvision = 0.6.0

The source code files and folders:

  • "network.py": contains the network architectures we used in this paper (including the backbone, the bottleneck, the classifier and the perturbation generator).
  • "data": contains the list files and the images of the testing data.
  • "data_list.py" re-implements the ImageList class in pytorch for loading the data with corresponding index.
  • "loss.py": contains some loss functions we used in this paper.
  • "AD": contains the trained models (F, B and C) of the task A->D for validation.

How to run the codes and validate the results of this paper

Limited by volume, we do not provide the Office-31 dataset. To validate the model, you may get the dataset here and put it to the path according to "dslr_list.txt". After that, just run the main file:

python main.py

Wait a moment and the results will be displayed in the console.

aaa's People

Contributors

lijin118 avatar

Stargazers

 avatar  avatar

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.