GithubHelp home page GithubHelp logo

grseb9s / keras-sparsenet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from titu1994/keras-sparsenet

0.0 3.0 0.0 351 KB

Keras Implementation of SparseNets

License: MIT License

Python 100.00%

keras-sparsenet's Introduction

Sparse Networks in Keras

Keras Implementation of Sparse Networks from the paper Sparsely Connected Convolutional Networks.

Code derived from the offical repository - https://github.com/Lyken17/SparseNet

Sparse Networks

SparseNet is a variant of DenseNets. While DenseNets have a skip connection after every block in its dense structure, SparseNets have such skip connections only at depths of 2^N (with exponential offsets rather than a static linear offset). DenseNets posses O(n^2) skip connections for every dense block, whereas SparseNets have only O(log n) skip connections in each of its sparse blocks.

This allows models which are much less memory intensive, while still performing at the level / even surpassing DenseNets, with fewer parameters.

Sparse Connectivity

The above image from the paper shows that each input at the end only requires log2 n input connections.

Difference between DenseNets and SparseNets

This image from their paper shows the major difference between the connectivity pattern in SparseNets vs ResNets/DenseNets.

Caveats

There is a small discrepancy in the number of parameters between the paper and this repo.

  • SparseNet-40-24 (Keras = 0.74 M, paper = 0.76 M)
  • SparseNet-100-24 (Keras = 2.50 M, paper = 2.52 M)

If anyone can figure out the cause of this discrepancy, I'd be grateful.

Requirements

  • Keras 2.1.3
  • Tensorflow / Theano / CNTK (I am assuming since all frameworks support ResNets, they should be able to support this as well without any modification)

keras-sparsenet's People

Contributors

titu1994 avatar

Watchers

James Cloos avatar Shengliang Pu avatar 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.