All Projects → stared → keras-sequential-ascii

stared / keras-sequential-ascii

Licence: other
ASCII summary for simple sequential models in Keras

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to keras-sequential-ascii

Tuicss
Text-based user interface CSS library
Stars: ✭ 167 (+70.41%)
Mutual labels:  ascii
Ascii py
Make some ascii arts
Stars: ✭ 211 (+115.31%)
Mutual labels:  ascii
awesome-ascii-art
A curated list of ascii-art resources
Stars: ✭ 48 (-51.02%)
Mutual labels:  ascii
Terminal dungeon
Doom-like raycasting engine that renders to ascii for playing in terminal
Stars: ✭ 179 (+82.65%)
Mutual labels:  ascii
Portable Ascii
🔡 Portable ASCII library - performance optimized (ascii) string functions for php.
Stars: ✭ 204 (+108.16%)
Mutual labels:  ascii
Go Asciibot
Golang ASCII Robot Generator
Stars: ✭ 231 (+135.71%)
Mutual labels:  ascii
Ascii Progress
🍓 Ascii progress-bar(s) in the terminal.
Stars: ✭ 167 (+70.41%)
Mutual labels:  ascii
Picture-To-Ascii
Converts a picture to Ascii.
Stars: ✭ 18 (-81.63%)
Mutual labels:  ascii
Ansilove
ANSI and ASCII art to PNG converter in C
Stars: ✭ 207 (+111.22%)
Mutual labels:  ascii
emoticon
List of emoticons
Stars: ✭ 41 (-58.16%)
Mutual labels:  ascii
Ascii Telnet Server
Can stream an ~20 minutes ASCII movie via Telnet emulation as stand alone server or via xinetd daemon. Using famous ASCII art animation from www.asciimation.co.nz (Star ASCIIMATION Wars)
Stars: ✭ 189 (+92.86%)
Mutual labels:  ascii
Dd Plist
A java library providing support for ASCII, XML and binary property lists.
Stars: ✭ 201 (+105.1%)
Mutual labels:  ascii
Hex
🔮 Futuristic take on hexdump, made in Rust.
Stars: ✭ 242 (+146.94%)
Mutual labels:  ascii
Tcharts.js
📉 Lightweight and fast terminal ASCII charts for nodejs and browser.
Stars: ✭ 172 (+75.51%)
Mutual labels:  ascii
termtable
Simple and highly customizable library to display tables in the terminal.
Stars: ✭ 41 (-58.16%)
Mutual labels:  ascii
Dot To Ascii
Graphviz to ASCII converter using Graph::Easy
Stars: ✭ 168 (+71.43%)
Mutual labels:  ascii
Cowsay Files
A collection of additional/alternative cowsay files.
Stars: ✭ 216 (+120.41%)
Mutual labels:  ascii
On-The-Roadside
A turn-based ASCII strategy game.
Stars: ✭ 21 (-78.57%)
Mutual labels:  ascii
alfred-figlet
🔠 Alfred 3 workflow to asciify plain text using figlet.js
Stars: ✭ 16 (-83.67%)
Mutual labels:  ascii
bfetch
📠 Dynamic fetch displayer that SuperB
Stars: ✭ 114 (+16.33%)
Mutual labels:  ascii

Sequential model in Keras -> ASCII

by Piotr Migdał

A library for Keras for investigating architectures and parameters of sequential models.

(discontinuted) For more general approaches, see: Simple diagrams of convoluted neural networks

Both model.summary() and graph export were not enough - I wanted array dimensions, numbers of parameters and activation functions in one place. I use it for didactic purpose.

  • TODO
    • Add ASCII art for more layers.
    • Go beyond simple sequential models (e.g. to allow merge layers); any ideas how?
    • Consider PRing to the main Keras repo, see #3873.

See this library in the wild, for example:

Installation

From PyPI:

pip install keras_sequential_ascii

Or from this repo:

pip install git+git://github.com/stared/keras-sequential-ascii.git

Usage

from keras_sequential_ascii import keras2ascii
keras2ascii(model)

Examples

Proof of principle

           OPERATION           DATA DIMENSIONS   WEIGHTS(N)   WEIGHTS(%)

               Input   #####      3   32   32
  BatchNormalization    μ|σ  -------------------        64     0.1%
                       #####      3   32   32
       Convolution2D    \|/  -------------------       448     0.8%
                relu   #####     16   30   30
       Convolution2D    \|/  -------------------      2320     4.3%
                relu   #####     16   28   28
        MaxPooling2D   Y max -------------------         0     0.0%
                       #####     16   14   14
       Convolution2D    \|/  -------------------       272     0.5%
                tanh   #####     16   14   14
             Flatten   ||||| -------------------         0     0.0%
                       #####        3136
               Dense   XXXXX -------------------     50192    94.1%
                       #####          16
             Dropout    | || -------------------         0     0.0%
                       #####          16
               Dense   XXXXX -------------------        51     0.1%
             softmax   #####           3

VGG16

           OPERATION           DATA DIMENSIONS   WEIGHTS(N)   WEIGHTS(%)

              Input   #####      3  224  224
         InputLayer     |   -------------------         0     0.0%
                      #####      3  224  224
      Convolution2D    \|/  -------------------      1792     0.0%
               relu   #####     64  224  224
      Convolution2D    \|/  -------------------     36928     0.0%
               relu   #####     64  224  224
       MaxPooling2D   Y max -------------------         0     0.0%
                      #####     64  112  112
      Convolution2D    \|/  -------------------     73856     0.1%
               relu   #####    128  112  112
      Convolution2D    \|/  -------------------    147584     0.1%
               relu   #####    128  112  112
       MaxPooling2D   Y max -------------------         0     0.0%
                      #####    128   56   56
      Convolution2D    \|/  -------------------    295168     0.2%
               relu   #####    256   56   56
      Convolution2D    \|/  -------------------    590080     0.4%
               relu   #####    256   56   56
      Convolution2D    \|/  -------------------    590080     0.4%
               relu   #####    256   56   56
       MaxPooling2D   Y max -------------------         0     0.0%
                      #####    256   28   28
      Convolution2D    \|/  -------------------   1180160     0.9%
               relu   #####    512   28   28
      Convolution2D    \|/  -------------------   2359808     1.7%
               relu   #####    512   28   28
      Convolution2D    \|/  -------------------   2359808     1.7%
               relu   #####    512   28   28
       MaxPooling2D   Y max -------------------         0     0.0%
                      #####    512   14   14
      Convolution2D    \|/  -------------------   2359808     1.7%
               relu   #####    512   14   14
      Convolution2D    \|/  -------------------   2359808     1.7%
               relu   #####    512   14   14
      Convolution2D    \|/  -------------------   2359808     1.7%
               relu   #####    512   14   14
       MaxPooling2D   Y max -------------------         0     0.0%
                      #####    512    7    7
            Flatten   ||||| -------------------         0     0.0%
                      #####       25088
              Dense   XXXXX ------------------- 102764544    74.3%
               relu   #####        4096
              Dense   XXXXX -------------------  16781312    12.1%
               relu   #####        4096
              Dense   XXXXX -------------------   4097000     3.0%
            softmax   #####        1000
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].