GithubHelp home page GithubHelp logo

dataxujing / keras_mixnets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from titu1994/keras_mixnets

0.0 2.0 0.0 208 KB

Keras Implementation of MixNets: Mixed Depthwise Convolutions

License: MIT License

Python 100.00%

keras_mixnets's Introduction

Keras MixNets: Mixed Depthwise Convolutional Kernels

Keras Implementation of MixNets from the paper MixNets: : Mixed Depthwise Convolution Kernels.

Code ported from the official codebase https://github.com/tensorflow/tpu/blob/master/models/official/mnasnet/mixnet

Mixed Depthwise Convolutional Kernel

From the above paper, a Mixed Convolution is a group of convolutions with varying filter sizes. The paper suggests that [3x3, 5x5, 7x7] can be used safely without any loss in performance (and possible increase in performance), while a 9x9 or 11x11 may degrade performance if used without proper architecture search.

Installation

From PyPI:

$ pip install keras_mixnets

From Master branch:

pip install git+https://github.com/titu1994/keras_mixnets.git

OR

git clone https://github.com/titu1994/keras_mixnets.git
cd keras_mixnets
pip install .

Usage

Due to the use of Model Subclassing, the keras model built *cannot be deserialized using load_model. You must build the model each time. tf.keras supports writing Layers which have additional Layers within them, but as Keras itself does not support it yet, these models cannot be deserialized using load_model.

from keras_mixnets import MixNetSmall  # Medium and Large can also be used

model = MixNetSmall((224, 224, 3), include_top=True)

Weights

Weights for these models have not been ported yet from Tensorflow.

Requirements

  • Tensorflow 1.14+ (Not 2.x)
  • Keras 2.2.4+

keras_mixnets's People

Contributors

titu1994 avatar

Watchers

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