Git Product home page Git Product logo

vadr's Introduction

Visual & Acoustic Discriminative Relevance for Activity Recognition

Conference

This repository holds experiment code for Visual & Acoustic Discriminative Relevance (VADR) demonstrated on the UCF-101 action recognition dataset.

The model architecture used is a concatenated fusion of VGGish and C3D at the layer before the bottleneck, with a simple MLP for classification of actions.

UCF-101

https://www.crcv.ucf.edu/papers/UCF101_CRCV-TR-12-01.pdf

Unfortunately the original release of UCF-50 included videos without corresponding audio tracks, therefore for the visual-audio aspect of this work, we are using a subset of UCF-101 that only contains classes with audio tracks.

Architecture

We use a C3D model pretrained on UCF-101 as the video subnetwork, and VGGish, trained on AudioSet for the audio subnetwork. Both architectures are based off VGG. They are concatenated at the feature embedding layer.

Explainability

We use discriminative relevance (https://arxiv.org/abs/1908.01536), a modification of layerwise relevance backpropagation, to show relevant components in a four tuple consisting of .

vadr's People

Contributors

liamhiley avatar harritaylor avatar

Watchers

Supriyo Chakraborty avatar Dave Braines avatar James Cloos avatar Graham White avatar  avatar  avatar David Mott avatar paper2code - bot avatar

vadr's Issues

possible bug in calculating stride: adaptive_avg_pool backward gives error

Hi,

Thanks for sharing the code.

The following error occurs when calling backward on any of adaptive_avg_pool modules:

` in backward(ctx, grad_output)
200 for c in range(C):
201 for d in range(0, D, stride[0]):
--> 202 for h in range(0, H, stride[1]):
203 for w in range(0, W, stride[2]):
204 # padded_grad[n, c, d:d + kernel_size[0], h:h + kernel_size[1], w:w + kernel_size[2]] += 1 / torch.Tensor(kernel_size).prod(0)

ValueError: range() arg 3 must not be zero`

minimal code to reproduce:
`aap = AdaptiveAvgPool2d((1,1))

x = torch.randn(10, 3, 7, 7, dtype=torch.double,requires_grad=True)
torch.autograd.gradcheck(aap.double(), x)`

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.