GithubHelp home page GithubHelp logo

ml-project-2-libtrip's Introduction

Machine Learning: Project 2 - Road Segmentation

The goal of this project is to segment satellite images by detecting roads. Our classifier consists of a convolutional neural network called UNet.

Team members

  • Ahmad Bilal KAKAR
  • Imane Zaaraoui
  • Lina Bousbina

Installation

To run the code of this project, you need to install the libraries listed in the requirements.txt file. You can perform the installation using this command:

pip install -r requirements.txt

Dependencies:

  • matplotlib
  • numpy
  • pillow
  • scikit-image
  • torch
  • torchvision
  • tqdm

Predictions for AIcrowd

To reproduce our submission on AIcrowd, run:

python run.py

This command will create the predicted mask for each test image in the predictions directory. It will also produce the submission.csv file for submission.

Structure

This is the structure of the repository:

  • data: contains the datasets

  • models: contains the trained models

  • normal_training.ipynb: if you want to train the model on the original training set, run this notebook until the cell where we save the model. It also performs predictions, saves predicted masks, creates submission files, and applies post-processing

  • augmented_data_training: similar to normal_training.ipynb, but with data augmentation during training.

  • cross_validation.ipynb: performs cross-validation to determine the optimal split ratio for training and validation.

  • run.py: script for making predictions for AIcrowd

  • helper.py: contains the helper functions

  • ImageDataset.py: dataset class

  • loss.py: DiceLoss class

  • unet.py: UNet model

ml-project-2-libtrip's People

Contributors

bilalkakar01 avatar linou12 avatar github-classroom[bot] avatar

Watchers

Matteo Pagliardini avatar Roberto Castello avatar Lie He avatar Maria Vladarean avatar ztzthu 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.