Giter VIP home page Giter VIP logo

ltc-msda's Introduction

Learning to Combine: Knowledge Aggregation for Multi-Source Domain Adaptation

Introduction

This project is the implementation of ``Learning to Combine: Knowledge Aggregation for Multi-Source Domain Adaptation'' in PyTorch, which is accepted by ECCV 2020.

The paper is available here: arXiv

Prerequisites

  • Python 3.6
  • PyTorch 1.1.0 (any version higher than 0.4.0 should work)
  • CUDA 9.0 & cuDNN 7.0.5

Dataset Preparation

Pre-trained Models

NOTE. We experimentally found that the Caffe pretrained model outperforms the PyTorch pretrained one. If you would like to evaluate our method with other backbones, a converted model from Caffe to PyTorch maybe favored.

Training

To train the baseline model without target data, simply run:

python train.py --save_model --target $target_domain$ \
                --checkpoint_dir $save_dir$

To train the full model of LtC-MSDA, simply run:

python train.py --use_target --save_model --target $target_domain$ \
                --checkpoint_dir $save_dir$

P.S. When the ``--save model'' config is active, model's parameters, global prototypes and adjacency matrix will be stored.

Test

To evaluate the LtC-MSDA model, you can run:

python test.py --target $target_domain$ --load_checkpoint $checkpoint_file$

Citation

If this work helps your research, please cite the following paper (it will be updated when the ECCV paper is publicized).

@article{wang2020learning,
  author    = {Hang Wang, Minghao Xu, Bingbing Ni, Wenjun Zhang},
  title     = {Learning to Combine: Knowledge Aggregation for Multi-Source Domain Adaptation},
  journal   = {CoRR},
  volume    = {abs/2007.08801},
  year      = {2020}
}

ltc-msda's People

Watchers

James Cloos avatar paper2code - bot 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.