Skip to content

An implementation of feature visualizer for pytorch tensor, based on Matplotlib.

Notifications You must be signed in to change notification settings

Yukun-Huang/FeatureVisualizer-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FeatureVisualizer-pytorch

An implementation of feature visualizer for pytorch tensor.

Prerequisites

  • python >= 3.6

  • pytorch

  • matplotlib

  • numpy

Usage

# Initialization
FV = FeatureVisualizer()

# Load data
image = load_image(image_path)
feat = net(image)

# Visualize features
FV.viz(feat, save_path=feat_path)

# Mix images and features
FV.mix(image_path, feat_path, save_path=mix_path)

Demo

python demo.py

About

An implementation of feature visualizer for pytorch tensor, based on Matplotlib.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages