Giter Club home page Giter Club logo

association-net's Introduction

Association-Net

First ever open source Implementation of Association Network over Yolo Architecture

Introduction

The following is an Unofficial implementation of Learning Feature Hierarchies from Long-Range Temporal Associations in Videos by Panna Felsen, Katerina Fragkiadaki, Jitendra Malik and Alexei Efros.

The folllowing topics are covered by my project:

  • Data-Preprocessing. Build pairs of object tubes which follow and dont follow the object
  • Build a Network for Attention Model. Built using Keras follows the same architecture as mentioned in the paper.
  • Pretraining Yolo. Use the weights of the Attention Model for object localization in Yolo Architecture
  • Readability. The code is very clear,well documented and consistent.
     Same                                                  Different
                          
                          

Model

Network in the Paper

Tensorboard Graph in Network

Data Processing

We would be training our AssociationNet using Object Tubes which contains a pair of images in which the object is being tracked and a pair in which it is not tracked. As the data is not labeled it can be considered as an Unsupervised way of learning.

First Get Dataset from the Image Net website from the following link

Augment the folder ILSVRC2015 with the new data

Run the following script to form the pairs of Object Tubes

python scripts/build_VID2015_imdb.py

Next the script creates a structured pickled file of the data

python scripts/build_VID2015_imdb.py

The credit for the base Data processing script goes to Huazhong University of Science and Technology. Although I have made few changes in it to fit our data requirements.

Train Association Net

Train the Association Net Model by the following script

python train.py

The weights will be saved in weights.h5

Pretrain Yolo

You can use these weights in training the Yolo Architecture by running the following code

cd keras-yolo2/
python train.py  -c config.json

You can evaluate the yolo architecture by the following script


python predict.py -c config.json -w /path/to/best_weights.h5 -i /path/to/image/or/video

I have used the existing keras implemetation of Yolo from the following link

association-net's People

Contributors

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