Skip to content

Latest commit

 

History

History
102 lines (59 loc) · 2.75 KB

README.md

File metadata and controls

102 lines (59 loc) · 2.75 KB

Decompose to Adapt: Cross-domain Object Detection via Feature Disentanglement

Introduction

In this project, we proposed a Domain Disentanglement Faster-RCNN (DDF) for cross-domain object detection, from the view of feature disentanglement.

The implementations are for our paper published in IEEE Transactions on Multimedia:

Decompose to Adapt: Cross-domain Object Detection via Feature Disentanglement

alt text

Preparation

Basic settings

  • Python 3+
  • Pytorch 1.6.0
  • CUDA 11.0

Dataset Preparation

Pretrained Model

We used two pretrained models in our experiments, VGG and ResNet101. You can download these two models from:

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

Compilation

You might need to re-build this repository via:

cd lib  
python setup.py build develop

For other detailed settings, please refer to pytorch 1.0 version of repository.

Training

To train the model, please run:

./train_disent.sh

Test and visualization

To test the model, please run:

./test_disent.sh

To get the visualization of the feature maps and the feature distance, please refer to:

./test_disent_vis.sh

Visual Examples of the features

alt text

Citations (Bibtex)

Please consider citing our papers in your publications if they are helpful to your research:

@article{liu2022decompose,
  title={Decompose to Adapt: Cross-domain Object Detection via Feature Disentanglement},
  author={Liu, Dongnan and Zhang, Chaoyi and Song, Yang and Huang, Heng and Wang, Chenyu and Barnett, Michael and Cai, Weidong},
  journal={IEEE Transactions on Multimedia},
  year={2022},
  publisher={IEEE}
}

Contact

Please contact Dongnan Liu ([email protected]) regarding any issues.

License

DDF is released under the MIT license. See LICENSE for additional details.