Giter VIP home page Giter VIP logo

graphcage's Introduction

Graph Capsule Aggregation for Unaligned Multimodal Sequences

Code for Graph Capsule Aggregation (GraphCAGE), ICMI 2021, https://arxiv.org/pdf/2108.07543.pdf

This repository includes data, code and pretrained models for the ICMI 2021 paper, "Graph Capsule Aggregation for Unaligned Multimodal Sequences". In addition, we show details about cross-modal transformer, hyper-parameters and the extracted features at the end of this document.

Data

Data files ("mosei_senti_data_noalign.pkl" and "mosi_data_noalign.pkl") can be downloaded from here. Place the data files in the data folder.

To retrieve the meta information and the raw data, please refer to the SDK for these datasets.

Run the Code

Requirements

  • Python 3.7
  • Pytorch 1.1.0
  • numpy 1.19.2
  • sklearn

Train and test

python main.py [--FLAGS]

Note that the defualt arguments are for unaligned version of MOSEI. For other datasets, please refer to Supplmentary.

Cross-modal Transformer

Cross-modal Transformer is proposed in Multimodal Transformer for Unaligned Multimodal Language Sequences
, which enables one modality for receiving information from another modality. Thus, it can explicitly explore inter-modal dynamics.

Extracted Features

The details about the extracted features of each modality are as follows:

Textual features are extracted from video transcripts by Glove word embeddings. Each sentence is converted to a sequence with length 50 which includes paddings and word embeddings. The dimension of the embedding is 300.

Acoustic features are extracted by COVAREP which indicates 12 Mel-frequency cepstral coefficients (MFCCs), pitch tracking, glottal source parameters, peak slope parameters and maxima dispersion quotients.

Visual features are extracted by Facet which indicate 35 facial action units. These units can record facial muscle movement for representing per-frame basic and advanced emotions.

Hyperparameters

CMU-MOSI

  • Transformers Hidden Unit Size : 30
  • Crossmodal Blocks : 5
  • Crossmodal Attention Heads : 5
  • Temporal Convolution Kernel Size : 1
  • Embedding Dropout : 0.25
  • Output Dropout : 0
  • Batch Size : 16
  • Initial Learning Rate : 1e-3
  • Optimizer : RMSprop
  • Epochs : 20
  • Dimension of Capsules : 32
  • Iteration of Routing : 2
  • Weight of L2 Regularization : 1e-4

CMU-MOSEI

  • Transformers Hidden Unit Size : 30
  • Crossmodal Blocks : 5
  • Crossmodal Attention Heads : 5
  • Temporal Convolution Kernel Size : 1
  • Embedding Dropout : 0.25
  • Output Dropout : 0.25
  • Batch Size : 16
  • Initial Learning Rate : 1e-3
  • Optimizer : RMSprop
  • Epochs : 20
  • Dimension of Capsules : 64
  • Iteration of Routing : 2
  • Weight of L2 Regularization : 1e-4

graphcage's People

Contributors

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