Skip to content

Jianzhao-Huang/LoReHM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LoReHM

Official PyTorch implementation for the paper - Towards Low-Resource Harmful Meme Detection with LMM Agents.

(EMNLP 2024: The 2024 Conference on Empirical Methods in Natural Language Processing, Nov 2024, Miami, Florida.) [paper]

Install

  1. Clone the repo
git clone https://github.com/Jianzhao-Huang/LoReHM.git
cd LoReHM
  1. Install Package
conda create -n lorehm python=3.10 -y
conda activate lorehm
pip install -r requirements.txt

Dataset

Please obtain FHM, HarM, and MAMI, and place them in the following directories:

  • LoReHM/datasets/FHM
  • LoReHM/datasets/harmC
  • LoReHM/datasets/MAMI

Inference

Edit the command line args to change inference settings.

python main.py \
--dataset_name FHM \
--model 'llava-v1.6-34b' \
--rsa \
--mia

Citation

@inproceedings{huang2024towards,
  title={Towards Low-Resource Harmful Meme Detection with LMM Agents},
  author={Huang, Jianzhao and Lin, Hongzhan and Ziyan, Liu and Luo, Ziyang and Chen, Guang and Ma, Jing},
  booktitle={Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing},
  pages={2269--2293},
  year={2024}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages