Skip to content

MorrisWitthein/xai-viz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAI Viz

XAI Viz is a visualization tool for convolutional Keras models. It uses Feature Visualization and Grad-CAM to create visual representations of hidden layers of convolutional neural networks.

Features

  • Generate Feature Visualizations for filters or individual neurons.
  • Investigate filter activations at spatial locations on your input image.
  • Generate visual representations of hidden layers using Feature Visualization.
  • Show the attribution to the models prediction of spatial locations on these representations using Grad-CAM.
  • Form groups of activations using non-negative matrix factorization.
  • Visualize these groups using Feature Visualization and activation maps.

Installation

  • If your model requires special input preprocessing clone the repo and update the prepare_input function in backend.util to your needs.

  • After that install the requirements.txt and run the install script to generate an executable or simply run main.py.

  • This application is designed for and tested with python 3.7 and tensorflow 2.7.

Getting Started

  • Export your Keras model using tf.keras.models.save_model()
  • Start the tool and import your model
  • Generate/Import a dictionary containing Feature Visualizations for each filter in your model (generating may take some time depending on your models complexity)
  • Load an input and start visualizing

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages