Skip to main content

Neural network visualization toolkit for tf.keras

Project description

tf-keras-vis

Downloads PyPI version Build Status License: MIT

tf-keras-vis is a visualization toolkit for debugging Keras models with Tensorflow2, but not original Keras.

The features of tf-keras-vis are based on keras-vis, but tf-keras-vis's APIs doesn't have compatibility with keras-vis's because, instead of getting it, we prioritized to get following features.

  • Support processing multipul images at a time as a batch
  • Support tf.keras.Model that has multipul inputs (and, of course, multipul outpus too)
  • Allow use optimizers that embeded in tf.keras

And then we will add some algorisms such as below.

Requirements

  • Python 3.5, 3.6 or 3.7
  • tensorflow>=2.0.0

Installation

  • PyPI
$ pip install tf-keras-vis tensorflow
  • Docker
$ docker pull keisen/tf-keras-vis:0.2.0

You can find other images (that's nvidia-docker images) at dockerhub.

Usage

Please see examples/attentions.ipynb, examples/visualize_dense_layer.ipynb and examples/visualize_conv_filters.ipynb.

  • Run Jupyter notebooks on Docker
$ docker run -it -v /PATH/TO/tf-keras-vis:/tf-keras-vis -p 8888:8888 keisen/tf-keras-vis:0.2.0 jupyter lab

Or, if you have GPU processors,

$ docker run -it --runtime=nvidia -v /PATH/TO/tf-keras-vis:/tf-keras-vis -p 8888:8888 keisen/tf-keras-vis:0.2.0-gpu jupyter lab

API Documentation

T.B.D.

Known Issues

  • With InceptionV3, ActivationMaximization doesn't work well, that's, it might generate meanninglessly bulr image.
  • With cascading model, Gradcam doesn't work well, that's, it might occur some error.
  • Unsupported channels-first models and datas.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tf-keras-vis-0.2.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tf_keras_vis-0.2.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file tf-keras-vis-0.2.1.tar.gz.

File metadata

  • Download URL: tf-keras-vis-0.2.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.3

File hashes

Hashes for tf-keras-vis-0.2.1.tar.gz
Algorithm Hash digest
SHA256 fbffd25f806dfcf57bd5b14911181f58f51bc7b1387ba3ed519b75cb10cbafc8
MD5 8a2b6d30dbc07d33760a959d94ba5724
BLAKE2b-256 af9eda2ac8b230daf7dce740fba737b8ec72a0f065f9ccf0e5fee108f174ab10

See more details on using hashes here.

File details

Details for the file tf_keras_vis-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: tf_keras_vis-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.3

File hashes

Hashes for tf_keras_vis-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 adbc9d02c2a506ca018f56ae1137622b61ecfbeaf2f298c6ddb0aad990b18743
MD5 ad0f866fe32e5c4d4237f870625c69bf
BLAKE2b-256 c256ff27d3241ee28b297f81616210a6a4feb0e78e08e7a53d2b384a912c3220

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page