Code Monkey home page Code Monkey logo

compactbipooling's Introduction

Compact Bilinear Pooling for Torch

This code is revised from @jnhwkim's Multimodal Compact Bilinear Pooling for Torch7. The main changes include:

  1. adapt the code with image inputs(4D tensor).
  2. get rid of spectral-lib dependency.
  3. the new package name is tcbp(Torch Compact Bilinear Pooling) to avoid confusion.
  4. new tests.

The compact bilinear pooling layer is proposed by Yang Gao etc. in the paper Compact Bilinear Pooling. This method reduces the spatial complexity of Bilinear Pooling so that it's feasible for real world training and provides a possible direction to interpret the huge success in fine grained recognition using Bilibear Pooling. We refer you to caffe implementation page for further information.

Installation

git clone https://github.com/guopei/CompactBiPooling cbp
cd cbp
luarocks make rocks/tcbp-1.0-1.rockspec

Test

th test.lua

Read test.lua for usage.

Troubleshooting

If the following error occurs:

ld -lcufft not found

This is because the ld cannot find the cufft library even if you have already set the LD_LIBRARY_PATH. Because LD_LIBRARY_PATH is only used at excution time not compilation time. The solution is just adding a soft link of libcufft.so to your system library path:

sudo ln -s /user/local/cuda/lib64/libcufft.so /user/lib

Change the location of libcufft.so according to where its' located in your machine.

Update

  1. Added code to be compatible with both lua51 and lua52.

References

  1. spectral-lib
  2. cbp
  3. compact_bilinear_pooling
  4. tensorflow_compact_bilinear_pooling

compactbipooling's People

Contributors

guopei avatar jnhwkim avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

manlegend

compactbipooling's Issues

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.