Giter Club home page Giter Club logo

amphibiandetector's Introduction

AmphibianDetector

logo

This repository contains the official implementation of the article: "AmphibianDetector: adaptive computation for moving objects detection"

The proposed approach allows effectively detect moving objects of the target class in a video. It increases mean average precision by filtering out false-positive detections of static objects and reduces the average frame processing time due to adaptive computation - the detector partially process a frame if it does not contain moving target objects.
The proposed approach is modification of the CNN already trained for object detection task. This method can be used to improve the accuracy of an existing system by applying minor changes to the existing algorithm. The efficiency of the proposed approach was demonstrated on the open dataset "CDNet2014 pedestrian".

logo

Project structure

  • data_prepare - data preparation, translation of CDNet2014 labels into MS COCO format, augmentation of video frames;
  • models - pretrained models for detection in OD API format. models are downloaded separately from TF1 detection zoo;
  • gridsearch_params.sh & process_cdnet.sh - reproduction of the experiments presented in the article;
  • amphibiandetector_ssd.py - AmphibianDetector method implementation;
  • amphibiandetector_baseline.py - baseline method implementation for the experiments;
  • process_video.py - process one video from the CDNet2014 with the AmphibianDetector;
  • test_stream.py - testing the AmphibianDetector algorithm on a video stream.

How to run

SSD + MovileNetV2
To run AmphibianDetector on a video stream:

  1. Download ssd_mobilenet_v2_coco.pb from TF1 detection zoo and put it in the "models" folder;
  2. Run test_stream.py:
$ python3 test_stream.py 0
$ python3 test_stream.py ./video.avi

Other models
To run AmphibianDetector for your model:

  1. Download [CDNet2014 pedestrian] (http://jacarini.dinf.usherbrooke.ca/dataset2014/).
  2. Prepare and augment the dataset using ./data_prepare/cdnet_prepare.sh, ./data_prepare/cdnet_robot_insert.sh and ./data_prepare/cdnet_augment.sh
  3. Using the script ./gridsearch_params.sh find the optimal parameters for your model.

amphibiandetector's People

Contributors

david-svitov avatar

Watchers

 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.