Plotting functions#

Synthesis objects

These functions all are intended to help visualize the status and outputs of synthesis objects. The following accept all synthesis classes:

synthesis_imshow

Display image of synthesis object.

synthesis_histogram

Plot histogram of values of synthesis objects.

synthesis_status

Make a plot showing synthesis status.

The following accept Metamer / MetamerCTF and MADCompetition objects:

synthesis_loss

Plot synthesis loss.

synthesis_animate

Animate synthesis progress.

The following accept only objects of a single class.

Metamer / MetamerCTF

metamer_representation_error

Plot representation error showing how close we are to convergence.

MADCompetition

mad_imshow_all

Display all MAD Competition images.

mad_loss_all

Plot loss for full set of MAD Competiton instances.

Eigendistortion

eigendistortion_imshow_all

Display base image, eigendistortions alone, and eigendistortions added to the image.

Tensors

The following functions can be used to visualize torch.Tensor objects directly: images, videos, and model representations.

imshow

Show image(s), avoiding interpolation.

animshow

Animate video(s), avoiding interpolation.

pyrshow

Display steerable pyramid coefficients in orderly fashion.

plot_representation

Plot model representation.

stem_plot

Create a simple stem plot.

histogram

Plot histogram of values from tensor.

update_plot

Update the information in some axes (for an animation).