Giter VIP home page Giter VIP logo

rems's Introduction

ReMS

Code for Relevance-based Modality Specific Weighting for Multimodal Emotion Recognition

1. File system

- models
  -- model.py
- data
  -- dataloader.py
  -- train.pkl
  -- valid.pkl
  -- test.pkl
- src
  -- utils
   -- functions.py
   -- metricsTop.py
  -- config.py
  -- train.py
- results
- main.py
- requirements.txt

2. Environmet

  • PyTorch version: 1.8.0
  • CUDA version: 11.1
  • cudnn version: 8005
  • GPU: Tesla V100-SXM2-16GB

3. How to use

  1. Downlioad pretrained Bert-base and Bert-large model from https://huggingface.co/

  2. Downlioad the data. Google Drive;

  3. Install related libries. pip install requirements.txt

  4. Test. (2 examples)

  • Bert-base: python main.py --name BaseTest --bert_type bert_base --rems_use --two_stage --test_only --seeds 3
  • Bert-large: python main.py --name LargeTest --bert_type bert_large --rems_use --two_stage --test_only --seeds 1
  1. Train. (The predicting is not so stable, the following is an examples)
  • python main.py --name RemsBase --num_workers 16 --bert_type bert_base --lr_other 1e-4 --post_other_dropout 0.0 --lr_text_bert 2e-5 --lr_text_other 1e-3 --post_text_dropout 0.0 --rems_use --two_stage --seeds 0 1 2 3 4

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.