DaChro / ogh_summer_school_2020

Material for the session "Introduction to Deep Learning in R for the analysis of UAV-based remote sensing data"
20 stars 18 forks source link

Introduction to Deep Learning in R for the analysis of UAV-based remote sensing data

OpenGeoHub summer school 2020

Tutorial Notebook

The tutorial notebook with all the code and explanations can be found here:

Installation

To reproduce the tutorial, certain R packages and other dependencies are required (if you don´t want to install them yourself or if you encounter problems during the installation, you might want to use the Docker image, see below).

Install a current version of R and the following packages:

install.packages(c("keras","tfdatasets","mapview","stars","rsample","gdalUtils","purrr", "magick", "jpeg"))

Install miniconda, keras and tensorflow python dependencies:

To check if everything works:

For installing dependencies of rgdal, stars and magick on linux:

When running any tensorflow-related code for the first time, you will probably get a bunch of messages/warnings (some mean-looking red text). Don´t worry about this. This is mainly tensorflow stating that it is not running as fast as it could (this is because we are not using GPU support and have no specific CPU extensions in order to be compatible with as many systems as possible).

Docker

If you are in for using Docker, I´ve prepared a Docker image that includes all software and data for the tutorial, so you can reproduce the tutorial without installing keras etc. on your host system. If you want to use it, download and install Docker Engine/Desktop:

Then:

Data

Download and unzip the tutorial data from: https://uni-muenster.sciebo.de/s/SOjP7fRGBRztn9z/download