Giter Site home page Giter Site logo

gmm_dae's Introduction

GMM-DAE

A Pytorch Re-Implement Trial (Not Official) of paper: Video Anomaly Detection by Estimating Likelihood of Representations

Unfortunately, I haven't got the accuracy as good as the paper mentioned.(maybe I have missed some details, any help will be appreciated)

Here are something you may think it's valuable.

  • a better object-detector result can get better AUROC, (for example, large image size, regard smaller object box, use different conf-thres(train > test))
  • I get same result as the author in Ped2, yet big margin in Avenue and ShanghaiTech (nearly less ten point)
  • Score Calculation and Score Smoothing can get a great improvement(you can find more details in this repo )

Requirements

pytorch >=1.5.0 ( I use 1.5.0 )

scikit-learn

Framework Overview

The framework include Three Parts:

  1. dataset prepare, contain object detect(which I use yolov5) and computer dynamic image;
  2. train denoised auto-encoder;
  3. get feature cluster center(train GMM);
  4. caculate anomaly score(evaluate);

Datasets

You can get the download link from here

Training:

  1. prepare data
python prepare_dataset.py
  1. train DAE
python train_DAE.py
  1. train GMM
python train_GMM.py

details about parameters seen in scripts

Testing:

  1. python evaluate.py 

    more visualization tools can find in notebook: test.ipynb

To Do List:

  • try knowledge distillation
  • try cluster loss

If you find this useful, please cite works as follows:

    {   GMM_DAE,
        author = {Wu Fan},
        title = { A Implementation of {GMM-DAE} Using {Pytorch}},
        year = {2020},
        howpublished = {\url{https://github.com/wufan-tb/gmm_dae}}
    }

gmm_dae's People

Contributors

wufan-tb avatar

Stargazers

Mahsa Nobakht avatar  avatar neb avatar Xiaohu Zhu avatar  avatar  avatar

Watchers

 avatar

Forkers

mahsa-nobakht

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.