Coder Social home page Coder Social logo

carcrashdataset's Introduction

๐Ÿš˜ CarCrashDataset

This repo contains our car crash dataset (CCD) for traffic accident anticipation.

Contents

  1. Overview
  2. Download
  3. Description
  4. Citation

๐ŸŒ Overview

CCD Annotations

Car Crash Dataset (CCD) is collected for traffic accident analysis. It contains real traffic accident videos captured by dashcam mounted on driving vehicles, which is critical to developing safety-guaranteed self-driving systems. CCD is distinguished from existing datasets for diversified accident annotations, including environmental attributes (day/night, snowy/rainy/good weather conditions), whether ego-vehicles involved, accident participants, and accident reason descriptions. An overview of our accident annotations is dipicted in the figure above.

๐Ÿ—„๏ธ Download

Download CCD from Google Drive.

๐Ÿ—‚๏ธ Description

File structure of the dataset

Please make sure your downloaded files are structured as following:

CarCrash
โ”œโ”€โ”€ codes                    # useful codes for analyzing the dataset
โ”œโ”€โ”€ vgg16_features
โ”‚   โ”œโ”€โ”€ positive             # feature files of possitive (accident) videos
โ”‚   โ”‚   โ”œโ”€โ”€ 000001.npz
โ”‚   โ”‚   โ”œโ”€โ”€ ...
โ”‚   โ”‚   โ””โ”€โ”€ 001500.npz
โ”‚   โ”œโ”€โ”€ negative             # feature files of negative (normal) videos
โ”‚   โ”‚   โ”œโ”€โ”€ 000001.npz
โ”‚   โ”‚   โ”œโ”€โ”€ ...
โ”‚   โ”‚   โ””โ”€โ”€ 003000.npz
โ”‚   โ”œโ”€โ”€ train.txt            # list file of training split 
โ”‚   โ””โ”€โ”€ test.txt             # list file of testing split 
โ”œโ”€โ”€ videos
โ”‚   โ”œโ”€โ”€ Normal               # normal driving videos
โ”‚   โ”‚   โ”œโ”€โ”€ 000001.mp4
โ”‚   โ”‚   โ”œโ”€โ”€ ...
โ”‚   โ”‚   โ””โ”€โ”€ 003000.mp4
โ”‚   โ”œโ”€โ”€ Crash-1500           # crash accident videos
โ”‚   โ”‚   โ”œโ”€โ”€ 000001.mp4
โ”‚   โ”‚   โ”œโ”€โ”€ ...
โ”‚   โ”‚   โ””โ”€โ”€ 001500.mp4
โ”‚   โ””โ”€โ”€ Crash-1500.txt       # annotation file for crash accident
โ””โ”€โ”€ README.md

Videos and Features

Videos: We collected traffic accident videos from YouTube channels and split them to get 1,500 trimmed videos. Each video contains 50 frames with 10 frames per second. The 3,000 normal videos are randomly sampled from BDD100K dataset.

Features: Feature files in folders vgg16_features/ are extracted VGG-16 features of all frames and all detected bounding boxes. All of bounding boxes are saved in these files. We use the public detection codebase MMDetection to train Cascade R-CNN with ResNeXt-101 backbone and FPN neck as our object detector on KITTI 2D detection dataset. We use Cascade R-CNN to obtain top-19 bounding boxes and then they are used for feature extraction with pre-trained ImageNet VGG-16 model. For each feature file (i.e., 000001.npz), the following data are provided:

  • data: Extracted 4096-dim features with shape (50, 20, 4096). It contains frame-level feature with shape (50, 1, 4096) and 19 box-level features with shape (50, 19, 4096).
  • det: Detected bounding boxes with shape (50, 19, 6), where the last dim denotes (x1, y1, x2, y2, prob, cls).
  • labels: One-hot video labels to indicate whether the video contains an accident, i.e., [0, 1] denotes positive (accident) and [1, 0] denotes negative (normal).
  • ID: The video name for current feature file.

Annotation Format

The annotations of 1,500 accident videos are saved in the file CarCrash/videos/Crash-1500.txt. For each line, the followings are provided:

  • vidname: Video name of each accident video, i.e., 000001
  • binlabels: Binary labels of all 50 frames for each video. Label 1 indicates accident frame.
  • startframe: The zero-padded starting frame of each video in original untrimmed YouTube video.
  • youtubeID: The numeric ID of original YouTube video identifier.
  • timing: Timing conditions, i.e., Day and Night.
  • weather: Weather conditions, i.e., Normal, Snowy, and Rainy.
  • egoinvolve: Boolean identifier to indicate wheather the ego-vehicle is involved in the accident of this video.

Note: Current version of CCD only provides the temporal annotations and environmental attributes listed above. For more detailed annotations such as traffic accident reasons and tracklets, we will release them soon.

๐Ÿ“‘ Citation

Please cite our paper if you find our dataset useful.

@InProceedings{BaoMM2020,
    author = {Bao, Wentao and Yu, Qi and Kong, Yu},
    title  = {Uncertainty-based Traffic Accident Anticipation with Spatio-Temporal Relational Learning},
    booktitle = {ACM Multimedia Conference},
    month  = {May},
    year   = {2020}
}

We thank Haiting Hao a lot for data collection. If you have any questions about the dataset, please feel free to contact Wentao Bao.

carcrashdataset's People

Contributors

cogito2012 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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