Git Product home page Git Product logo

mi_bart's Introduction

RetVQA

Official implementation of the nswer 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.

mi_bart's People

Contributors

abhiram4572 avatar badrmarani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.