GithubHelp home page GithubHelp logo

taosunvoyage / road_segmentation_ml Goto Github PK

View Code? Open in Web Editor NEW
11.0 0.0 5.0 1.05 MB

Road Extraction from Satellite Images with an ensemble of 3 U-Nets

License: MIT License

Python 100.00%
deep-learning keras u-net road-segment crowdai

road_segmentation_ml's Introduction

Road Segmentation

EPFL CS-433 Machine Learning - Project 2

crowdAI username: Tao Sun, submission ID: 23803

Team Members: Tao Sun, Xiao Zhou, Jimin Wang

Instructions

In order to reproduce the result we submitted to crowdAI, please follow the instructions as following:

  • Please make sure Python 3.6 and packages in requirements.txt are installed.
pip install -r requirements.txt
  • Please kindly download dataset from crowdAI, and then upzip and move training and test_set_images folders under the data\ folder.

  • If you want to get the results we submitted in the crowdAI, we have prepared models for you. Please download it from here, then unzip and move the three weights file into weights\ folder. Then run run.py, you will get the submission.csv under the submission\ folder.

python run.py
  • If you want to retrain our models, please run train_predict.py, you will then directly get the submission.csv under the submission\ folder.
python train_predict.py

Modules

data.py

Functions for preprocessing data, building data generator and saving data.

losses.py, metrics.py

Define: Dice coefficient, Dice loss, BinaryCrossentropy+Dice loss and F1 score.

model.py

  • unet: Modified U-Net with dropout and batch-normalization
  • unet_dilated: U-Net with dilated convolution as bottlenect

mask_to_submission.py

Helper functions for generating crowdAI submission file.

train_predict.py

Script to retrain models and get the prediction results as we submitted in crowdAI.

run.py

Script to generate the same submission file as we submitted in crowdAI with pretrained models.

License

The project is licensed under the MIT License.

road_segmentation_ml's People

Contributors

taosunvoyage avatar zx-joe avatar

Stargazers

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