← Open Source
RedaOps

ann-visualizer

A python library for visualizing Artificial Neural Networks (ANN).

Model DevelopmentInterpretabilityPython
Open on GitHub
Momentum
+-1stars in 24 hours-0.1%
1.25k
Stars
217
Forks
+0
This week
0
Contributors
Created 2018-03-27 · Updated 2026-10-16 · #18911 today

RedaOps/ann-visualizer is ranked 18,911 with 1,248 stars.

Same-category comparison

RedaOps/ann-visualizer is ranked 18,911 among these 8 peers; davidmrau/mixture-of-experts is ranked 18,908.

Same-category comparison
NameRankMetrics
libgdx/gdx-ai18,896
Language:
Java
Stars:
1,305
Forks:
251
Description:
Artificial Intelligence framework for games based on libGDX or not. Features: Steering Behaviors, Formation Motion, Pathfinding, Behavior Trees and Finite State Machines.
huanngzh/MV-Adapter18,902
Language:
Python
Stars:
1,295
Forks:
96
Description:
[ICCV 2025] Official impl. of "MV-Adapter: Multi-view Consistent Image Generation Made Easy".
NVIDIA-Merlin/Transformers4Rec18,905
Language:
Python
Stars:
1,284
Forks:
165
Description:
Transformers4Rec is a flexible and efficient library for sequential and session-based recommendation and works with PyTorch.
davidmrau/mixture-of-experts18,908
Language:
Python
Stars:
1,255
Forks:
112
Description:
PyTorch Re-Implementation of "The Sparsely-Gated Mixture-of-Experts Layer" by Noam Shazeer et al. https://arxiv.org/abs/1701.06538.
yeyupiaoling/Whisper-Finetune18,916
Language:
C
Stars:
1,221
Forks:
219
Description:
Fine-tune the Whisper speech recognition model to support training without timestamp data, training with timestamp data, and training without speech data. Accelerate inference and support Web deployment, Windows desktop deployment, and Android deployment.
KaihuaTang/Scene-Graph-Benchmark.pytorch18,925
Language:
Jupyter Notebook
Stars:
1,198
Forks:
235
Description:
A new codebase for popular Scene Graph Generation methods (2020). Visualization & Scene Graph Extraction on custom images/datasets are provided. It's also a PyTorch implementation of paper “Unbiased Scene Graph Generation from Biased Training CVPR 2020”.
noahcao/OC_SORT18,939
Language:
Python
Stars:
1,153
Forks:
155
Description:
[CVPR2023] The official repo for OC-SORT: Observation-Centric SORT on video Multi-Object Tracking. OC-SORT is simple, online and robust to occlusion/non-linear motion.
patil-suraj/question_generation18,941
Language:
Jupyter Notebook
Stars:
1,137
Forks:
346
Description:
Neural question generation using transformers.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryInterpretability
Stars1,248
Forks217
Contributors0
Created date2018-03-27
Updated date2026-10-16
Stars in 1 day-1
Stars in 7 days0
Rank18,911
Previous rank10,931
Rank change-7,980
7-day stars rank12,836
Previous 7-day stars rank10,065
7-day stars rank change-2,771
Total stars rank9,391
Previous total stars rank9,371
Total stars rank change-20
README summary

ANN Visualizer A great visualization python library used to work with Keras. It uses python's graphviz library to create a presentable graph of the neural network you are building. 0 of the ann_visualizer is now released! The community demanded a CNN visualizer, so we updated our module. You can check out an example of a CNN visualization below! Download the folder from the github repository. Place the folder in the same directory as your main python script. From pip

Use the following command: Make sure you have graphviz installed. Install it using: Usage Documentation ann_viz(model, view=True, filename="network. gv", title="MyNeural Network") - The Keras Sequential model - If True, it opens the graph preview after executed - Where to save the graph. gv file format) - A title for the graph Example ANN This will output: Example CNN This will output: Contributions This library is still unstable. Please report all bug to the issues section. It is currently tested

with and , but it should run just fine on any python3.

Frequently asked questions

How many stars and forks are recorded?

RedaOps/ann-visualizer has 1,248 stars and 217 forks.

What is the repository rank?

RedaOps/ann-visualizer is ranked 18,911.

What language and category are recorded?

RedaOps/ann-visualizer has 1,248 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

RedaOps/ann-visualizer is compared with davidmrau/mixture-of-experts, ranked 18,908 with 1,255 stars.

README

ANN Visualizer

A great visualization python library used to work with Keras. It uses python's graphviz library to create a presentable graph of the neural network you are building.

Version 2.0 is Out!

Version 2.0 of the ann_visualizer is now released! The community demanded a CNN visualizer, so we updated our module. You can check out an example of a CNN visualization below!

Happy visualizing!

Installation

From Github

  1. Download the ann_visualizer folder from the github repository.
  2. Place the ann_visualizer folder in the same directory as your main python script.

From pip

Use the following command:

pip3 install ann_visualizer

Make sure you have graphviz installed. Install it using:

sudo apt-get install graphviz && pip3 install graphviz

Usage


from ann_visualizer.visualize import ann_viz;
#Build your model here
ann_viz(model)

Documentation

ann_viz(model, view=True, filename="network.gv", title="MyNeural Network")

  • model - The Keras Sequential model
  • view - If True, it opens the graph preview after executed
  • filename - Where to save the graph. (.gv file format)
  • title - A title for the graph

Example ANN

import keras;
from keras.models import Sequential;
from keras.layers import Dense;

network = Sequential();
        #Hidden Layer#1
network.add(Dense(units=6,
                  activation='relu',
                  kernel_initializer='uniform',
                  input_dim=11));

        #Hidden Layer#2
network.add(Dense(units=6,
                  activation='relu',
                  kernel_initializer='uniform'));

        #Exit Layer
network.add(Dense(units=1,
                  activation='sigmoid',
                  kernel_initializer='uniform'));

from ann_visualizer.visualize import ann_viz;

ann_viz(network, title="");

This will output:

Example CNN

import keras;
from keras.models import Sequential;
from keras.layers import Dense;
from ann_visualizer.visualize import ann_viz
model = build_cnn_model()
ann_viz(model, title="")

def build_cnn_model():
  model = keras.models.Sequential()

  model.add(
      Conv2D(
          32, (3, 3),
          padding="same",
          input_shape=(32, 32, 3),
          activation="relu"))
  model.add(Dropout(0.2))

  model.add(
      Conv2D(
          32, (3, 3),
          padding="same",
          input_shape=(32, 32, 3),
          activation="relu"))
  model.add(MaxPooling2D(pool_size=(2, 2)))
  model.add(Dropout(0.2))

  model.add(
      Conv2D(
          64, (3, 3),
          padding="same",
          input_shape=(32, 32, 3),
          activation="relu"))
  model.add(Dropout(0.2))

  model.add(
      Conv2D(
          64, (3, 3),
          padding="same",
          input_shape=(32, 32, 3),
          activation="relu"))
  model.add(MaxPooling2D(pool_size=(2, 2)))
  model.add(Dropout(0.2))

  model.add(Flatten())
  model.add(Dense(512, activation="relu"))
  model.add(Dropout(0.2))

  model.add(Dense(10, activation="softmax"))

  return model

This will output:

Contributions

This library is still unstable. Please report all bug to the issues section. It is currently tested with python3.5 and python3.6, but it should run just fine on any python3.

Nearby in the ranking
Similar items