All Projects → kmaninis → Osvos Caffe

kmaninis / Osvos Caffe

Licence: gpl-3.0
One-Shot Video Object Segmentation

Projects that are alternatives of or similar to Osvos Caffe

Coursera
✅ Solutions to MachineLearning, DeepLearning, NeuralNetwork
Stars: ✭ 172 (-0.58%)
Mutual labels:  jupyter-notebook
Cikm 2019 Analyticup
1st Solution for 2019-CIKM-Analyticup, Efficient and Novel Item Retrieval for Large-scale Online Shopping Recommendation
Stars: ✭ 173 (+0%)
Mutual labels:  jupyter-notebook
Stata kernel
A Jupyter kernel for Stata. Works with Windows, macOS, and Linux.
Stars: ✭ 172 (-0.58%)
Mutual labels:  jupyter-notebook
Tensorflow 101
中文的 tensorflow tutorial with jupyter notebooks
Stars: ✭ 172 (-0.58%)
Mutual labels:  jupyter-notebook
Notebooks
Notebooks on how to use Distributed Evolutionary Algorithm in Python (DEAP)
Stars: ✭ 172 (-0.58%)
Mutual labels:  jupyter-notebook
Weibospider sentimentanalysis
借助Python抓取微博数据,并对抓取的数据进行情绪分析
Stars: ✭ 173 (+0%)
Mutual labels:  jupyter-notebook
Thai2fit
ULMFit Language Modeling, Text Feature Extraction and Text Classification in Thai Language. Created as part of pyThaiNLP
Stars: ✭ 172 (-0.58%)
Mutual labels:  jupyter-notebook
Shared
Code and shared files
Stars: ✭ 171 (-1.16%)
Mutual labels:  jupyter-notebook
Iminuit
Jupyter-friendly Python interface for C++ MINUIT2
Stars: ✭ 172 (-0.58%)
Mutual labels:  jupyter-notebook
Image generator
DCGAN image generator 🖼️.
Stars: ✭ 173 (+0%)
Mutual labels:  jupyter-notebook
Notes
CME211 Notes | Outline ->
Stars: ✭ 172 (-0.58%)
Mutual labels:  jupyter-notebook
Tutorials
This repository contains materials for demos, tutorials, and talks by Dato Inc.
Stars: ✭ 172 (-0.58%)
Mutual labels:  jupyter-notebook
Malware Misc Re
Miscellaneous Malware RE
Stars: ✭ 173 (+0%)
Mutual labels:  jupyter-notebook
Marketing Data Science
Analytics and data science business case studies to identify opportunities and inform decisions about products and features. Topics include Markov chains, A/B testing, customer segmentation, and machine learning models (logistic regression, support vector machines, and quadratic discriminant analysis).
Stars: ✭ 171 (-1.16%)
Mutual labels:  jupyter-notebook
Personal data science projects
Stars: ✭ 173 (+0%)
Mutual labels:  jupyter-notebook
L2hmc
TensorFlow implementation for training MCMC samplers from the paper: Generalizing Hamiltonian Monte Carlo with Neural Network
Stars: ✭ 172 (-0.58%)
Mutual labels:  jupyter-notebook
Manifold Flow
Manifold-learning flows (ℳ-flows)
Stars: ✭ 173 (+0%)
Mutual labels:  jupyter-notebook
Dfp
Reinforcement Learning with Goals
Stars: ✭ 173 (+0%)
Mutual labels:  jupyter-notebook
Deep Math Machine Learning.ai
A blog which talks about machine learning, deep learning algorithms and the Math. and Machine learning algorithms written from scratch.
Stars: ✭ 173 (+0%)
Mutual labels:  jupyter-notebook
18330
18.330 Introduction to Numerical Analysis
Stars: ✭ 171 (-1.16%)
Mutual labels:  jupyter-notebook

One-Shot Video Object Segmentation (OSVOS)

Visit our project page for accessing the paper, and the pre-computed results.

OSVOS

This is the implementation of our work One-Shot Video Object Segmentation (OSVOS), for semi-supervised video object segmentation. OSVOS is based on a fully convolutional neural network architecture that is able to successively transfer generic semantic information, learned on ImageNet, to the task of foreground segmentation, and finally to learning the appearance of a single annotated object of the test sequence (hence one-shot). Experiments on DAVIS 2016 show that OSVOS is faster than currently available techniques and improves the state of the art by a significant margin (79.8% vs 68.0%).

While the results of the paper were obtained by this code, we also provide a TensorFlow implementation of OSVOS: OSVOS-TensorFlow.

NEW: PyTorch implementation also available: OSVOS-PyTorch!

Installation:

  1. Clone the OSVOS-caffe repository

    git clone https://github.com/kmaninis/OSVOS-caffe.git
    

    Skip the following line if you are using ubuntu 14.04! Compatibility with Ubuntu 16.04: If (and only if) you wish to run the code with Ubuntu 16.04, please run ./ubuntu_16.sh inside caffe-osvos.

  2. Install the Caffe version under caffe-osvos/ along with standard dependencies, pycaffe and matcaffe. Caffe would need to be built with support for Python layers, in case you would like to use the Python API (TODO). cuDNN is not necessary.

    # In your Makefile.config, make sure to have this line uncommented
    WITH_PYTHON_LAYER := 1
    
  3. Download the parent model from here (55 MB) and put it under models/.

  4. Optionally download the contour model for contour snapping from here (55 MB) and put it under models/.

  5. If you want to use the contour snapping step (a.k.a you downloaded the model of step 4.), run build.m from within MATLAB.

  6. All the steps to re-train OSVOS are provided in this repository. In case you would like to test with the pre-trained models, you can download them from here (1GB) and put it under models/.

Demo online training and testing

  1. Edit in file set_params.m the parameters of the code (eg. useGPU, gpu_id, etc.).

  2. Run demo.m.

  3. You can test all sequences of DAVIS 2016 validation set, by running test_all.m, once the pre-trained models are available under models/.

It is possible to work with all sequences of DAVIS 2016 just by creating a soft link (ln -s /path/to/DAVIS/) in the root folder of the project.

Training the parent network (optional)

  1. All necessary files are under src/parent. So, cd src/parent.

  2. Download the pre-trained vgg model by running ./download_pretrained_vgg.sh

  3. Augment the data. In the paper we used flipping and scaling into 0.5, 0.8 and 1.0 of the original scale. Your image and ground truth pairs are specified in solvers/train_pair.txt.

  4. Under solvers edit the data_root_dir of train_val*.prototxt.

  5. Finally, train the parent model with python solve_cluster.py. You need pycaffe for this step, so don't forget to make pycaffe when installing Caffe.

Enjoy! :)

Citation

If you use this code, please consider citing the following paper:

@Inproceedings{Cae+17,
  Title          = {One-Shot Video Object Segmentation},
  Author         = {S. Caelles and K.K. Maninis and J. Pont-Tuset and L. Leal-Taix\'e and D. Cremers and L. {Van Gool}},
  Booktitle      = {Computer Vision and Pattern Recognition (CVPR)},
  Year           = {2017}
}

If you encounter any problems with the code, want to report bugs, etc. please contact me at kmaninis[at]vision[dot]ee[dot]ethz[dot]ch.

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].