• Stars
    star
    127
  • Rank 282,790 (Top 6 %)
  • Language
    Python
  • Created over 7 years ago
  • Updated over 6 years ago

Reviews

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

Repository Details

LinkNet

This repository contains our PyTorch implementation of the network developed by us at e-Lab. You can go to our blogpost or read the article LinkNet: Exploiting Encoder Representations for Efficient Semantic Segmentation for further details.

The training script has issues and it is still a work in progress.

Dependencies:

Currently the network can be trained on two datasets:

Datasets Input Resolution # of classes
CamVid (cv) 768x576 11
Cityscapes (cs) 1024x512 19

To download both datasets, follow the link provided above. Both the datasets are first of all resized by the training script and if you want then you can cache this resized data using --cachepath option. In case of CamVid dataset, the available video data is first split into train/validate/test set. This is done using prepCamVid.lua file. dataDistributionCV.txt contains the detail about splitting of CamVid dataset. These things are automatically run before training of the network.

LinkNet performance on both of the above dataset:

Datasets Best IoU Best iIoU
Cityscapes 76.44 60.78
CamVid 69.10 55.83

Files/folders and their usage:

  • main.py : main file

  • opts.py : contains all the input options used by the tranining script

  • data : data loaders for loading datasets

  • [models] : all the model architectures are defined here

  • train.py : loading of models and error calculation

  • test.py : calculate testing error and save confusion matrices

  • ConfusionMatrix.py : implements a confusion matrix There are three model files present in models folder:

  • model.py : our LinkNet architecture

  • model-res-dec.py : LinkNet with residual connection in each of the decoder blocks. This slightly improves the result but we had to use bilinear interpolation in residual connection because of which we were not able to run our trained model on TX1.

  • nobypass.py : this architecture does not use any link between encoder and decoder. You can use this model to verify if connecting encoder and decoder modules actually improve performance.

A sample command to train network is given below:

th main.py --datapath /media/HDD1/Datasets/ --cachepath /dataCache/cityscapes/ --dataset cs --model models/model.py --save /Trained_models/cityscapes/ --saveTrainConf True --saveAll True --plot True

License

This software is released under a creative commons license which allows for personal and research use only. For a commercial license please contact the authors. You can view a license summary here: http://creativecommons.org/licenses/by-nc/4.0/

More Repositories

1

ENet-training

Lua
351
star
2

torch-toolbox

A collection of snippets and libraries for Torch from e-Lab
C
199
star
3

LinkNet

Lua
166
star
4

VideoSensors

Android application that records video and motion data from an android smartphone simultaneously.
Java
130
star
5

pytorch-demos

Python
84
star
6

pytorch-toolbox

This repository contains several tools useful for pytorch users.
Jupyter Notebook
46
star
7

pytorch-CortexNet

Jupyter Notebook
45
star
8

Torch7-profiling

State Of The Art deep neural network models
Lua
37
star
9

crawl-dataset

Python
34
star
10

torch-prednet

Lua
19
star
11

th2caffe

A torch-nn to caffe converter for specific layers.
Protocol Buffer
16
star
12

SyntaxShaper

Powering Agent Chains by Constraining LLM Outputs
Python
9
star
13

references

useful references to our research and interests
7
star
14

clustering-learning

clustering-learning
Lua
6
star
15

indoor-EYE

Object recognition application for indoor environment
Lua
6
star
16

apps-android

C
6
star
17

OpalKelly-Verilog-Templates

Simple templates to use as starting points with an OpalKelly project.
Verilog
4
star
18

apps-iOs

applications of neural nets for iOs
C
4
star
19

tutorials

text and docs and tutorials
4
star
20

LCMS2012_JAN-Verilog

Verilog for LCMS2012_JAN chip using XEM6010-LX150 fpga
Verilog
4
star
21

LCMS-GUI

GUI controller for the LCMS device using wxWidgets
C++
3
star
22

eex

Torch extras from e-Lab
C
3
star
23

Actions

Python
3
star
24

GameMatch

Lua
2
star
25

turtlebot

C++
2
star
26

torch-PredNetNew

Lua
2
star
27

LCMS-PCB

LCMS-PCB
2
star
28

vid2img

Image dataset from videos
Lua
1
star
29

Forestry_Student

Python
1
star
30

OpalKelly-GUI-Template

Application GUI template written in wxWigets C++ used to comunicate with Opal Kelly devices.
C++
1
star
31

e-Lab.github.io

elab blog website
JavaScript
1
star