Code Monkey home page Code Monkey logo

cif-mmin's Introduction

CIF-MMIN

This repo implements the CIF Aware Missing Modality Imagination Network (CIF-MMIN) for the following paper: "Contrastive Learning based Modality-Invariant Feature Acquisition for Robust Multimodal Emotion Recognition with Missing Modalities"

Environment

python 3.8.0
pytorch >= 1.8.0

Usage

First you should change the data folder path in data/config and preprocess your data follwing the code in preprocess/.

The preprocess of feature was done handcrafted in several steps, we will make it a automatical running script in the next update. You can download the preprocessed feature to run the code.

  • For Training CIF-MMIN on IEMOCAP:

    First training a model self-supervise model with all audio, visual and lexical modality as the pretrained encoder.

    bash scripts/CAP_utt_self_supervise.sh AVL [num_of_expr] [GPU_index]

    Then

    bash scripts/our/CAP_CIF_MMIN.sh [num_of_expr] [GPU_index]
  • For Training CIF-MMIN on MSP-improv:

    bash scripts/MSP_utt_self_supervise.sh AVL [num_of_expr] [GPU_index]
    bash scripts/our/MSP_CIF_MMIN.sh [num_of_expr] [GPU_index]
    
  • For Training CIF-MMIN on MOSI:

    bash scripts/MOSI_utt_self_supervise.sh AVL [num_of_expr] [GPU_index]
    bash scripts/our/MOSI_CIF_MMIN.sh [num_of_expr] [GPU_index]
    

Note that you can run the code with default hyper-parameters defined in shell scripts, for changing these arguments, please refer to options/get_opt.py and the modify_commandline_options method of each model you choose.

Download the features

Baidu Yun Link IEMOCAP A V L modality Features 链接:https://pan.baidu.com/s/1i4_ZKFwGUE4cVrxi20dKPg?pwd=id33 提取码:id33

MSP-IMPROV A V L modality Features 链接:https://pan.baidu.com/s/1UzyiC2idpXM8pz0RU5YOCQ?pwd=pcel 提取码:pcel

CMU-MOSI A V L modality Features 链接:https://pan.baidu.com/s/1N8fl8gQC5HTWXuESPUz1pg?pwd=vm51 提取码:vm51

License

MIT license.

Copyright (c) 2023 S2Lab, School of Inner Mongolia University.

cif-mmin's People

Contributors

zhuoyulang avatar mc-eiu 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.