Coder Social home page Coder Social logo

mx1mx2 / asan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from christophraab/asan

0.0 1.0 0.0 70.71 MB

Code release for "Bridging Adversarial and Statistical DomainTransfer via Spectral Adaptation Networks" at ACCV2020

Home Page: https://openaccess.thecvf.com/content/ACCV2020/html/Raab_Bridging_Adversarial_and_Statistical_Domain_Transfer_via_Spectral_Adaptation_Networks_ACCV_2020_paper.html

Python 100.00%

asan's Introduction

Adversarial Spectral Adaptation Network (ASAN).

Pytorch Source code for Adversarial Spectral Adaptation Network (ASAN).
This repository is part of the ACCV 2020 submission Bridging Adversarial and Statistical DomainTransfer via Spectral Adaptation Networks.
Link to paper

Contact: [email protected]
If you got problems with this implementation, feel free to write me an email.

Installation

  1. We provide the yml-file for the virtual conda envirement in the file
    pytorch.yml. After installation you should be able to run the code in this repository.

  2. First, download the dataset your are prefering. The links to the datasets can be found in the respective sections.

  3. After download, unzip the files and place the output folders as they are in the directory images.

  4. (Optional: Adapt the dataset lists in data to your to preferred path)

Demo

For a simple training-evaluation demo run with preset parameters, you can use the following commands for training on

Office-31 A->W
train_image.py --tl RSL --s_dset_path data/office/amazon.txt --t_dset_path data/office/webcam.txt --test_interval 100 --num_workers 12 --sn True --k 11 --tllr 0.001

Image-Clef I->P
train_image.py --tl RSL --dset image-clef --s_dset_path data/office/amazon.txt --t_dset_path data/office/webcam.txt --test_interval 100 --num_workers 12 --sn True --k 11 --tllr 0.001

Training and Inference

  1. The network can be trained via train_image.py See the Args-Parser parameter description in the file for the documentation of the parameters.

  2. The trained models are obtainable under snapshopt/san

Datasets

Office-31

Office-31 dataset can be found here.

Office-Home

Office-Home dataset can be found here.

Image-clef

Image-Clef dataset can be found here.

Acknowledgement

We thank Mingsheng Long et al. for providing the code for the CDAN model.
See https://github.com/thuml/CDAN

asan's People

Contributors

caozhangjie avatar christophraab avatar sub-dawg avatar longmingsheng avatar

Watchers

James Cloos 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.