• Stars
    star
    133
  • Rank 264,561 (Top 6 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created over 6 years ago
  • Updated about 5 years ago

Reviews

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

Repository Details

Recurrent Neural Networks for Semantic Instance Segmentation

Recurrent Neural Networks for Semantic Instance Segmentation

See the paper in arXiv here.

Installation

  • Clone the repo:
git clone https://github.com/imatge-upc/rsis.git
  • Install requirements pip install -r requirements.txt
  • Install PyTorch 0.2 (choose the whl file according to your setup):
pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl  
pip install torchvision
  • Compile COCO Python API and add it to your PYTHONPATH:
cd src/coco/PythonAPI;
make
# Run from the root directory of this project
export PYTHONPATH=$PYTHONPATH:./src/coco/PythonAPI

Data

Pascal VOC 2012

  • Download Pascal VOC 2012:
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar
tar -xvf VOCtrainval_11-May-2012.tar
# berkeley augmented Pascal VOC
wget http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/semantic_contours/benchmark.tgz # 1.3 GB
tar zxvf benchmark.tgz
  • Create a merged dataset out of the two sets of images and annotations:
python src/dataloader/pascalplus_gen.py --voc_dir /path/to/pascal --contours_dir /path/to/additional/dataset --vocplus_dir /path/to/merged
  • Precompute instance and semantic segmentation masks & ground truth files in COCO format:
python src/dataloader/pascal_precompute.py --split train --pascal_dir /path/to/merged

You must run this three times for the different splits (train, val and test).

Point args.pascal_dir to /path/to/merged.

CVPPP

Download the training CVPPP dataset from their website. In our case we just worked with the A1 dataset. Extract the A1 package and point args.leaves_dir to this folder. To obtain the test set for evaluation you will have to contact the organizers.

Cityscapes

Download the Cityscapes dataset from their website. Extract the images and the labels into the same directory and point args.cityscapes_dir to it.

Training

  • Train the model with python train.py -model_name model_name. Checkpoints and logs will be saved under ../models/model_name.
  • Other arguments can be passed as well. For convenience, scripts to train with typical parameters are provided under scripts/.
  • Visdom can be enabled to monitor training losses and outputs:
    • First run the visdom server withpython -m visdom.server.
    • Run training with the --visdom flag. Navigate to localhost:8097 to visualize training curves.
  • Plot loss curves at any time with python plot_curves.py -model_name model_name.

Evaluation

We provide bash scripts to display results and evaluate models for the three datasets. You can find them under the scripts folder.

In the case of cityscapes, the evaluation bash script will generate the results in the appropiate format to use the official evaluation code.

For CVPPP, the evaluation bash script will generate the results in the appropiate format to use the evaluation scripts that are provided with the dataset.

Pretrained models

Download weights for models trained with:

Extract and place the obtained folder under models directory. You can then run evaluation scripts with the downloaded model by setting args.model_name to the name of the folder.

Contact

For questions and suggestions use the issues section or send an e-mail to [email protected]

Additional notes to GPI users

Helpful commands to train on the GPI cluster and get visualizations in your browser:

  • Start server: with srun --tunnel $UID:$UID python -m visdom.server -port $UID.
  • Check the node where the server launched and (eg. c3).
  • Run training with:
srun --gres=gpu:1,gmem:12G --mem=10G python train.py --visdom -port $UID -server http://c3

Notice that the port and the server must match the ones used in the previous run.

  • echo $UID to know which port you are using.
  • ssh tunnel (run this in local machine): ssh -L 8889:localhost:YOUR_UID -p2222 [email protected].
  • Navigate to localhost:8889 in your browser locally.

More Repositories

1

detection-2016-nipsws

Hierarchical Object Detection with Deep Reinforcement Learning
Python
423
star
2

salgan

SalGAN: Visual Saliency Prediction with Generative Adversarial Networks
Python
368
star
3

rvos

RVOS: End-to-End Recurrent Network for Video Object Segmentation (CVPR 2019)
Python
278
star
4

retrieval-2017-cam

Class-Weighted Convolutional Features for Image Retrieval (BMVC 2017)
Python
224
star
5

retrieval-2016-deepvision

Faster R-CNN features for Instance Search
Python
216
star
6

activitynet-2016-cvprw

Tools to participate in the ActivityNet Challenge 2016 (NIPSW 2016)
Jupyter Notebook
195
star
7

saliency-2016-cvpr

Shallow and Deep Convolutional Networks for Saliency Prediction
Python
185
star
8

3D-GAN-superresolution

3D super-resolution using Generative Adversarial Networks
Python
155
star
9

skiprnn-2017-telecombcn

Skip RNN: Learning to Skip State Updates in Recurrent Neural Networks (ICLR 2018)
Python
124
star
10

retrieval-2016-icmr

Bags of Local Convolutional Features for Scalable Instance Search (ICMR 2016)
Python
111
star
11

sentiment-2017-imavis

From Pixels to Sentiment: Fine-tuning CNNs for Visual Sentiment Prediction
Python
96
star
12

liverseg-2017-nipsws

Detection-aided Liver Lesion Segmentation
Python
96
star
13

readai

READAI - Artificial Intelligence Reading Group
79
star
14

salbow

Saliency Weighted Convolutional Features for Instance Search
Python
55
star
15

deep-stereo

Use deep learning to estimate virtual views
Python
51
star
16

mri-braintumor-segmentation

MRI Brain Tumor Segmentation - BraTS Challenge 2020
Python
46
star
17

vqa-2016-cvprw

Visual question answering for CVPR16 VQA Challenge.
Python
41
star
18

pathgan

PathGan: Visual Scan-path Prediction with Generative Adversarial Networks
Python
41
star
19

danifojo-2018-repeatrnn

Comparing Fixed and Adaptive Computation Time for Recurrent Neural Networks
Python
34
star
20

slt_how2sign_wicv2023

Sign Language Translation for Instructional Videos - CVPR WiCV 2023
Python
32
star
21

Action-Tubelet-Detection-in-AVA

Python
28
star
22

telecombcn-2016-dlcv

Summer Seminar ETSETB TelecomBCN, 4-8 July 2016
HTML
27
star
23

unsupervised-2017-cvprw

Disentangling Motion, Foreground and Background Features in Videos
Python
25
star
24

multimodal-registration

Software for performing registration of 2D images and 3D point clouds
C++
21
star
25

sentiment-2015-asm

Diving Deep into Sentiment: Understanding Fine-tuned CNNs for Visual Sentiment Prediction
Python
21
star
26

SurvLIMEpy

Local interpretability for survival models
Python
17
star
27

retrieval-2016-remote

Multi-Label Remote Sensing Image Retrieval By Using Deep Features
14
star
28

segmentation_DLMI

Python
12
star
29

saliency-2018-videosalgan

Temporal Regularization of Saliency Maps in Egocentric Videos
Python
10
star
30

sign-topic

Topic Detection in Continuous Sign Language Videos. Presented as an extended abstract to the "AVA: Accessibility, Vision, and Autonomy Meet" CVPR 2022 Workshop.
Python
7
star
31

rvos-mots

Curriculum Learning for Recurrent Video Object Segmentation
Python
6
star
32

egocentric-2016-saliency

Research on the prediction of visual saliency in egocentric vision.
Python
6
star
33

affective-2017-musa2

More cat than cute? Interpretable Prediction of Adjective-Noun Pairs
Python
5
star
34

ragc

RAGC: Residual Attention Graph Convolutional Network for Geometric 3D Scene Classification (ICCVW 2019)
Python
5
star
35

egocentric-2017-lta

Semantic Summarization of Egocentric Photo Stream Events
OpenEdge ABL
5
star
36

videolabeler

Python
4
star
37

skinningnet

CSS
3
star
38

speech2signs-2017-nmt

Neural Machine Translation based on the Pytorch “Attention is all you need” Implementation
Python
3
star
39

PiCoEDL

Discovery and Learning of Minecraft Navigation Goals from Pixels and Coordinates
HTML
3
star
40

AI4Agriculture-grape-detection

Jupyter Notebook
3
star
41

saliency-2018-timeweight

The Importance of Time in Visual Attention Models
Jupyter Notebook
3
star
42

munegc

Python
3
star
43

icv-3d-vision

Several tools and demonstrations for the 3D vision part of the Introduction to Computer Vision Course
MATLAB
3
star
44

trecvid-2015

Tools for running the TRECVID 2015 Instance Search task at the Technical University of Catalonia.
Python
3
star
45

VNeAT

VNeAT (Voxel-wise Neuroimaging Analysis Toolbox) is a command-line toolbox written in Python that provides the tools to analyze the linear and nonlinear dynamics of a particular tissue and study the statistical significance of such dynamics at the voxel level.
Python
3
star
46

structnet_aging

Jupyter Notebook
2
star
47

memory-2016-fpv

Tools for lifelogging image processing.
JavaScript
2
star
48

signalign

Tools for temporal and spatial aligning between cameras in our sign language video datasets.
Jupyter Notebook
2
star
49

SurvLIME-experiments

Jupyter Notebook
2
star
50

synthref

SynthRef: Generation of Synthetic Referring Expressions for Object Segmentation
2
star
51

retrieval-2016-lostobject

Time-sensitive Egocentric Image Retrieval for Fidings Objects in Lifelogs.
2
star
52

progressive_nns

Python
1
star
53

saliency-2016-lsun

Visual saliency predictor used to participate in the LSUN Challenge 2016.
Jupyter Notebook
1
star
54

netbenchmark

R
1
star
55

Maxtree-Processing-Toolbox

C
1
star
56

gesture-sound

This is the TFG of Efrem Blazquez: L’Art del so en Mans de la Imatge. Els Sensors 3D i les seves Possibilitats
C++
1
star