zqh0253 / NSM

Neural State Machine implemented in PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NSM

Neural State Machine implemented in PyTorch as presented here. This is the first code implementation of the model and is based on V1 of the paper on arxiv. As can be expected, the code is incomplete and makes several assumptions where the paper wasn't clear enough. For the time being this code is not ready to run and several steps are needed for it to train on any VQA dataset. Principal among these is the need for a functioning graph-rcnn to generate the scene graphs.

In the meantime, I hope the code helps readers understand better the paper, and I'm open to any collaborators who wish to help with features or efficiency.

RCNN compilation

We use Facebook's implementation of maskrcnn: maskrcnn-benchmark. To compile this code use the following snippet.

# pytorch, apex and maskrcnn_benchmark must be compiled with the same version of CUDA.
cd maskrcnn_benchmark
python setup.py build develop

About

Neural State Machine implemented in PyTorch


Languages

Language:Python 74.2%Language:Cuda 20.8%Language:C++ 5.0%