GithubHelp home page GithubHelp logo

bobholamovic / fcn-cd-pytorch Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 8.0 131 KB

Training code for https://github.com/rcdaudt/fully_convolutional_change_detection

License: BSD 2-Clause "Simplified" License

Python 100.00%
remote-sensing change-detection deep-learning convolutional-siamese-networks pytorch

fcn-cd-pytorch's Introduction

Fully Convolutional Siamese Networks for Change Detection


This repo has been deprecated. Please see CDLab, which includes more architectures and datasets.

This is an unofficial implementation of the paper

Rodrigo Caye Daudt, Bertrand Le Saux, Alexandre Boulch. (2018, October). Fully convolutional siamese networks for change detection. In 2018 25th IEEE International Conference on Image Processing (ICIP) (pp. 4063-4067). IEEE.

as the official repo does not provide the training code.

paper link

Dependencies

opencv-python==4.1.1
pytorch==1.3.1
torchvision==0.4.2
pyyaml==5.1.2
scikit-image==0.15.0
scikit-learn==0.21.3
scipy==1.3.1
tqdm==4.35.0

Tested using Python 3.7.4 on Ubuntu 16.04 and Python 3.6.8 on Windows 10.

Basic usage

# The network definition scripts are from the original repo
git clone --recurse-submodules [email protected]:Bobholamovic/FCN-CD-PyTorch.git
cd FCN-CD-PyTorch
mkdir exp
cd src

In src/constants.py, change the dataset locations to your own. In config_base.yaml, set specific configurations.

For training, try

python train.py train --exp_config ../configs/config_base.yaml

For evaluation, try

python train.py eval --exp_config ../configs/config_base.yaml --resume path_to_checkpoint --save-on

You can check the model weight files in exp/base/weights/, the log files in exp/base/logs, and the output change maps in exp/base/out.


Changed

  • 2020.3.14 Add configuration files.
  • 2020.4.14 Detail README.md.
  • 2020.12.8 Update framework.

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.