All Projects → ChenjieXu → selective_search

ChenjieXu / selective_search

Licence: MIT license
Python implementation of selective search

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to selective search

Plant-Disease-Identification-using-CNN
Plant Disease Identification Using Convulutional Neural Network
Stars: ✭ 89 (+122.5%)
Mutual labels:  paper-implementations
mrnet
Building an ACL tear detector to spot knee injuries from MRIs with PyTorch (MRNet)
Stars: ✭ 98 (+145%)
Mutual labels:  paper-implementations
Pytorch Vae
A Collection of Variational Autoencoders (VAE) in PyTorch.
Stars: ✭ 2,704 (+6660%)
Mutual labels:  paper-implementations
Alae
[CVPR2020] Adversarial Latent Autoencoders
Stars: ✭ 3,178 (+7845%)
Mutual labels:  paper-implementations
SAnD
[Implementation example] Attend and Diagnose: Clinical Time Series Analysis Using Attention Models
Stars: ✭ 39 (-2.5%)
Mutual labels:  paper-implementations
Awesome CV Research
No description or website provided.
Stars: ✭ 18 (-55%)
Mutual labels:  paper-implementations
MogrifierLSTM
A quick walk-through of the innards of LSTMs and a naive implementation of the Mogrifier LSTM paper in PyTorch
Stars: ✭ 58 (+45%)
Mutual labels:  paper-implementations
NALU-Keras
A keras implementation of [Neural Arithmetic Logic Units](https://arxiv.org/pdf/1808.00508.pdf) by Andrew et. al.
Stars: ✭ 14 (-65%)
Mutual labels:  paper-implementations
pghumor
Is This a Joke? Humor Detection in Spanish Tweets
Stars: ✭ 48 (+20%)
Mutual labels:  paper-implementations
material-appearance-similarity
Code for the paper "A Similarity Measure for Material Appearance" presented in SIGGRAPH 2019 and published in ACM Transactions on Graphics (TOG).
Stars: ✭ 22 (-45%)
Mutual labels:  paper-implementations
saliency
Contextual Encoder-Decoder Network for Visual Saliency Prediction [Neural Networks 2020]
Stars: ✭ 126 (+215%)
Mutual labels:  paper-implementations
speaker-recognition-papers
Share some recent speaker recognition papers and their implementations.
Stars: ✭ 92 (+130%)
Mutual labels:  paper-implementations
logically
explorations in core.logic
Stars: ✭ 108 (+170%)
Mutual labels:  paper-implementations
CycleGAN
A simple code of CycleGAN which is easy to read is implemented by TensorFlow
Stars: ✭ 21 (-47.5%)
Mutual labels:  paper-implementations
dgcnn
Clean & Documented TF2 implementation of "An end-to-end deep learning architecture for graph classification" (M. Zhang et al., 2018).
Stars: ✭ 21 (-47.5%)
Mutual labels:  paper-implementations

Selective Search

English | 简体中文

GitHub release PyPI Conda

Travis Build Status Codacy grade

This is a complete implementation of selective search in Python. I thoroughly read the related papers [1][2][3] and the author’s MATLAB implementation. Compared with other implementations, my method is authentically shows the idea of the original paper. Moreover, this method has clear logic and rich annotations, which is very suitable for teaching purposes, allowing people who have just entered the CV field to understand the basic principles of selective search and exercise code reading ability.

Installation

Installing from PyPI is recommended :

$ pip install selective-search

It is also possible to install the latest version from Github source:

$ git clone https://github.com/ChenjieXu/selective_search.git
$ cd selective_search
$ python setup.py install

Install from Anaconda:

conda install -c chenjiexu selective_search

Quick Start

import skimage.io
from selective_search import selective_search

# Load image as NumPy array from image files
image = skimage.io.imread('path/to/image')

# Run selective search using single mode
boxes = selective_search(image, mode='single', random_sort=False)

For detailed examples, refer this part of the repository.

Parameters

Mode

Three modes correspond to various combinations of diversification strategies. The appoach to combine different diversification strategies, say, color spaces, similarity measures, starting regions is listed in the following table[1].

Mode Color Spaces Similarity Measures Starting Regions (k) Number of Combinations
single HSV CTSF 100 1
fast HSV, Lab CTSF, TSF 50, 100 8
quality HSV, Lab, rgI, H, I CTSF, TSF, F, S 50, 100, 150, 300 80
  • Color Space [Source Code]
    Initial oversegmentation algorithm and our subsequent grouping algorithm are performed in this colour space.

  • Similarity Measure [Source Code]
    'CTSF' means the similarity measure is aggregate of color similarity, texture similarity, size similarity, and fill similarity.

  • Starting Region [Source Code]
    A parameter of initial grouping algorithm[2], which yields high quality starting locations efficiently. A larger k causes a preference for larger components of initial strating regions.

Random Sort

If random_sort set to True, function will carry out pseudo random sorting. It only alters sequences of bounding boxes, instead of locations, which prevents heavily emphasis on large regions as combing proposals from up to 80 different strategies[1]. This only has a significant impact when selecting a subset of region proposals with high rankings, as in RCNN.

References

[1] J. R. R. Uijlings et al., Selective Search for Object Recognition, IJCV, 2013
[2] Felzenszwalb, P. F. et al., Efficient Graph-based Image Segmentation, IJCV, 2004
[3] Segmentation as Selective Search for Object Recognition

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].