Home

Awesome

CoSIm

Code and dataset for NAACL 2022 paper "CoSIm: Commonsense Reasoning for Counterfactual Scene Imagination" Hyounghun Kim, Abhay Zala, Mohit Bansal.

Prerequisites

pip install -r requirements.txt

Dataset

Please download image features etc. from here and unzip in data/cosim_feats folder.<br> Raw image files can be downloaded from here. <br>

Usage

To train the models, please run the script run/lxmert_pretrain.bash like below:

bash run/run_train.bash 0