Giter Club home page Giter Club logo

clda_neurips21's Introduction

CLDA: Contrastive Learning for Semi-Supervised Domain Adaptation [Paper] [Website]

This repository contains the implementation details of our CLDA: Contrastive Learning for Semi-Supervised Domain Adaptation (CLDA) approach for domain adaptation in images.

Ankit Singh , "CLDA: Contrastive Learning for Semi-Supervised Domain Adaptation"

If you use the codes and models from this repo, please cite our work. Thanks!

@inproceedings{
singh2021clda,
title={{CLDA}: Contrastive Learning for Semi-Supervised Domain Adaptation},
author={Ankit Singh},
booktitle={Advances in Neural Information Processing Systems},
editor={A. Beygelzimer and Y. Dauphin and P. Liang and J. Wortman Vaughan},
year={2021},
url={https://openreview.net/forum?id=1ODSsnoMBav}
}

Acknowledgments

The implementation is built on the pytorch implementation of SSDA_MME and APE

Dataset Structure

You can download the datasets by following the instructions in SSDA_MME.

data---
     |
   multi---
     |   |
     |  Real
     |  Clipart
     |  Product
     |  Real
   office_home---
     |         |
     |        Art
     |        Clipart
     |        Product
     |        Real
   office---
     |    |
     |   amazon
     |   dslr
     |   webcam
   txt---
       | 
      multi---
       |    |
       |   labeled_source_images_real.txt
       |   unlabeled_target_images_real_3.txt
       |   labeled_target_images_real_3.txt         
       |   unlabeled_source_images_sketch.txt
       |                  ...
      office---
       |     |
       |   labeled_source_images_amazon.txt
       |   unlabeled_target_images_amazon_3.txt
       |   labeled_target_images_amazon_3.txt         
       |   unlabeled_source_images_webcam.txt
       |                  ...
      office_home---
                  |
                 ...       

Example

Train

  • DomainNet (clipart, painting, real, sketch)
python clda_final.py --dataset multi --source real --target sketch --save_interval 500 --steps 50000 --net resnet34 --num 3 --save_check
  • Office-home (Art, Clipart, Product, Real)
  • Office (amazon, dslr, webcam)

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.