Code Monkey home page Code Monkey logo

csa-cdgan's Introduction

CSA-CDGAN: Channel Self-Attention Based Generative Adversarial Network for Change Detection of Remote Sensing Images

A general framework for change detection of remote sensing images image

Requirements

Python 3.7.0  
Pytorch 1.6.0  
Visdom 0.1.8.9  
Torchvision 0.7.0

Datasets

Pretrained Model

Pretrained models for CDD, LEVIR-CD and WHU-CD are available. You can download them from the following link. [Baiduyun] the password is yudl. [GoogleDrive]

Test

Before test, please download datasets and pretrained models. Revise the data-path in constants.py to your path. Copy pretrained models to folder './dataset_name/outputs/best_weights', and run the following command:

cd CSA-CDGAN_ROOT
python make_dataset.py
python test.py

make_dataset.py can generate .txt files for training, validation and test. Not that the dataset structure should be the same as following:

Custom dataset
|--train
  |--file1
    |--t0.jpg, t1.jpt, label.jpg
  |--file2
    |--t0.jpg, t1.jpt, label.jpg
  ...
|--test
  |--file1
    |--t0.jpg, t1.jpt, label.jpg
  |--file2
    |--t0.jpg, t1.jpt, label.jpg
  ...
|--validation
  |--file1
    |--t0.jpg, t1.jpt, label.jpg
  |--file2
    |--t0.jpg, t1.jpt, label.jpg
  ...

Training

cd CSA-CDGAN_ROOT
python make_dataset.py
python -m visdom.server
python train.py

To display training processing, copy 'http://localhost:8097' to your browser.

Citing TransCD

If you use this repository or would like to refer the paper, please use the following BibTex entry.

@inproceddings{TransCD,
title={CSA-CDGAN: Channel Self-Attention Based Generative Adversarial Network for Change Detection of Remote Sensing Images},
author={ZHIXUE WANG, YU ZHANG*, LIN LUO, NAN WANG},
yera={2021},
}

Reference

-Akcay, Samet, Amir Atapour-Abarghouei, and Toby P. Breckon. "Ganomaly: Semi-supervised anomaly detection via adversarial training." Asian conference on computer vision. Springer, Cham, 2018.

csa-cdgan's People

Contributors

wangle53 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.