Git Product home page Git Product logo

ai-city-anomaly-detection's Introduction

πŸ†News: our team got the winner at the AI CITY 2019 Challenge Track3

Traffic Anomaly Detection via Perspective Map based on Spatial-temporal Information Matrix

This repository contains our source code of Track-3 in the NVIDIA AI City Challenge at CVPR 2019 Workshop.

Traffic Anomaly Detection via Perspective Map based on Spatial-temporal Information Matrix

Introduction

NVIDIA AICity Challenge 2019 Track3

The challenge Track 3 of NVIDIA AI CITY 2019 required participating teams to submit the anomalies detected based on video feeds available from multiple cameras at intersections and along highways.

Detailed information of NVIDIA AICity Challenge 2019 can be found here. overview Overview of the architecture of our anomaly detection framework, which consists of background modeling module, perspective detection module, and spatial-temporal matrix discriminating module.

Requirements

  • Linux (tested on CentOS 7.2)
  • Python 3.6
  • PyTorch 0.4.1
  • Opencv
  • sklearn
  • mmcv
  • mmdetection

Installation

  1. Install PyTorch 0.4.1 and torchvision following the official instructions.
  2. Install mmdetection@(pytorch0.4.1) and mmcv following the official instructions.
  3. Download the model weights and precaculated detection results from here.

Test video(s)

Since it takes a long time to run this system, we split the task into several steps and provide precalculated results.

  1. Run python ./src/bg_modeling/capture_and_average.py. Then, you will get all original frames and superimposed frames saved in ./data/AIC_Track3/ori_images and ./data/AIC_Track3/processed_images separately.
  2. Put the downloaded detection and reid models into ./models, and put precaculated detection results into ./detection_results.
  3. To test a video and show the result. python ./detect_anomaly.py <video id>
  4. To test all videos and save the results. sh detect_all_videos.sh >tarck3.txt

Train detector

We use Res50-FPN with DCN (Deformable-ConvNets) as our detector, which is trained with Datasets (UA_DETRAC & VisDrone)

Citation

@InProceedings{Bai_2019_CVPR_Workshops,
author = {Bai, Shuai and He, Zhiqun and Lei, Yu and Wu, Wei and Zhu, Chengkai and Sun, Ming and Yan, Junjie},
title = {Traffic Anomaly Detection via Perspective Map based on Spatial-temporal Information Matrix},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops},
month = {June},
year = {2019}
}

ai-city-anomaly-detection's People

Contributors

shuaibai623 avatar

Watchers

 avatar

Forkers

xuldor

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.