GithubHelp home page GithubHelp logo

rfa-net's Introduction

This is the PyTorch implementation of our paper:

RFA-Net: Reconstructed Feature Alignment Network for Domain Adaptation Object Detection in Remote Sensing Imagery

IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing 2022

Yangguang Zhu; Xian Sun; Wenhui Diao; Hao Li; Kun Fu

What we are doing and going to do

  • Add the strong data augmentation for the training process

Installation

Prerequisites

Please refer to the environment.txt

Build

cd lib
python setup.py develop build 

Please refer to SWDA (Different from the SWDA, we have update the code to adapt PyTorch==1.0.0. The PyTorch version of SWDA is 0.4.0. You can also use the higher version of PyTorch, but some scripts may be revised. )

Data Data Preparation

Please refer to SWDA

NWPU VHR-10 Dataset

Download the dataset from Link

DIOR Dataset

Download the dataset from Link Extract the same ten classes as NWPU VHR-10 Dataset to generate DIOR*

HRRSD

Download the dataset from Link Extract the same ten classes as NWPU VHR-10 Dataset to generate DIOR*

Training

Conduct Pseudo-Label Generation

  • Please refer to Link

  • Generate the pseudo labels for DIOR* and HRRSD*

  • Formulate the DIOR_ten_class_pseudo_label and hrrsd_pseudo_label.

  • Don`t forget to register these datasets in the code.

Train the Model

Demo

  • Train the RFA-Net with vgg16 under NWPU VHR-10 Dataset (source) and DIOR* (target)
python trainval_net_RFA_Net.py --use_tfb --datase nwpu_vhr --dataset_t DIOR_ten_class_pseudo_label --net vgg16 --cuda --save_dir YOUR_PATH_TO_SAVE_THE_MODEL
  • Train the RFA-Net with res101 under NWPU VHR-10 Dataset (source) and HRRSD* (target)
python trainval_net_RFA_Net.py --use_tfb --datasenwpu_vhr --dataset_t DIOR_ten_class --net res101 --cuda --save_dir YOUR_PATH_TO_SAVE_THE_MODEL

Test the Model

  • Test the RFA-Net with res101 under NWPU VHR-10 Dataset (source) and HRRSD* (target)
python test_net_RFA_Net.py --dataset DIOR_ten_class --net res101 --cuda --load_name YOUR_CHECKPOINT_PATH

rfa-net's People

Contributors

ygzhu avatar

Stargazers

hongjun avatar  avatar Evan.Ren avatar liu chang avatar XiaoqiangZhou avatar  avatar

Forkers

razirp

rfa-net's Issues

data format

Hi, is it necessary to convert 'NWPU VHR-10 Dataset' to voc format? If so how do I need to convert it?

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.