• Stars
    star
    306
  • Rank 136,456 (Top 3 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

FC-DenseNet in PyTorch for Semantic Segmentation

One Hundred Layers Tiramisu

PyTorch implementation of The One Hundred Layers Tiramisu: Fully Convolutional DenseNets for Semantic Segmentation.

Tiramisu combines DensetNet and U-Net for high performance semantic segmentation. In this repository, we attempt to replicate the authors' results on the CamVid dataset.

Setup

Requires Anaconda for Python3 installed.

conda create --name tiramisu python=3.6
source activate tiramisu
conda install pytorch torchvision -c pytorch

The train.ipynb notebook shows a basic train/test workflow.

Dataset

Download

Specs

  • Training: 367 frames
  • Validation: 101 frames
  • TestSet: 233 frames
  • Dimensions: 360x480
  • Classes: 11 (+1 background)

Architecture

Tiramisu adopts the UNet design with downsampling, bottleneck, and upsampling paths and skip connections. It replaces convolution and max pooling layers with Dense blocks from the DenseNet architecture. Dense blocks contain residual connections like in ResNet except they concatenate, rather than sum, prior feature maps.

Layers

FCDenseNet103

Authors' Results

Authors Results on CamVid

Authors Results on CamVid

Our Results

FCDenseNet67

We trained for 670 epochs (224x224 crops) with 100 epochs fine-tuning (full-size images). The authors mention "global accuracy" of 90.8 for FC-DenseNet67 on Camvid, compared to our 86.8. If we exclude the 'background' class, accuracy increases to ~89%. We think the authors did this, but haven't confirmed.

Dataset     Loss Accuracy
Validation .209 92.5
Testset .435 86.8

Our Results on CamVid

FCDenseNet103

We trained for 874 epochs with 50 epochs fine-tuning.

Dataset     Loss Accuracy
Validation .178 92.8
Testset .441 86.6

Our Results on CamVid

Predictions

Our Results on CamVid

Training

Hyperparameters

  • WeightInitialization = HeUniform
  • Optimizer = RMSProp
  • LR = .001 with exponential decay of 0.995 after each epoch
  • Data Augmentation = Random Crops, Vertical Flips
  • ValidationSet with early stopping based on IoU or MeanAccuracy with patience of 100 (50 during finetuning)
  • WeightDecay = .0001
  • Finetune with full-size images, LR = .0001
  • Dropout = 0.2
  • BatchNorm "we use current batch stats at training, validation, and test time"

References and Links

More Repositories

1

ml-glossary

Machine learning glossary
Python
3,005
star
2

pytorch-kaggle-starter

Pytorch starter kit for Kaggle competitions
Jupyter Notebook
324
star
3

pytorch-cheatsheet

Check out improved:
Jupyter Notebook
296
star
4

ml-study

ML Learning Sabbatical Study Materials
Jupyter Notebook
132
star
5

computer-vision

Computer vision sabbatical study materials
Jupyter Notebook
54
star
6

problems

Programming practice problems and solutions ;)
Python
39
star
7

labelml

Machine Learning Image Annotation Tool
Python
36
star
8

machine-learning

Machine learning sabbatical study materials
Jupyter Notebook
23
star
9

pytorch-federated-learning

Jupyter Notebook
15
star
10

learning_data_aug

OpenAI Request for Research - https://blog.openai.com/requests-for-research-2/
Jupyter Notebook
13
star
11

zoosearch

Search engine for machine learning models and datasets
JavaScript
10
star
12

higgins

OpenAI-based personal assistant and browser automation tool
Python
9
star
13

deep_learning_course

Materials for deep learning course created by fast.ai
Jupyter Notebook
8
star
14

punisher

Cryptocurrency trading library for machine learning research
Jupyter Notebook
6
star
15

python-algorithms

Notes and functions for Python algorithms course
Python
4
star
16

healthfed

Federated Learning in Healthcare Data
Python
3
star
17

epilepsy_diary

Backend FB Messenger Bot To Help Epileptics Track Seizures
Python
3
star
18

AndroidCaffe2

Demo deploying PyTorch/Caffe2 models to Android
C++
3
star
19

vaa3d-api

API for running Vaa3D jobs
Python
3
star
20

lungcancer

Luna and Kaggle Lung Cancer
Jupyter Notebook
2
star
21

AndroidDemo

Quick prototyping app to learn Android basics
C++
2
star
22

deephacks

Jupyter Notebook
2
star
23

hapibot

Frontend FB Messenger Bot To Help Epileptics Track Seizures
JavaScript
2
star
24

label-ai

Python
1
star
25

PyTorch2Android

Run PyTorch models on Android
1
star
26

sealions

Jupyter Notebook
1
star
27

kaggle-submissions

Kaggle competition submissions
Jupyter Notebook
1
star
28

probleeyo

Coding practice problems for mobile devices
JavaScript
1
star
29

bfortuner.github.io

Old Static Blog w Jekyll
HTML
1
star