Skip to main content

Keras MRI

Keras MRI is a neural network visualization tool for Keras. This is still in Beta and some networks (e.g. RNNs and 3D CNNs) and types of layers are not yet supported.

Install

pip install keras-mri

Usage

import kmri

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

model = Sequential([
    Dense(8, input_shape=(3,))
])

input_batch = [[1,2,3], [7,8,9]]
kmri.visualize_model(model, input_batch)

Once this is running navigate to http://127.0.0.1:5000/

Examples

The examples folder contains models that demonstrate keras-mri usage. To run one of the examples run the following from one of the example folders

pip install -r requirements.txt
python main.py

chrome-dino

Simple reinforcement learning model that learned to play the dinosaur game in chrome. Demonstrates visualizing a convolutional neural network with multiple inputs. This is based on chrome-dino-ai.

network

img-classifier

Demonstrates using keras-mri to visualize standard image classifieres (VGG, MobileNet, and ResNet).

network

Development

Install package locally

pip install -e .

Deploy

# increase version number in setup.py
# Move unrelease changes to next version in changelog.md
# commit, tag with vx.x.x, and push
# Delete build, dist, and egg-info
python setup.py sdist bdist_wheel
python -m twine upload dist/*

Metadata

Release files for keras-mri 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for keras-mri 0.1.1
File Size Uploaded
keras-mri-0.1.1.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for keras-mri 0.1.1
File Interpreter ABI Platform
keras_mri-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.0 MB

Release files / keras-mri-0.1.1.tar.gz

Download URL keras-mri-0.1.1.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
33c89c7ea3b627bd12453d2e1e7298cad9e26c10655326b116740bcd19e6fe12
BLAKE2b-256 checksum
How to use checksums
81cbb0972efff2bf50c7ee83158bfc9551989a22922d6588614e7b5e57ea38ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Release files / keras_mri-0.1.1-py3-none-any.whl

Download URL keras_mri-0.1.1-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0b9d63b5d00f50caa7fd384798f5b6ff5b21177de73006d592ff147eca510b43
BLAKE2b-256 checksum
How to use checksums
38784c780cae755e837310acec2206f617d4ac5f5e63feba52db6a29caf479a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page