Code Monkey home page Code Monkey logo

lstm_tracker's Introduction

LSTM Tracker

Introduction

This module contains code for running a LSTM network to track objects using only the spatial information. KITII and MOT datasets are used for training and validation purposes.

If using this work, you may cite the following:

@misc{ranasinghe2019extending,
    title={Extending Multi-Object Tracking systems to better exploit appearance and 3D information},
    author={Kanchana Ranasinghe and Sahan Liyanaarachchi and Harsha Ranasinghe and Mayuka Jayawardhana},
    year={2019},
    eprint={1912.11651},
    archivePrefix={arXiv},
    primaryClass={cs.CV}
}

Dependencies

The following libraries are required.

  • python==3.6
  • tensorflow==1.12.0
  • pillow
  • matplotlib
  • numpy

The project root is /lstm_tracker.

The docker container kahnchana/tf:tf1gpu can be used (contains all requirements). This requires nvidia-docker and a GPU enabled machine.

Visualize Data

Data can either be generated from the raw datasets or the processed data (JSON files containing tracks) which can be downloaded from here. These two JSON files should be placed inside the /data folder (create the folder if not present already).

Afterwards use trainer.data.vis_gen() to visualize the data. Set the required dataset from code. Also fix the paths

Train & Evaluate

Make sure the models folder exists. Afterards, refer to trainer/train.sh to run a training. The file trainer/train.py contains the start-point for training.

For running training on a GPU enabled machine, simply run the following:

cd PATH_TO_REPO_ROOT/fyp_2019/LSTM_Kanchana/trainer

./run_docker.sh "train.sh PATH_TO_REPO_ROOT"

This will use a pre-built docker image. In case of a permission error, run chmod +x run_docker.sh train.sh to give execute permissions.

To run without a docker image (on a machine with all dependencies) run:

./train.sh PATH_TO_REPO_ROOT

NOTE: change required parameters from the train.sh file for different experiments. Do remember to change the job_dir (model/logs saving directory) for each new experiment.

Evaluate & Visualize

Refer to trainer/infer.py to run inference on a dataset with visualizations. This file also contains code to obtain IOU-matched precision and MSE accuracy.

Sample Output

A few sample tracked frames are shown below. image

lstm_tracker's People

Contributors

kahnchana avatar

Watchers

James Cloos 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.