Giter Club home page Giter Club logo

mt-mtda's Introduction

This is the official implementation for WACV 2021 paper of Unsupervised Multi-Target Domain Adaptation ThroughKnowledge Distillation,

Requirements

Datasets

  • You can download Office31 and OfficeHome from:

      Office-31: https://people.eecs.berkeley.edu/~jhoffman/domainadapt/
      Office Home: http://hemanthdv.org/OfficeHome-Dataset/
    
  • In order to easily run our code, we expect the datasets for Office31 and OfficeHome to found be at: '~/datasets/', here are how we get the path to our datasets in our code:

      a = os.path.expanduser('~/datasets/amazon/images')
      w = os.path.expanduser('~/datasets/webcam/images')
      d = os.path.expanduser('~/datasets/dslr/images')
    
      Ar = os.path.expanduser('~/datasets/OfficeHome/Art')
      Cl = os.path.expanduser('~/datasets/OfficeHome/Clipart')
      Pr = os.path.expanduser('~/datasets/OfficeHome/Product')
      Rw = os.path.expanduser('~/datasets/OfficeHome/RealWorld')
    

Visualization

  • Originally, this project used a mongoObserver from sacred in combination with Omniboard (https://github.com/vivekratnavel/omniboard) to visualize experiments. You can either use this or integrate your own visualizer (e.g. visdom)

Run the code

  • All the code is run using sacred, you can see examples in the folder experiments/

  • Example, to run all of our results on the OfficeHome with AlexNet backbone:

      python experiments/exp_kd_multi_target_da_grl_cst_fac.py
    
  • For other experiments you can edit exp_kd_multi_target_da_grl_cst_fac.py to change our hyper-parameters

Evaluation

  • Coming soon.

Credits

We used some of the code from:

mt-mtda's People

Contributors

natlem avatar hossen-code avatar anon6272 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.