Our source code for EACL2021 workshop: Meme Classification for Tamil Language. We took first place in this task finally!🥳
Updated: Source code is released!🤩
I will release the code very soon.
├── MyLoss.py # Impelmentation of some loss function
├── README.md
├── __init__.py
├── args.py # declare some argument
├── ckpt
│ └── README.md
├── data # store data
│ └── README.md
├── gen_data.py # generate Dataset
├── install_cli.sh # install required package
├── logfile # store logfile during training
├── main.py # train model
├── model.py # define model
├── multimodal_attention.py # Implentation of multimodal attention layer
├── pred_data
│ └── README.md
├── preprocessing.py # preprocess the data
├── pretrained_weights # store pretrained weights of resnet and xlm-roberta
│ └── README.md
├── run.sh # run model
└── train.py # define training and validation loop
Use the following command so that you can install all of required packages:
sh install_cli.sh
The first step is to preprocess the data. Just use the following command:
python3 -u preprocessing.py
The second step is to train our model. Use the following command:
nohup sh run.sh > run_log.log 2>&1 &
The final step is inference after training. Use the following command:
nohup python3 -u inference.py > inference.log 2>&1 &
Congralutions! You have got the final results!🤩
If you use our code, please indicate the source.