Skip to content

terenceylchow124/Meme-MultiModal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memotion Multi-Modal Model (M4 Model)

The growing ubiquity of Internet memes on social media platforms, such as Facebook, Twitter, Instagram and Reddit have become a unstoppable trend. Comprising of visual and textual information, memes typically convey various emotion (e.g. humor, sarcasm, offensive, motivational, and sentiment). Nevertheless, there is not much research attention toward meme emotion analysis. The main objective of this project is to bring the attention of the research community toward meme studying. In this project, we propose the Memotion Multimodal Model (M4 Model) newtork for humor detection on memotion dataset. Inspired by ConcatBERT model, we propose our model while the core "Gated Multimodal Layer" (GML) are borrowed by this arXiv paper

Dataset Preparation

In this project, memotion Dataset are mainly used while we apply transfer learning using Reddit Dataset.

  1. Download offical Memotion Dataset from kaggle
  2. Download and prepare sampled Reddit Dataset from this repository
  3. Put your Reddit and Memotion Dataset to ./data/reddit and ./data/memotion accordingly.

Procedures

  1. Training the ALBERT model using Reddit Dataset.
  • go to utils/util_args/
  • set "train_reddit" to 1
  • set "dataset" to "reddit"
  • set "model" to "RedditAlbert"
  • set "bert_model" to "albert-base-v2"
  • run "python main.py"
  1. After training, the trained model and corresponding log file should be stored under ./pretrained_models/.
  2. Training the MultiModal model using Memotion Dataset.
  • go to utils/util_args/
  • set "train_reddit" to 0
  • set "dataset" to "memotion"
  • set "model" to "GatedAverageBERT"
  • load the pretrained bert model by modify the model name in initiate() function of main.py.
  • run "python main.py"

Pretrained Model

Resulted log files can be found under pretrained_models/.

Variant Model Task Test Acc % Macro-F1 % Benchmark % Download Link
A2 ALBERT+FC Reddit 60.79 55.96 72.40 (Acc)
A2 (GML) ALBERT+FC+VGG16 Memotion 68.32 54.57 52.99 (F1)

Acknowledgment

This code is partial borrowed from ConcatBERT model.

About

Multimodal Model for Memotion Dataset

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages