Giter VIP home page Giter VIP logo

anticipating-accidents's Introduction

Anticipating Accidents in Dashcam Videos

By Fu-Hsiang Chan, Yu-Ting Chen, Yu Xiang, Min Sun.

Introduction

Anticipating Accidents in Dashcam Videos is initially described in a ACCV 2016 paper. We propose a Dynamic-Spatial-Attention (DSA) Recurrent Neural Network (RNN) for anticipating accidents in dashcam videos.

Requirements

Tensoflow 1.x
Opencv 2.4.9
Matplotlib
Numpy

Model Flowchart

Alt text

Dataset & Features

  • Dataset : link (Download the file and put it in "datatset/videos" folder.)

  • CNN features : link (Download the file and put it in "dataset/features" folder.)

  • Annotation : link

If you need the ground truth of object bounding box and accident location, you can download it.

The format of annotation:

<image name, track_ID, class , x1, y1, x2, y2, 0/1 (no accident/ has accident)>

Usage

Run Demo

python accident.py --model ./demo_model/demo_model

Training

python accident.py --mode train --gpu gpu_id

Testing

python accident.py --mode test --model model_path --gpu gpu_id

Citing

Please cite this paper in your publications if you use this code for your research:

@inproceedings{chan2016anticipating,
    title={Anticipating accidents in dashcam videos},
    author={Chan, Fu-Hsiang and Chen, Yu-Ting and Xiang, Yu and Sun, Min},
    booktitle={Asian Conference on Computer Vision},
    pages={136--153},
    year={2016},
    organization={Springer}
}

anticipating-accidents's People

Contributors

smallcorgi 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.