Giter Site home page Giter Site logo

neuro-symbolic-ai-soc's Introduction

Neuro-Symbolic AI for Visual Question Answering

Sort-of-CLEVR Dataset

Neuro-Symbolic AI allows us to combine Deep Learning’s superior pattern recognition abilities with the reasoning abilities of symbolic methods like program synthesis. This repository is an implementation of NSAI for Visual Question Answering on the Sort-of-CLEVR dataset using PyTorch. This implementation is inspired by the Neuro-Symbolic VQA paper by MIT-IBM Watson AI Lab.

The basic idea behind using NSAI for VQA is parsing the visual scene into a symbolic representation and using NLP to parse the query into an executable program which the program executor can use on the scene to find the answer. This implementation gets more than 99% on the Sort-of-CLEVR dataset.

Requirements

  • Pytorch <= 1.7
  • Torchtext <= 0.8.0
  • Torchvision <= 0.8.0
  • OpenCV
  • dlib
  • Scikit Learn
  • Pandas
  • Numpy
  • Scikit-image
  • Torchtext
  • Tqdm
  • Spacy
  • spacy-model-en_core_web_sm

Environment Setup

  • run conda env create -f environment.yml

Usage

  • The Step-by-Step usage is in the NSAI on Sort-of-CLEVR.ipynb notebook from training the individual modules to plugging everything together to test it.
  • You can easily run this repository using Colab Open in Colab
  • To understand more about the design and workflow, check out NSAI Flow Diagram.pdf which contains the workflows of every component i.e. Perception Module, Semantic Parser and Program Executor.

References

Dev Notes

  • when new libraries are installed, run conda env export > environment.yml

neuro-symbolic-ai-soc's People

Contributors

nerdimite avatar chriskok 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.