Giter Site home page Giter Site logo

trellixvulnteam / lxmert-compression_70wf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ghazaleh-mahmoodi/lxmert_compression

0.0 0.0 0.0 9.71 MB

B.Sc. Final Project: LXMERT Model Compression for Visual Question Answering.

License: MIT License

Shell 1.06% Python 57.79% TeX 41.15%

lxmert-compression_70wf's Introduction

LXMERT Model Compression for Visual Question Answering

This project implementation is built on the great repo of LXMERT and PyTorch code for the EMNLP 2019 paper "LXMERT: Learning Cross-Modality Encoder Representations from Transformers" on VQA v2.0.

See the complete report here (Latex Template at overleaf).

Slides of project reesentation are avialable here.

Visual Question Answering Usage

Medical Visual Question Answering

"VQA-Med: Overview of the Medical Visual Question Answering Task at ImageCLEF 2019" alt text

Answering Visual Questions from Blind People

"VizWiz Grand Challenge: Answering Visual Questions from Blind People" alt text

Summary

Large-scale pretrained models such as LXMERT are becoming popular for learning cross-modal representations on text-image pairs for vision-language tasks. According to the lottery ticket hypothesis, NLP and computer vision models contain smaller subnetworks capable of being trained in isolation to full performance. In this project, we combine these observations to evaluate whether such trainable subnetworks exist in LXMERT when fine-tuned on the VQA task. In addition, we perform a model size cost-benefit analysis by investigating how much pruning can be done without significant loss in accuracy.

Run

Install the required packages

pip3 install -r requirements.txt

Run All Experiment

to run all experiment ,in lxmert folder run following command:

bash run/vqa_run.bash

Results

  • The plots are available in lxmert/result directory.
  • The trained models are available in lxmert/models directory.
  • The logs are available in lxmert/logs directory.

Plots

Low Magnitude Pruning Subnetwork

alt text


Random Pruning Subnetwork

alt text


High Magnitude Pruning Subnetwork

alt text


All Result Based on Pruning Sparcity

alt text


All Result Based on Pruning mode

alt text

lxmert-compression_70wf's People

Contributors

ghazaleh-mahmoodi avatar trellixvulnteam 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.