GithubHelp home page GithubHelp logo

oaad's Introduction

Object and Action Anomaly Detection

Intorduction

This is a PyToch implementation of Object and Action Anomaly Detection Using Pretrain Models.

Framework:

Contributions

  • we use object detection and action detection pretrain models(on coco and ava) to extrat features, which is good enough to do anomaly detection.
  • in training steps, we use GMM to cluster softlabel features, in inference steps, we calculate feature's probability as it's anomaly score.
  • our method achieved good balance between accuracy and speed, compared with SOTA method.
Method Type Methods Ped2 Avenue SHTech Speed
Image Reconstruction Hyunjong et al. [1] (CVPR2020) 90.2 82.8 69.8 >67fps
*Ours(object label only) 93.1 / 70.9 70fps
Frame Prediction Hyunjong et al. [1] (CVPR2020) 97.0 88.5 70.5 67fps
Pretrain Model Radu et al. [2] (CVPR 2019) 97.8 90.4 84.9 11fps
*Ours(object and action label) 29fps

Anomaly Detection Demo(SHTech dataset)

Dataset and Model Weights Download

Installation and Usage

  1. prepare environment:

    conda create -n oaad python=3.7.11
    conda activate oaad
    pip install -r requirements.txt
    git clone https://github.com/wufan-tb/oaad
    
  2. evaluate our method with only object detection pretrain model:

    python yolo_AD.py --dataset {your dataset path}
    
  3. evaluate our method with object and action detection pretrain models:

    python yolo_slowfast_AD.py --dataset {your dataset path}
    

References

[1] Hyunjong Park, Jongyoun Noh, Bumsub Ham. Learning Memory-guided Normality for Anomaly Detection. In Proceedings of CVPR, pages 14372–14381, 2020.

[2] Radu Tudor Ionescu, Fahad Shahbaz Khan, Mariana-Iuliana Georgescu, Ling Shao. Object-centric Auto-encoders and Dummy Anomalies for Abnormal Event Detection in Video. In Proceedings of CVPR, pages 7842–7851, 2019.

Citation

If you find our work useful, please cite as follow:

{   oaad,
    author = {Wu Fan},
    title = { Object and Action Anomaly Detection },
    year = {2021},
    url = {\url{https://github.com/wufan-tb/oaad}}
}

oaad's People

Contributors

wufan-tb avatar

Stargazers

tangpengfei_007 avatar  avatar 张韬 avatar  avatar GaoBo avatar

Watchers

 avatar

Forkers

theaoig

oaad's Issues

如何运行起来呢?

你好,请问这段代码有详细的说明如何运行起来吗?主要是数据集设置目录该是怎么样的呢

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.