← all repositories
infocusp/tf_cnnvis

X-ray goggles for your TensorFlow CNNs

Reconstruct what your convolutional network sees, layer by layer, then pipe it straight into TensorBoard.

tf_cnnvis
Not currently ranked — collecting fresh signals.
star history

What it does

tf_cnnvis is a diagnostic library for TensorFlow CNNs that reconstructs input images from layer activations and generates DeepDream-style visualizations. It wraps two established techniques—Zeiler & Fergus deconvolution reconstruction and Google’s DeepDream—into callable functions that log results to TensorBoard’s Images tab.

The interesting bit

The library treats layer selection as a bulk operation: pass 'r', 'p', or 'c' to reconstruct from all ReLU, pooling, or convolutional layers at once, rather than hand-picking individual tensors. For DeepDream, you target specific class indices in the classification layer and let the network hallucinate its own confident misinterpretations.

Key highlights

  • Three visualization modes: activation maps, deconvolution reconstruction, and DeepDream class maximization
  • Bulk layer targeting via string shortcuts ('r'/'p'/'c') or explicit layer names
  • Native TensorBoard integration—outputs appear under the Images tab without extra plumbing
  • Helper utilities for image normalization and grid layout of filter visualizations
  • Requires TensorFlow ≥ 1.8 (the README specifies this explicitly)

Caveats

  • Only two visualization techniques implemented; the README notes “so far,” suggesting stalled expansion
  • Setup instructions use sudo pip and reference Python 2-era tooling
  • Last meaningful activity appears to be 2017; compatibility with modern TensorFlow is untested in the sources

Verdict

Worth a look if you’re maintaining legacy TensorFlow 1.x models and need quick layer-wise sanity checks without building visualizations from scratch. Skip it if you’re on TF 2.x or want interactive, notebook-native exploration—this is a logging utility, not a debugging environment.

Frequently asked

What is infocusp/tf_cnnvis?
Reconstruct what your convolutional network sees, layer by layer, then pipe it straight into TensorBoard.
Is tf_cnnvis open source?
Yes — infocusp/tf_cnnvis is open source, released under the MIT license.
What language is tf_cnnvis written in?
infocusp/tf_cnnvis is primarily written in Python.
How popular is tf_cnnvis?
infocusp/tf_cnnvis has 779 stars on GitHub.
Where can I find tf_cnnvis?
infocusp/tf_cnnvis is on GitHub at https://github.com/infocusp/tf_cnnvis.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.