Skip to content

Abhiram4572/mi_bart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RetVQA

Official implementation of the Answer Mining from a Pool of Images: Towards Retrieval-Based Visual Question Answering (IJCAI 2023 paper)

paper | arxiv | project page

Requirements

To setup environment

conda env create -n retvqa --file retvqa.yml
conda activate retvqa

Data

Images: Visual Genome Krishna et al.

RetVQA: here

Feature extraction

Image Feature extraction: Inside feature_extraction/, run

python retqa_proposal.py

Refer to this repo for more detailed set-up of Faster R-CNN feature extractor.

Relevance encoder

Refer to COFAR. ITM only variant serves as relevance encoder, when pre-trained on COCO and finetuned on RetVQA.

MI-BART

Training

bash retvqa_VLBart.sh <no. of GPU>

Inference in oracle setting

bash retvqa_VLBart_test.sh <no. of GPU>

Inference in retrieved images setting

bash retvqa_retrieved_VLBart_test.sh <no. of GPU>

Evaluation

Download our retvqa finetuned checkpoint from here.

python eval_retvqa.py --gt_file <ground truth answers file path> --results_file <path to the generated answers>

License

This code and data are released under the MIT license.

Cite

If you find this data/code/paper useful for your research, please consider citing.

@inproceedings{retvqa,
  author       = {Abhirama Subramanyam Penamakuri and
                  Manish Gupta and
                  Mithun Das Gupta and
                  Anand Mishra},
  title        = {Answer Mining from a Pool of Images: Towards Retrieval-Based Visual
                  Question Answering},
  booktitle    = {IJCAI},
  publisher    = {ijcai.org},
  year         = {2023},
  url          = {https://doi.org/10.24963/ijcai.2023/146},
  doi          = {10.24963/ijcai.2023/146},
}

Acknowledgements

  1. We used code-base and pre-trained models of VLBart.
  2. Abhirama S. Penamakuri is supported by Prime Minister Research Fellowship (PMRF), Minsitry of Education, Government of India.
  3. We thank Microsoft for supporting this work through the Microsoft Academic Partnership Grant (MAPG) 2021.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published