Git Product home page Git Product logo

azure / pixel_level_land_classification Goto Github PK

View Code? Open in Web Editor NEW
270.0 89.0 98.0 12.92 MB

Tutorial demonstrating how to create a semantic segmentation (pixel-level classification) model to predict land cover from aerial imagery. This model can be used to identify newly developed or flooded land. Uses ground-truth labels and processed NAIP imagery provided by the Chesapeake Conservancy.

License: MIT License

Python 4.79% Jupyter Notebook 95.21%
neural-networks image-classification image-segmentation geospatial-data geospatial-analysis land-cover land-use cntk cntk-model azure-batchai

pixel_level_land_classification's Introduction

Pixel-level land cover classification

This repository contains a tutorial illustrating how to create a deep neural network model that accepts an aerial image as input and returns a land cover label (forested, water, etc.) for every pixel in the image. Microsoft's Cognitive Toolkit (CNTK) is used to train and evaluate the model on an Azure Geo AI Data Science Virtual Machine or an Azure Batch AI GPU cluster. The method shown here was developed in collaboration between the Chesapeake Conservancy, ESRI, and Microsoft Research as part of Microsoft's AI for Earth initiative.

We recommend budgeting two hours for a full walkthrough of this tutorial. The code, shell commands, trained models, and sample images provided here may prove helpful even if you prefer not to complete the walkthrough: we have provided explanations and direct links to these materials where possible.

How to Get Started

The training and evaluation steps of this tutorial can be performed on either:

  • an Azure Geo AI Data Science VM
    • Train a model on a data sample using Jupyter notebooks
    • Deploy the trained model directly in ESRI's ArcGIS Pro
  • an Azure Batch AI GPU cluster
    • Set up your cluster and submit jobs to it from your command line
    • Learn how to scale to large clusters for faster training on larger datasets
    • (Optional) After training, you may download your model and deploy it in ArcGIS Pro on a Geo AI DSVM (see provisioning instructions to get started)
Geo AI DSVM Batch AI
Create a Geo AI Data Science VM Create a Batch AI cluster
Train a model in a Jupyter notebook Train a model on the Batch AI cluster
Evaluate the model using a Jupyter notebook Evaluate the model using a GPU cluster
Deploy your model in ArcGIS Pro Learn how to scale up training

Sample Output

This tutorial will train a pixel-level land cover classifier for a single epoch: your model will produce results similar to bottom-left. By expanding the training dataset and increasing the number of training epochs, we achieved results like the example at bottom right. The trained model is accurate enough to detect some features, like the small pond at top-center, that were not correctly annotated in the ground-truth labels.

Related materials

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

pixel_level_land_classification's People

Contributors

hanhu7 avatar jennifermarsman avatar mawah avatar microsoftopensource avatar msftgits avatar yangsiyu007 avatar

Stargazers

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

Watchers

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

pixel_level_land_classification's Issues

ArcGIS Pro sample project file missing

The ArcGIS Pro project file (D:\pixellevellandclassification\arcgispro\sampleproject.aprx) mentioned in the 4th notebook 04_Apply_trained_model_in_ArcGIS_Pro is missing from the aforementioned folder. Any reason why it has been removed?

02_Train_a_land_classification_model_from_scratch - Syntax troubles

File "", line 1
mpiexec -n 1 C:\Anaconda\python ^
^
SyntaxError: invalid syntax

I receive the following error when I try and run through the second notebook tutorial. I am not sure how to proceed as I have tried mpiexec -n 1 as well, but i then get this error:

File "", line 1
mpiexec -n 1 C:\Anaconda\python ^
^
SyntaxError: unexpected character after line continuation character

Can anyone help?

Error connecting to BLOB storage hosting Pixel-level land classification tutorial data

Hi,
I cant copy data to support Pixel-level land classification tutorial on azure Geo AI Data Science VM. I am receiving an error when trying to connect to the data location in BLOB storage.

I setup a Geo AI Data Science VM with ArcGIS. On the VM it has a Jupyter notebook that walk you through the tutorial. One of the initial commands uses AZcopy to copy the tutorial data from BLOB storage and that is where I am getting stuck.

I am getting:
"2019/06/06 20:05:21 ERROR Error parsing source location “BLOB storage path” Failed to enumerate directory "BLOB storage with tutorial data path" with file pattern . No such host is known StatusMessage: RequestId: Time: For more details, please type "AzCopy /?:Source" or use verbose option.

Any assistance would be appreciated

Docs are misleading for DSVM

This tutorial requires the following programs:

Azure CLI 2.0
AzCopy
These programs are available for Windows and Linux. If you prefer not to install these programs locally, you may instead provision an Azure Data Science Virtual Machine

I provisioned a linux flavored DSVM, but when I ran azcopy, the command was not found. I don't believe that this comes preinstalled on the DSVM as the guide states. az is preinstalled.

Permission Denied on AZCopy

Hello,

I am running the AzCopy cell on my GEODSVM (see screenshot) but am getting a "permission denied" error on the command line (see screeshot) that prevents the download of the sample data and training images to complete this training.

Any advice on possible solutions and cause of error?
2
1

ArcGIS Pro: custom CNTK raster function import fails

Following the steps inside the 04_Apply_trained_model_in_ArcGIS_Pro, I click and try opening the custom CNTK raster function inside ArcGIS Pro. However, it seems like it throws some library import error (see screenshot below).

error_CNTK

GPU version

Are you considering a GPU version of the classification routine? Right now you have to wait several seconds for the classification of the unseen regions.

sku Property Mentioned Twice

In create an azure account and populate with files section of the readme sku property was mentioned twice:

az storage account create --name %STORAGE_ACCOUNT_NAME% --sku Standard_LRS --sku Standard_LRS --resource-group %AZURE_RESOURCE_GROUP% --location eastus

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.