Git Product home page Git Product logo

domain-contrast's Introduction

Domain Contrast

Code of Domain Contrast for Domain Adaptive Object Detection, accepted in IEEE Transactions on Circuits and Systems for Video Technology(TCSVT)๏ผŒ2021.

The code is built based on the faster-rcnn. Please follow original project respository to set up the environment.

Data Preparation

  • PASCAL_VOC 07+12: Please refer py-faster-rcnn for constructing PASCAL VOC Datasets.
  • Clipart, Comic, WaterColor: Please refer Cross Domain Detection .
  • SIM10k: Please refer website SIM10k
  • Cityscape:Please refer website Cityscape, see dataset preparation code in DA-Faster RCNN
  • Transferred Datasets: We use CycleGAN to generate transferred images.We trained CycleGAN with a learning rate of 2e-4 for the first ten epochs and a linear decaying rate to zero over the next ten epochs.

All codes are written to fit for the Data format of Pascal VOC. After downloading/generating the data, creat softlinks in the folder data/.

Pretrained Model

In our experiments, we used two pre-trained models on ImageNet, i.e., VGG16 and ResNet101. Please download these two models from:

Download them and put them into the data/pretrained_model/.

Train and Test

All specific hyperparameters are in the shell scripts. Run with the following commands and you will get the results. Pascal2Clipart:

bash pascal2clipart.sh

Pascal2Comic:

bash pascal2comic_vgg16.sh
bash pascal2comic_resnet101.sh

Pascal2Watercolor:

bash pascal2watercolor.sh

SIM10K2Cityscape:

bash sim10k2city.sh

Results

Task Backbone mAP
Pascal2Clipart Resnet101 43.2
Pascal2Comic VGG16 36.9
Pascal2Watercolor Resnet101 53.7
SIM10K2Cityscape VGG16 41.6

domain-contrast's People

Contributors

liewfeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.