Giter VIP home page Giter VIP logo

vision-project-image-segmentation's Introduction

Real-time Segmentation - A Study of Approaches [PDF]

This repository contains the code for Segmentation Project to fullfil the completion of the course, Neural Networks: Theory and Implementation (Winter 2020/2021).

Requirements

The Cityscapes dataset, which can be downloaded here.

NOTE: The code has been tested in Ubuntu 18.04, and requirements.txt contains all the nessary packages.

Task 1

The notebook, Vision_task_1.ipynb contains the training, evaluation and demo implementation.

Overview

We evaluate the model with PASCAL VOC 2012. The network is an mobilenet-v3, along with PSP module.

task1

task1-metric

Task 2 & 3

Both the tasks use the same framework with changes only to the model architecture.

Train

To train the model, we run train.py

python3 train.py --root Cityscapes_root_directory --model_path optional_param, to resume training from a checkpoint.

Evaluate

The trainer, also evaluates the model for every save and logs the results, but if evaluation needs to be done for a particular model, we run evaluate.py

python3 evaluate.py --root Cityscapes_root_directory --model_path saved_model_path_to_evaluate.

Demo

To visulaize the results, we run demo.py.

python3 demo.py --root Cityscapes_root_directory --model_path saved_model_path_to_run_demo.

Task 2

For task 2, we use the model configuration as mentioned in TABLE IV of R2U-Net.

The pretrained model is available here [4.36 MB]

And, a prediction of Task-2,

task2

Task 3

Our network achieves a mIoU of 64.32 on the Cityscapes val set without any pretrained model. And for an input resolution of 2048x1024, our network can run at the speed of 21.8 FPS on a single RTX 2070 GPU.

Model architecture of Task 3,

task3model

The pretrained model is available here [13.07 MB]

And, a prediction of Task-3,

task3

Acknowledgement

Training code inpired from CoinCheung/BiSeNet

vision-project-image-segmentation's People

Contributors

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