Coder Social home page Coder Social logo

bayes-forest-structure's Introduction

bayes-forest-structure

Code accompanying our paper "Country-wide Retrieval of Forest Structure From Optical and SAR Satellite Imagery With Bayesian Deep Learning" [link to paper]

Code organization

  • ./config configuration files for data preprocessing, training and testing
  • ./src main project code
    • ./src/scripts helper scripts for preprocessing, evaluation etc.

Getting started

Prerequisites

  • python >= 3.8
  • numpy >= 1.19
  • pytorch >= 1.9
  • scikit-image >= 0.18
  • rasterio >= 1.1.5
  • gdal >= 3.0
  • fiona >= 1.8.13
  • latextable

Inference

To apply our model to your data, preprocess the SAR data using the /src/scripts/preprocess_s1.py script and then reproject it to the Sentinel-2 tile. Then use /src/scripts/predict_tile.py to process the tile, passing the locations to the optical and SAR files as arguments. Make sure to also pass the paths of the config.yaml file (containing network configurations and statistics for data normalization) and of all five network checkpoints via the respective command line args. The files can be downloaded from here. The output tiles will be written to the location passed as --out_dir.

Training

For improved efficiency during training, the preprocessed and reprojected Sentinel images as well as the ground truth should be pickled first using the /src/scripts/prepare_dataset.py script. For training the /src/train.py script (along with the /config/resnext.yaml config file) is used.

Citation

@article{becker2023country,
  title={Country-wide retrieval of forest structure from optical and SAR satellite imagery with deep ensembles},
  author={Becker, Alexander and Russo, Stefania and Puliti, Stefano and Lang, Nico and Schindler, Konrad and Wegner, Jan Dirk},
  journal={ISPRS Journal of Photogrammetry and Remote Sensing},
  volume={195},
  pages={269--286},
  year={2023},
  publisher={Elsevier}
}

bayes-forest-structure's People

Contributors

alebeck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bayes-forest-structure's Issues

More information required about running the project

Hello!

I'm relatively new to this field and I'm facing some challenges in running the project. My goal is to replicate this repository locally. However, when attempting to execute the preprocess_s1.py script to apply pre-processing to the Sentinel 1 image, I encounter an error indicating the absence of the merged_bilinear_2.tif file. I have carefully reviewed the code but couldn't find any script that references or generates this file, except for its use in the /config/process_s1.xml for the terrain correction preprocessing. Additionally, my online search yielded no information about such a file. Could you please guide me on how to obtain this file?

Moreover, if possible, I would greatly appreciate a more comprehensive explanation of the workflow. Specifically, starting from Sentinel 1 and Sentinel 2 images, how can I proceed to achieve the desired result given by the machine learning model?

Thank you for your assistance.

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.