DeconvNetToolbox
top_down_select.m File Reference

Uses the model struct in the workspace to visualize the filters in pixel space from models above by placing a single one in each of the top feature maps independtely and then reconstructing downwards. More...

Go to the source code of this file.


Detailed Description

Uses the model struct in the workspace to visualize the filters in pixel space from models above by placing a single one in each of the top feature maps independtely and then reconstructing downwards.

This is done from the top layer that is defined in the model struct's layer field.

You can change the layer to visualize by changing model.layer=... You can also change the type of visualization in a few ways. Setting NUM_MAXES in here changes number of max activation per feature map to visualize. Change the SELECT variable to 1 lets you click on a region of the image to select a single max activation and see what the filters look like using the pooling indices under that location.

Author:
Matthew Zeiler
Date:
Aug 20, 2010
Parameters (Must Set outside Script):
  • layer the top layer of the model.
  • recon_z# the top layer's feature maps.
  • pooled_indices# the top layer and below layers indices of Max pooling (if used).
  • model# the model struct for each layer containing all parameters of the layers. Particularly norm_types, norm_sizes, xdim, ydim, filter_size, z0_filter_size, TRAIN_Z0, conmats, num_feature_maps
  • F# the filters for a given layer.
  • z0# the z0 maps for a given layer.
  • COMP_THREADS the number of computation threads you want to use.
Parameters (Must Set in Script):
  • NUM_MAXES the number of max activations to visualize. (1 by default).
  • SELECT different options for visualization. If SELECT=0 (default) this finds the NUM_MAXES max activations in the dataset for each feature map. If SELECT=1 then a gui will allow you to select by hand which activations to show.
  • USE_POOLED if set to 1 it visualization starting at the pooled maps. If set to 0 (default) it visualization from the unpooled maps.
  • sample the image to visualize when SELECT>0. (defaults to 1).
(Click for related files):

Uses the model struct in the workspace to visualize the filters in pixel space from models above by placing a single one in each of the top feature maps independtely and then reconstructing downwards.

Definition in file top_down_select.m.

 All Files Functions Variables Typedefs Enumerations Enumerator Defines