Coder Social home page Coder Social logo

scdunetpp's Introduction

SCDUNet++ for Landslide Mapping Using Multi-Channel Remote Sensing Data

๐Ÿ“„ This repository contains the official implementation of our paper: Landslide Mapping Based on a Hybrid CNN-Transformer Network and Deep Transfer Learning Using Remote Sensing Images with Topographic and Spectral Features Implementation for SCDUNet++.

๐Ÿ“– View paper here.

๐Ÿ‘‰ Here, we provide the pytorch implementation of SCDUNet++.

Requirements

๐Ÿ–ฅ๏ธ This repo has been tested on Windows 10, Python 3.8, PyTorch 1.13.0, and CUDA 11.6. To setup the required modules, please run:

pip install -r requirements.txt

Installation

๐Ÿ’พ Clone this repository to your local machine.

git clone https://github.com/lewuu/SCDUNetPP
cd SCDUNetPP

Dataset preparation

1๏ธโƒฃ Create the directory ๐Ÿ“ data/luding/DATA/img and put the images in it. ๐Ÿ–ผ๏ธ
2๏ธโƒฃ Create the directory ๐Ÿ“ data/luding/DATA/label and put the labels in it. ๐Ÿท๏ธ
3๏ธโƒฃ Create the directory ๐Ÿ“ data/luding/DATA/config and put train.txt, val.txt and test.txt in it. ๐Ÿ“ The text files contain indexes of images and labels as follows (if the images are stored in TIF format):

img1.tif,label1.tif
img2.tif,label2.tif
...,...

๐Ÿ”ง In the file configs/config_case_luding.py, you have the flexibility to adjust the parameters based on your dataset requirements. For example, you can modify the num_classes, input_shape, and in_channels to suit your needs.

Train

โœจ To initiate training, simply run the train.py. The weights for each epoch will be saved in the checkpoints/luding/scdunetpp/loss_yyyy_mm_dd_hh_mm_ss directory.

Test

โœจ Select a weight for testing from the model weights saved during each epoch of training. Put it in checkpoints/Potsdam/scdunetpp directory, and change ckpt_test in configs/config_case_luding.py to the name of the selected weights file.

โœจ Finally, run test.py to start testing.

Citation

If you find this repo useful for your research, please consider citing the paper as follows:

@article{WU2024103612,
title = {Landslide mapping based on a hybrid CNN-transformer network and deep transfer learning using remote sensing images with topographic and spectral features},
journal = {International Journal of Applied Earth Observation and Geoinformation},
volume = {126},
pages = {103612},
year = {2024},
issn = {1569-8432},
doi = {https://doi.org/10.1016/j.jag.2023.103612},
url = {https://www.sciencedirect.com/science/article/pii/S1569843223004363},
author = {Lei Wu and Rui Liu and Nengpan Ju and Ao Zhang and Jingsong Gou and Guolei He and Yuzhu Lei}
}

scdunetpp's People

Contributors

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