Code Monkey home page Code Monkey logo

accurate-interpretable-vad's Introduction

Attribute-based Representations for Accurate and Interpretable Video Anomaly Detection

Official PyTorch Implementation of "Attribute-based Representations for Accurate and Interpretable Video Anomaly Detection".

PWC

PWC

PWC

interpretable VAD

1. Dependencies

python==3.7
torch==1.12.0+cu102

Download this file (195 MB npy file) and place it in the following path: ./data/shanghaitech/train/pose.npy.

2. Usage

2.1 Data download and Preparation

To download the evaluation datasets, please follow the instructions.

2.2 Data preparation

The training and testing datasets should be preprocessed according to the these instructions.

2.3 Feature Extraction

For extracting velocity and deep representations, run the following command:

python feature_extraction.py [--dataset_name]

Pose representations have already been provided by us.

2.4 Score calibration

To compute calibration parameters for each representation, run the following command:

python score_calibration.py [--dataset_name]

2.4 Evaluation

Finally, you can evaluate by running the following command:

python evaluate.py [--dataset_name] [--sigma]

We usually use --sigma=3 for Ped2 and Avenue, and --sigma=7 for ShanghaiTech.

You can download our set of representations for Ped2, Avenue and ShanghaiTech datasets from here.

3. Results

UCSD Ped2 CUHK Avenue ShanghaiTech
99.1% 93.6% 85.9%

Citation

If you find this useful, please cite our paper:

@article{reiss2022attribute,
  title={Attribute-based Representations for Accurate and Interpretable Video Anomaly Detection},
  author={Reiss, Tal and Hoshen, Yedid},
  journal={arXiv preprint arXiv:2212.00789},
  year={2022}
}

accurate-interpretable-vad's People

Contributors

talreiss avatar koeliya-02 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.