Giter Site home page Giter Site logo

avivsham / deeplabv3 Goto Github PK

View Code? Open in Web Editor NEW
23.0 4.0 7.0 12.01 MB

Implementation of DeepLabV3 paper using Pytorch

License: MIT License

Jupyter Notebook 99.81% Python 0.19% Shell 0.01%
pytorch camvid machine-learning deep-learning google-colab image-segmentation semantic-segmentation

deeplabv3's Introduction

DeepLabv3

In this repository we reproduce the DeepLabv3 paper which can be found here: Rethinking Atrous Convolutions The DeepLabv3 model expects the feature extracting architecture to be ResNet50 or ResNet101 so this repository will also contain the code of the ResNet50 and ResNet101 architecture. We will also release colab notebook and pretrained models.

How to use

  1. This repository comes in with a handy notebook which you can use with Colab.
    You can find a link to the notebook here: DeepLabv3
    Open it in colab: Open in Colab

  1. Clone the repository and cd into it
git clone https://github.com/AvivSham/DeepLabv3.git
cd DeepLabv3/
  1. Use this command to train the model
python3 init.py --mode train -iptr path/to/train/input/set/ -lptr /path/to/label/set/ --cuda False -nc <number_of_classes>
  1. Use this command to test the model
python3 init.py --mode test -m /path/to/model.pth -i /path/to/image.png -nc <number_of_classes>
  1. Use --help to get more commands
python3 init.py --help

  1. If you want to download the cityscapes dataset
sh ./datasets/dload.sh cityscapes <your_username> <your_password>
  1. If you want to download the PASCAL VOC 2012 datasets
sh ./datasets/dload.sh pascal

Results

Pascal VOC 2012

CityScapes

References

  1. Rethinking Atrous Convolutions
  2. Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation

License

The code in this repository is free to use and to modify with proper linkage back to this repository.

deeplabv3's People

Contributors

avivsham avatar iarunava avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deeplabv3's Issues

how to get ckpt ?

ckpt = torch.load('/content/gdrive/My Drive/ckpt-deeplabv3-1-1137.224061.pth')
in this line, i wonder how to get ckpt-deeplabv3-1-1137.224061.pth ??

Yet to implement

List of features to implement:

  • Make the pretrained models public
  • mIoU (mean Intensity over Union)
  • Evaluation Loop for (CityScapes, Pascal VOC 2012)
  • Modify the get_class_weights function to calculate the class weights for CityScapes Dataset

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.