GithubHelp home page GithubHelp logo

aenet's Introduction

This is the code for the article called "AENet: An Asymmetric Encoder Network with Feature Selection for Change Detection"

1、Run Environment :

The code has been tested on Python 3.5 and 3.7, and the installed version of PyTorch is CUDA 11.3. Other toolkits can be downloaded one by one using pip when errors are occurring during the run.

2、Dataset download and Settings:

The specific sources of three open-source datasets can be found through the citations in the paper. Below are the datasets that I have segmented.

GZ-CD: coming soon

WHU-CD: coming soon

LEVIR-CD: coming soon

After downloading and splitting the dataset, change the path of your own dataset in the constants.py file.

3、Run:

Taking the gz-cd dataset as an example, first switch to the path /AENet/src/:

Training:

python train.py train --exp_comfig ../configs/gzcd/config_gzcd_clnet.yaml   

Test:

python train.py eval --exp_config ../configs/gzcd/config_gzcd_clnet.yaml --resume ../exp/gzcd/weights/model_best_clnet.pth --save_on --subset test 

Continuing the training from the one breakpoint:

python train.py train --exp_config PATH_TO_CONFIG_FILE --resume PATH_TO_CHECKPOINT

(where PATH_TO_CONFIG_FILE is the configuration in the configs directory, and PATH_TO_CHECKPOINT is the model parameter saved in the exp directory)

Declaration: The implementation of the code in this article uses the shell of CDLab. My code has been highly streamlined based on this. If further understand and modification of the model's shell are required, please refer to the source code https://github.com/Bobholamovic/CDLab.

aenet's People

Contributors

kent-xiong avatar

Watchers

Lucian avatar  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.