All Projects β†’ lucko515 β†’ cnn-raccoon

lucko515 / cnn-raccoon

Licence: Apache-2.0 license
Create interactive dashboards for your Convolutional Neural Networks with a single line of code!

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to cnn-raccoon

samples
A collection of sample dashboards, custom labels, mustaches, SQL scripts and PowerShell scripts to help you get the most out of SquaredUp. #community-powered
Stars: ✭ 17 (-45.16%)
Mutual labels:  dashboards
histoslider
πŸ“Š A D3 based histogram slider component for React.
Stars: ✭ 31 (+0%)
Mutual labels:  dashboards
dash-spa
Dash Single Page Application (SPA) Framework
Stars: ✭ 28 (-9.68%)
Mutual labels:  dashboards
ansible
Ansible playbook automation for pfelk
Stars: ✭ 23 (-25.81%)
Mutual labels:  dashboards
trulens
Library containing attribution and interpretation methods for deep nets.
Stars: ✭ 146 (+370.97%)
Mutual labels:  explainable-ml
trickster
Open Source HTTP Reverse Proxy Cache and Time Series Dashboard Accelerator
Stars: ✭ 1,753 (+5554.84%)
Mutual labels:  dashboards
dlime experiments
In this work, we propose a deterministic version of Local Interpretable Model Agnostic Explanations (LIME) and the experimental results on three different medical datasets shows the superiority for Deterministic Local Interpretable Model-Agnostic Explanations (DLIME).
Stars: ✭ 21 (-32.26%)
Mutual labels:  explainable-ml
datasette-dashboards
Datasette plugin providing data dashboards from metadata
Stars: ✭ 65 (+109.68%)
Mutual labels:  dashboards
dash.js
βš’οΈ Reactive UI components and framework for modular dashboards.
Stars: ✭ 74 (+138.71%)
Mutual labels:  dashboards
PyTelTools
Python Telemac Tools for post-processing tasks (includes a workflow)
Stars: ✭ 24 (-22.58%)
Mutual labels:  visualization-tools
mllp
The code of AAAI 2020 paper "Transparent Classification with Multilayer Logical Perceptrons and Random Binarization".
Stars: ✭ 15 (-51.61%)
Mutual labels:  explainable-ml
neuro-lab.github.io
πŸ“Š NΔ–URO is 100% pure frontend dashboard
Stars: ✭ 17 (-45.16%)
Mutual labels:  dashboards
django-sql-dashboard
Django app for building dashboards using raw SQL queries
Stars: ✭ 369 (+1090.32%)
Mutual labels:  dashboards
responsible-ai-toolbox
This project provides responsible AI user interfaces for Fairlearn, interpret-community, and Error Analysis, as well as foundational building blocks that they rely on.
Stars: ✭ 615 (+1883.87%)
Mutual labels:  explainable-ml
ProtoTree
ProtoTrees: Neural Prototype Trees for Interpretable Fine-grained Image Recognition, published at CVPR2021
Stars: ✭ 47 (+51.61%)
Mutual labels:  explainable-ml
Deep XF
Package towards building Explainable Forecasting and Nowcasting Models with State-of-the-art Deep Neural Networks and Dynamic Factor Model on Time Series data sets with single line of code. Also, provides utilify facility for time-series signal similarities matching, and removing noise from timeseries signals.
Stars: ✭ 83 (+167.74%)
Mutual labels:  explainable-ml
Mikrotik API
Mikrotik Dashboard
Stars: ✭ 46 (+48.39%)
Mutual labels:  dashboards
angular-fusioncharts
Angular Component for FusionCharts JavaScript Charting Library
Stars: ✭ 53 (+70.97%)
Mutual labels:  dashboards
dashboard-extension-simple-table
β›” DEPRECATED. This project was moved to a new repository. Visit https://github.com/DevExpress/dashboard-extensions to find an updated version.
Stars: ✭ 37 (+19.35%)
Mutual labels:  dashboards
antz
ANTz immersive 3D data visualization engine
Stars: ✭ 25 (-19.35%)
Mutual labels:  visualization-tools

CNN Raccoon v0.9.5

Downloads

Create interactive dashboards for your Convolutional Neural Networks (CNNs) with a single line of code!


CNN Raccoon helps you inspect what's going on inside your Convolutional Neural Networks in a visual way that's easy to understand. Oh! Did I mention that you don't need to change your code at all? And that you can do all of this with a single line of Python code?

How to use it?

TensorFlow mode

When using CNN Raccoon for a TensorFlow (Keras) based model, you'll implement your model in the same way as before. To load images from your dataset into CNN Raccoon, convert them to np.array object. Check an example below for the CIFAR10 dataset.

model = tf.keras.models.Sequential([ ... ])
model.compile(...)
# You define and compile model in the same way

# Let's use Cifar-10 for this example, but can be any dataset
from tensorflow.keras.datasets import cifar10

(X_train, y_train), (X_test, y_test) = cifar10.load_data()

# CNN Raccoon magic!
from cnn_raccoon import inspector

# In a single line of code send your model to the Inspector
inspector(model=model, images=X_train[:10], number_of_classes=10, engine="keras")

PyTorch mode

If you decide to use CNN Raccoon for your PyTorch model, you'll implement your model in the same way as before. To load images from your dataset into CNN Raccoon, convert them to the PyTorch.Variable object. The best way to achieve this is by using PyTorch's dataset loader. Check an example below for the CIFAR10 dataset.

# For PyTorch you define the model in the same way as before
model = Net()

# Load dataset using data loaders
transform = transforms.Compose(
    [ transforms.ToTensor(),
     transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))])

trainset = torchvision.datasets.CIFAR10(root='./data', train=True,
                                        download=True, transform=transform)
trainloader = torch.utils.data.DataLoader(trainset, batch_size=4,
                                          shuffle=True, num_workers=2)
dataiter = iter(trainloader)
images, labels = dataiter.next()

# CNN Raccoon magic!
from cnn_raccoon import inspector

# In a single line of code send your model to the Inspector
inspector(model=model, images=images, number_of_classes=10, engine="keras")

Interactive network graph

This library generates an interactive graph of your CNN directly in a browser. This graph allows you to click and inspect each layer inside your model.

Weights inspector

Visualization of each Convolutional filter from your network

GradCam

Based on the paper Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization .

To learn more about GradCam and Class Activation maps I do suggest reading through this post.

Siliency Maps

Based on the paper Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Maps .

To learn more about Saliency Maps I do suggest reading through this post.

Installation

Installation with pip

You can install CNN Raccoon directly from the PyPi repository using pip (or pip3):

pip install cnn-raccoon

Manual installation

If you prefer to install it from source:

  1. Clone this repository
git clone https://github.com/lucko515/cnn-raccoon
  1. Go to the library folder and run
pip install .

Requirements

PyTorch version

Install all requirements from requirements.txt file

pip install -r requirements.txt

After installing base, requirements make sure you have PyTorch >1.5.0 version. Here is the PyTorch installation guide: https://pytorch.org/get-started/locally/

TensorFlow version

Install all requirements from requirements.txt file

pip install -r requirements.txt

After installing base, requirements make sure you have TensorFlow (w/ Keras API) >2.0.0 version. Here is the TensorFlow (w/ Keras API) installation guide: https://www.tensorflow.org/install

TODO

If you want to contribute to the CNN Raccoon, here is what's on the TODO list:

  • Silency Map for the TensorFlow mode
  • Make dashboard responsive on smaller screens (< 1100px)
  • Interactive CNN Builder
    • Drag n Drop network builder

Contact

Add me on LinkedIn

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