Code Monkey home page Code Monkey logo

sparseprop's Introduction

SparseProp: Temporal Proposals for Activity Detection.

This project hosts code for the framework introduced in the paper: Fast Temporal Activity Proposals for Efficient Detection of Human Actions in Untrimmed Videos

The paper introduces a new method that produces temporal proposals in untrimmed videos. The method is not only able to retrieve temporal locations of actions with high recall but also it generates proposals quickly.

Introduction Figure

If you find this code useful in your research, please cite:

@InProceedings{sparseprop,
author = {Caba Heilbron, Fabian and Niebles, Juan Carlos and Ghanem, Bernard},
title = {Fast Temporal Activity Proposals for Efficient Detection of Human Actions in Untrimmed Videos},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2016}
}

What to know before starting to use SparseProp?

  • Dependencies: SparseProp is implemented in Python 2.7 including some third party packages: NumPy, Scikit Learn, H5py, Pandas, SPArse Modeling Software, Joblib.

  • Installation: If you installed all the dependencies correctly, simply clone this repository to install SparseProp: git clone https://github.com/cabaf/sparseprop.git

  • Feature Extraction: The feature extraction module is not included in this code. The current version of SparseProp supports only C3D as video representation.

What SparseProp provides?

  • Pre-trained model: Class-Induced model trained using videos from Thumos14 validation subset. Videos are represented using C3D features.

  • Pre-computed action proposals: The resulting temporal action proposals in the Thumos14 test set.

  • Code for retrieving proposals in new videos: Use the script retrieve_proposals.py to retrieve temporal segments in new videos. You will need to extract the C3D features by your own (Please read the sparseprop.feature for guidelines on how to format the C3D features.).

  • Code for training a new model: Use the script run_train.py to train a model using a new dataset (or features). For further information, please read the documentation in the script.

Try our demo!

SparseProp provides a demo that takes as input C3D features from a sample video and a Class-Induced pre-trained model to retrieve temporal segments that are likely to contain human actions. To try our demo, run the following command:

python retrieve_proposals.py data/demo_input.csv data/demo_c3d.hdf5 data/class_induced_thumos14.pkl data/demo_proposals.csv

The program above must generate a CSV (data/demo_proposals.csv) file containing the temporal proposals retrieved with an asociated score for each.

Windows users: Please be aware of this issue

Who is behind it?

Fabian Caba Heilbron Juan Carlos Niebles Bernard Ghanem
Main contributor Co-Advisor Advisor
Fabian Caba Juan Carlos Niebles Bernard Ghanem

Do you want to contribute?

  1. Check the open issues or open a new issue to start a discussion around your new idea or the bug you found
  2. Fork the repository and make your changes!
  3. Send a pull request

sparseprop's People

Contributors

cabaf avatar

Watchers

James Cloos avatar Amit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.