Synthesis helper functions#

These helper functions all are intended to help visualize the status and outputs of synthesis objects.

Metamer / MetamerCTF

plot_loss

Plot synthesis loss with log-scaled y axis.

display_metamer

Display metamer.

plot_pixel_values

Plot histogram of pixel values of target image and its metamer.

plot_representation_error

Plot distance ratio showing how close we are to convergence.

plot_synthesis_status

Make a plot showing synthesis status.

animate

Animate synthesis progress.

MAD Competition

display_mad_image

Display MAD image.

display_mad_image_all

Display all MAD Competition images.

plot_loss

Plot metric losses.

plot_loss_all

Plot loss for full set of MAD Competiton instances.

plot_pixel_values

Plot histogram of pixel values of reference and MAD images.

plot_synthesis_status

Make a plot showing synthesis status.

animate

Animate synthesis progress.

Eigendistortion

display_eigendistortion

Display specified eigendistortion added to the image.

display_eigendistortion_all

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