Neural network visualization toolkit for tf.keras
Project description
tf-keras-vis
tf-keras-vis is a visualization toolkit for debugging tf.keras
models in Tensorflow2.0+.
Visualizations
Visualize Dense Layer
Visualize Convolutional Filer
Saliency Map and GradCAM
These features are based on ones of keras-vis, but tf-keras-vis APIs doesn't have compatibility with keras-vis, because we prioritized to get following features for our expriments.
- Support processing multiple images at a time as a batch
- Support tf.keras.Model that has multiple inputs (and, of course, multiple outpus too)
- Allow to use optimizers that embeded in tf.keras
Requirements
- Python 3.5-3.8
- tensorflow>=2.0
Installation
- PyPI
$ pip install tf-keras-vis tensorflow
- Docker (container that run Jupyter Notebook)
$ docker run -itd -p 8888:8888 keisen/tf-keras-vis:0.2.4
If you have GPU processors,
$ docker run -itd --runtime=nvidia -p 8888:8888 keisen/tf-keras-vis:0.2.4-gpu
You can find other images at Docker Hub.
Usage
Please see examples/attentions.ipynb, examples/visualize_dense_layer.ipynb and examples/visualize_conv_filters.ipynb for details.
Known Issues
- With InceptionV3, ActivationMaximization doesn't work well, that's, it might generate meanninglessly bulr image.
- With cascading model, Gradcam and Gradcam++ don't work well, that's, it might occur some error.
- Unsupport
channels-first
models and datas.
ToDo
- API documentations
- We're going to add some algorisms such as below.
- SmoothGrad: removing noise by adding noise (DONE)
- GradCAM++
- ScoreCAM
- Deep Dream
- Style transfer
Project details
Release history Release notifications | RSS feed
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.3.2.tar.gz
(11.1 kB
view hashes)
Built Distribution
Close
Hashes for tf_keras_vis-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac5a177ddb6761f76fe2d3376e87b41e419863a39e5845124c306f0dbfd0d203 |
|
MD5 | 9ce3225bbe02d29d764c56317ea80293 |
|
BLAKE2b-256 | 3e8756cb7a9d6348e5827bc1340863c647bc3ea3a95f02d5e8b0576a4c73c529 |