Coder Social home page Coder Social logo

su797 / convlstm_anomaly_detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zachluo/convlstm_anomaly_detection

0.0 0.0 0.0 2.77 MB

License: Other

CMake 2.65% Makefile 0.69% C++ 79.97% Cuda 5.80% MATLAB 0.85% Python 9.59% Shell 0.39% Dockerfile 0.07%

convlstm_anomaly_detection's Introduction

REMEMBERING HISTORY WITH CONVOLUTIONAL LSTM FOR ANOMALY DETECTION

By Weixin Luo, Wen Liu, Shenghua Gao

Introduction

All codes are based on Caffe. The main modifications are following

  • Adding a convolutional lstm layer
  • Changing the original Blob datastructure from 4-dimension tensor $(N \times C \times H \times W)$ to 5-dimension tensor $(T \times N \times C \times H \times W)$ tensor. Be careful that do not use cuDNN engien in all activation function layers in this motidified Caffe version, such as ReLU, sigmoid, tanh and so on, because cuDNN do not support 5-dimension in these activation function (but Conv layer is ok). If do that, it will be wrong.
  • Adding a video data layers

Requirements for compiling

Since all the code are implemented on Caffe, so that in order to compile successfully, it must satisfy all requirements of Caffe (see the installization instruction). Whatmore, it also need to compile with Opencv 3.+, because the video data layer uses opencv libraries.

Datasets

  • CUHK Avenue
  • UCSD Pedestrians 1 & 2
  • Subway Enter & Exit please to contact the orginal author to get the download links.

Training

As CUHK Avenue dataset for example, details are showd in the zstorm_conv_lstm_deconv/solver.prototxt and zstorm_conv_lstm_deconv/train.prototxt.

Testing or evaluation

Details are in the python shell, zstorm_conv_lstm_deconv/test.py.

License

All code are following the license of Caffe, and Caffe is released under the BSD 2-Clause license.

Citation

If you find this useful, please cite our work as follows:

@INPROCEEDINGS{luo2017remember, 
	author={W. Luo, W. Liu and S. Gao}, 
	booktitle={2017 IEEE International Conference on Multimedia and Expo (ICME)}, 
	title={Remembering history with convolutional LSTM for anomaly detection}, 
	year={2017}
}

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.