GithubHelp home page GithubHelp logo

vaihingen-semantic-segmentation's Introduction

Vaihingen-Semantic-Segmentation

Outline:

Set Up Conda Environment

conda create -f environment.yml

Data Gathering and Preprocesing

Step 1: ISPRS Vaihingen dataset

The ISPRS Vaihingen dataset can be downloaded with the login details in an automated email, after completing this form form via:

ground truth:

wget ftp://$username:[email protected]/ISPRS_BENCHMARK_DATASETS/Vaih
ingen/ISPRS_semantic_labeling_Vaihingen_ground_truth_COMPLETE.zip

image data:

wget ftp://$username:[email protected]/ISPRS_BENCHMARK_DATASETS/Vaih
ingen/ISPRS_semantic_labeling_Vaihingen.zip

Ones the data has been downloaded move the archives to the data folder in project directory and unzip them:

unar -d ISPRS_semantic_labeling_Vaihingen.zip
unar -d ISPRS_semantic_labeling_Vaihingen_ground_truth_COMPLETE.zip

Step 2: Preprocesing

python preprocessing.py

Model training

Baseline Model

To train a baseline model, run:

python train.py baseline

Weakly Supervised Model

The weakly supervised training is performed in three steps:

Step 1: Train baseline

Train the baseline model (if still not trained). For that see the Baseline Model section.

Step 2: Generate masks for weakly training

Generate the masks using the trained baseline model. For this run from the main challenge directory

python gen_masks.py

This will generate the masks which are corrected by image level labels: if on the image level some tag is not present, all the corresponding pixel level tags of this type are deleted.

Step 3: Run the actual training of the weakly supervised model

python train.py weakly_supervised

The idea behind this model is that one uses the masks generated by the baseline model to use this information as a support to training on N1 + N2(weakly) combined sample.

vaihingen-semantic-segmentation's People

Contributors

akorol98 avatar

Stargazers

 avatar Alice_li avatar  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.