Git Product home page Git Product logo

ece285_jarvis_projecta's Introduction

Implementation of Visual Question Answering

ECE285_Jarvis_ProjectA

This code is an implementation based on Vahid Kazemi and Ali Elqursh's paper Show, Ask, Attend, and Answer: A Strong Baseline For Visual Question Answering using PyTorch by team Jarvis whose members are listed below. This is part of the final project for the UCSD course Machine Learning for Image Processing in Spring 2019

Pre-trained model (50epoch.pth) is available here

Team members:

Required Packages (python3):

  1. torch
  2. h5py
  3. tqdm
  4. pillow
  5. json

For installing these packages, you can use either pip to install packages. For example,

pip install torch

To run a demo:

To demo the model, run the demo.ipynb jupyter notebook

To train the model:

  • Change the parameters in config.py
  • run python train.py <path-to-save-model>

File Structure:

.
├── efforts                              # Other models we tried
|   ├── Bottom-up-attention-imp          # Implementation of https://arxiv.org/abs/1708.02711 paper
|   ├── san-vqa-tensorflow               # Implementation of https://arxiv.org/pdf/1511.02274.pdf paper 
|   ├── Show_Attend_and_Tell_beam        # Implementation of https://arxiv.org/pdf/1502.03044.pdf paper 
|   └── show_attend_and_tell             # Implementation of https://arxiv.org/pdf/1502.03044.pdf paper 
|
├── resnet                              
|   ├── convert.py                       # Used to build resnet model
|   ├── convert2.py                      # Used to build resnet model
|   ├── resnet.py                        # Used to build resnet model
|   └── synset.py                        # Used to build resnet model
|
├── Visual-Question-Answering_Report.pdf # Project report 
├── config.py                            # Contains parameters for training the model
├── data.py                              # Data loaders for the dataset
├── demo.ipynb                           # Notebook to run the demo
├── dogs.jpg                             # Image used in demo
├── model.py                             # File to build the neural net in
├── preprocess-images.py                 # Extract features from images
├── preprocess-vocab.py                  # Do word embedding
├── tennis.jpg                           # Image used in demo
├── test_img.jpg                         # Image used in demo
├── train.py                             # To train the model
├── utils.py                             # Contains some utility functions
├── vocab.json                           # Vocabulary file created during training
└── README.md

ece285_jarvis_projecta's People

Contributors

solomonshashank avatar snagiri avatar chandhinig avatar gayatri1509 avatar

Watchers

paper2code - bot 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.