Giter VIP home page Giter VIP logo

cse847project's Introduction

Traffic Anomalies Detection

@author: Luan Nguyen, Pengyu Chu, Daniel Shumaker

This repo is for the project in the class CSE 847 Machine Learning.

Structure:

codes/car_detection/

Final-Report/

Mid-Report/

Proposal/

[TOC]

Prerequisite

The files you maybe need is on the Drive https://drive.google.com/drive/folders/1Eee7fgz57J7I4uVtdskzEfGFLv_vkppp?usp=sharing

install Mask RCNN

git clone https://github.com/matterport/Mask_RCNN.git
cd Mask_RCNN
pip3 install -r requirements.txt
python3 setup.py install

add the lost files

The all required files are stored on the Google Drive

  1. Add videos to aic19-track3-train-data/ or aic19-track3-train-data/

  2. Add our model mask_rcnn_car_0030.h5 to model/; or train that from scratch.

  3. git clone [Our Project]
    cd codes/car_detection/
    

Train the custom model

# please ensure you are under the car_detection directory
python3 Mask_RCNN/car_detection_train.py train --dataset=dataset/ --weights=model/mask_rcnn_car_0030.h5 --logs=model/

# train from a pre-trained model COCO
# python3 Mask_RCNN/car_detection_train.py train --dataset=dataset/ --weights=model/mask_rcnn_coco.h5 --logs=model/
python3 infer_car_in_video.py
python3 sort_track.py
# output results into output_train/ or output_test/ in terms of your setup
# make sure there is at least one sequence file under the output_train/
python3 anomalies_detection.py

Train your own model

# please ensure you are under the car_detection directory
python3 Mask_RCNN/car_detection_train.py train --dataset=dataset/ --weights=model/mask_rcnn_car_0030.h5 --logs=model/

# train from a pre-trained model COCO
# python3 Mask_RCNN/car_detection_train.py train --dataset=dataset/ --weights=model/mask_rcnn_coco.h5 --logs=model/

Detect cars in the video (it has been integrated to tracking part)

python3 infer_car_in_video.py

Track cars in the video

python3 sort_track.py
# output results into output_train/ or output_test/ in terms of your setup

Find anomalies

# make sure there is at least one sequence file under the output_train/
python3 anomalies_detection.py
# the output will be under the output_anomalies folder.

cse847project's People

Contributors

deshumake avatar jiayuzhou avatar pengyuchu avatar

Watchers

 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.