Giter VIP home page Giter VIP logo

lbcnn.pytorch's Introduction

Pytorch implementation of CVPR'17 - Local Binary Convolutional Neural Networks

Juefei-Xu, F., Naresh Boddeti, V., & Savvides, M. (2017). Local binary convolutional neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp. 19-28).

Training even MNIST with parameters, stated in the original repository, is incredibly slow. Here is an example of training a toy model -- "2 x {BatchNorm2d(8) -> ConvLBP(8, 16, 3) -> Conv(16, 8, 1)} -> FC(200) -> FC(50) -> FC(10)" -- on MNIST:

Epoch 0/5: 100%|██████████| 235/235 [00:06<00:00, 37.74it/s]
Epoch 0 train accuracy: 0.948
Epoch 1/5: 100%|██████████| 235/235 [00:05<00:00, 41.98it/s]
Epoch 1 train accuracy: 0.962
Epoch 2/5: 100%|██████████| 235/235 [00:05<00:00, 42.01it/s]
Epoch 2 train accuracy: 0.969
Epoch 3/5: 100%|██████████| 235/235 [00:05<00:00, 42.04it/s]
Epoch 3 train accuracy: 0.971
Epoch 4/5: 100%|██████████| 235/235 [00:05<00:00, 41.84it/s]
Epoch 4 train accuracy: 0.971
Finished Training. Total training time: 41 sec
Full forward pass: 100%|██████████| 40/40 [00:00<00:00, 100.42it/s]
MNIST test accuracy: 0.974

lbcnn.pytorch's People

Contributors

dizcza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lbcnn.pytorch's Issues

Resnet structure in the code?

I noticed the following snippet in your code of class BlockLBP

    def forward(self, x):
        residual = x
        x = self.batch_norm(x)
        x = F.relu(self.conv_lbp(x))
        x = self.conv_1x1(x)
        x.add_(residual)
        return x

seem a resnet structure(shortcut), I'm not sure if this is exactly what they used in the paper?

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.