Giter Site home page Giter Site logo

weakly-supervised-semseg's Introduction

Weakly Supervised Semantic Segmentation

Setup

Local

Create new python virtual environment. Then:

pip install -r requirements.txt

Cloud (GCP)

./gcp_instance.sh

Data

Find the data here: ​ISPRS Vaihingen dataset​

There are 33 high-resolution (approx 1500x2000px) aerial images of the town of Vaihingen, Germany. Labels are supplied with 1 class per pixel, as follows:

  1. Impervious surfaces - WHITE
  2. Building - BLUE
  3. Low vegetation - TURQUOISE
  4. Tree - GREEN
  5. Car - YELLOW
  6. Clutter/background - RED

Data preprocessing

src/split_to_tiles.py: Cuts 33 high-resultion images into 4497 200x200 tiles.

src/prep_tiles.py: Creates weakly-supervised tile-level annotations.

src/split_sets.py: Creates the N1, N2, N_validation split (randomly), see src/constants.py for the resulting split.

src/mask_conversion.py: Takes 3 channel RGB masks and translates them into 1 channel images where a pixel value is encoded by 0, 1, 2, 3, ..., n_colors

Project

Weakly supervised learning with some fully supervised (pixel-level) annotations.

src/fully-supervised-semseg.ipynb: Fully-supervised (FS) training on N1

src/weakly-supervised-semseg.ipynb: Weakly-supervised (WS) training on N2

src/mixed-supervision-semseg.ipynb: Combine FS and WS to try to improve the performance of the semantic segmentation task.

Report and Results

See <report.md>

Run unit tests

pytest

weakly-supervised-semseg's People

Contributors

markus-hinsche avatar

Watchers

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