Giter Site home page Giter Site logo

justhungryman / glimpse_clouds Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fabienbaradel/glimpse_clouds

0.0 1.0 0.0 3.57 MB

Pytorch implementation of the paper "Glimpse Clouds: Human Activity Recognition from Unstructured Feature Points", F. Baradel, C. Wolf, J. Mille , G.W. Taylor, CVPR 2018

Python 99.07% Shell 0.93%

glimpse_clouds's Introduction

Glimpse Clouds

This repository will contain the code of the paper "Glimpse Clouds: Human Activity Recognition from Unstructured Feature Points" by F. Baradel, C. Wolf, J. Mille and G.W. Taylor presented at CVPR 2018.

Check out the project page for more information.

Data preprocessing

You should download the NTU-DATASET and install the lintel module for efficiently decoding videos on the fly. Check the dataprocessing README for more information about how to rescale the videos.

Dataloader

Run the following python command to make sure you are able to iterate over the videos.

python ./src/data/ntu/test.py

Training

The training is split into two steps:

  1. We train the 3D-CNN using global average pooling
  2. We freeze the backbone and train the Glimpse Clouds This can be done by running the following command:
./script/train_and_evaluate.sh <DIR-CKPT> <LOCATION-NTU> 

where <DIR-CKPT> is where you want to store your files (log, checkpoints) and <LOCATION-NTU> is the location of the NTU dataset on your cluster.

Below is teh generic python command for running the code

python src/main.py \
--dir <DIR-CKPT> \
--root <DATA> \
-b <BATCH-SIZE> \
-t <NB-TIMESTEPS> \
-lr <LEARNING-RATE> \
--epochs <EPOCHS> \
-j <NB-WORKERS> \

You need to adding either --global-model or --glimpse-clouds for training respectively the backbone-CNN or the glimpse clouds. Pose predictions can be added by adding the option --pose-predictions. Evaluation can be done by adding the option -e.

Requirements

  • python 3 and higher
  • pytorch 0.4
  • lintel

Citation

If our paper and/or this code is useful for your research, please consider citing us:

@InProceedings{Baradel_2018_CVPR,
author = {Baradel, Fabien and Wolf, Christian and Mille, Julien and Taylor, Graham W.},
title = {Glimpse Clouds: Human Activity Recognition From Unstructured Feature Points},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2018}
}

Licence

MIT License

glimpse_clouds's People

Contributors

fabienbaradel avatar justhungryman avatar

Watchers

 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.