Git Product home page Git Product logo

activitynettal's Introduction

ActivityNet Temporal Action Localization

This project is an entry into the Temporal Action Localization challenge for ActivityNet 2019. It seeks to leverage the long-term memory of Temporal Convolutional Networks (TCN). TCN style architectures have demonstrated effectiveness at capturing long-term dependencies in sequences that traditionally have been too difficult for RNN-based systems. A good example is Google WaveNet where they managed to synthesize speech with a significantly more natural sound.

What is Temporal Action Localization?

Temporal action localization is a challenge that Activity Net hosted in 2018 and will also host again in 2019. In this challenge, the goal is to localize specific action instances temporally within a untrimmed video sequence. As object recognition is more or less solved, the next big challenges in computer vision are spatial and temporal localization. You can read more about it here.

The TCN implementation

This is a work in progress. I have attempted to modularize the code for maintainability and organization. The TCN network lives in network/TemporalConvNet. It uses a tf while loop to dynamically adjust for the sequence length, thus reducing graph construction time and saving memory. Convolution operators and loss functions are user-defined functions - they can be easily "plugged" into the network to implement non-standard functions. Common convolutions and losses such as 1-D convolution and L2 loss are provided in ConvOp.py and LossOp.py respectively.

Current usage of the network is as follows:

import tensorflow as tf
from network.TemporalConvNet.TemporalConvNet import TemporalConvNet
from network.TemporalConvNet.ConvOp import *
from network.TemporalConvNet.LossOp import *

feature_shape = [1, 2048]

#The following params are sequenced by layer
dilation_factor = [2, 2, 4]
kernel_length = [10, 16, 20]
temporal_stride = [5, 7, 7]
num_kernels = [5, 3, 3]

#Build TCN
TCN = TemporalConvNet(feature_shape, 
                      dilation_factor,
                      kernel_length,
                      temporal_stride, 
                      num_kernels, 
                      conv1DOp, 
                      ClassificationCELoss(1e-4, 6))
input = tf.placeholder(tf.float32, [None, 2048])
TCN.buildNetwork(None, input)
TCN.initNetwork()

activitynettal's People

Contributors

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