Git Product home page Git Product logo

visual-reasoning-rationalization's Introduction

visual-reasoning-rationalization

Code associated with the "Natural Language Rationales with Full-Stack Visual Reasoning" Findings of EMNLP 2020 paper

Citation

@inproceedings{marasovic-et-al-2020-rationalization,
    title = "{{Natural Language Rationales with Full-Stack Visual Reasoning: From Pixels to Semantic Frames to Commonsense Graphs}}",
    author = "Marasovi\'{c}, Ana and Bhagavatula, Chandra and Park, Jae Sung and Le Bras, Ronan and Smith, Noah A. and Choi, Yejin",
    booktitle = "Findings of EMNLP",
    year = "2020",
    url = "https://arxiv.org/abs/2010.07526"
}

Installation

conda env create -f environment.yml
conda activate rationalization

Trained models

https://visual-reasoning-rationalization.s3-us-west-2.amazonaws.com/models_vqa.zip

https://visual-reasoning-rationalization.s3-us-west-2.amazonaws.com/models_vcr.zip

https://visual-reasoning-rationalization.s3-us-west-2.amazonaws.com/models_e_snli_ve.zip

Extract in an empty directory named models using tar -xzvf.

Downloading data

https://visual-reasoning-rationalization.s3-us-west-2.amazonaws.com/data.zip

Download features

https://visual-reasoning-rationalization.s3-us-west-2.amazonaws.com/features.zip

Example commands

Training

export FEATURES=textual_objects
python scripts/run_finetuning.py -e ${FEATURES} 

The value of FEATURES can be one of the following: text_only, textual_objects, embedding_objects, textual_situation, embedding_situation, textual_viscomet, textual_viscomet.

Decoding

python scripts/run_generation.py -e ${FEATURES}_eval --model_name_or_path /models/vcr_gen/q_a_to_r/

Templates for human evaluation

HTML files can be found at human_eval_templates

visual-reasoning-rationalization's People

Contributors

amarasovic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

visual-reasoning-rationalization's Issues

Can't download files

Hi there, I am getting HTTP request sent, awaiting response... 403 Forbidden for any of the file downloads (models, features and data). Any idea why that could be? Thanks!

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.