Code Monkey home page Code Monkey logo

multi-temporal-super-resolution's Introduction

DIONE - Super Resolution using Sentinel-2 and Deimos imagery

This repo contains code to train a multitemporal super-resolution model for Sentinel-2 imagery using Deimos.

You can find more information about this project in the blog post Multi-temporal Super-Resolution on Sentinel-2 Imagery

Introduction

This project is part of the DIONE project where one of the missions is using novel techniques to improve the capabilities of satellite technology while integrating various data sources, such as very high resolution imagery, to, for example, enable monitoring of smaller agricultural parcels through the use of super resolution models.

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 870378.

Please visit the Dione website for further information.

Requirements

The super resolution pipeline uses SentinelHub service to download Sentinel-2 and Deimos imagery. Amazon AWS S3 bucket was used to store the data.
Deimos imagery is not public, however any other Very High Resolution imagery can be used by adjusting the general workflow.

Installation and usage

To install the sr package, clone locally the repository, and from within the repository, run the following commands:

pip install -r requirements.txt
python setup.py install --user

Procedure is executed in notebooks, the basic functionality of each notebook is described below:

  • 00-parse-deimos-metadata.ipynb: Deimos specific. Parses metadata for each ingested Deimos tile and saves to dataframe.
  • 00a-add-per-tile-median.ipynb Deimos specific. Calculates median for each Deimos tile.
  • 00b-calculate-cloudfree-deimos-stats.ipynb Deimos specific. Calculates Deimos tile statistics on cloudless areas.
  • 01-download-to-eopatches.ipynb Download Sentinel-2 and ingested Deimos imagery to EOPatches
  • 02a-add-clm-deimos.ipynb Add cloud mask information to Deimos EOPatches
  • 02b-add-clm-stats-to-patches.ipynb Add cloudless normalization statistics to EOPatches
  • 03-sampling.ipynb Sample smaller patchlets from EOPatches
  • 04-sampled-to-npz.ipynb Construct NPZ files from patchlets.
  • 05a-train-test-split.ipynb Split NPZ files into train/test/validation sets..
  • 05b-find-cloudy-neighbours.ipynb Shadow detection by filtering neighbours of cloudy EOPatches
  • 05c-calculate-s2-normalizations.ipynb Calculate per country Sentinel-2 normalization statistics.
  • 06-train.ipynb Model training.
  • 07-predict.ipynb Predict the model on smaller patchlets.
  • 07b-predict-eopatches.ipynb Predict the model on whole EOPatches.

Acknowledgments

The code is adapted from ElementAI's HighResNet code. Refer also to the published paper.

multi-temporal-super-resolution's People

Contributors

veseln avatar

Watchers

 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.