DeconvNetToolbox
gui.m File Reference

A gui that provides access to launchable experiments of various types and setting of their parameters. More...

Go to the source code of this file.

Functions

<> gui (fig_num)
 

A gui that provides access to launchable experiments of various types and setting of their parameters.


<> hexptype_Callback (source, eventdata)
 Callback for experiment type.
<> hnum_layers_Callback (source, eventdata)
 Callback for setting the number of layers to use.
<> hnum_phases_Callback (source, eventdata)
 Callback for setting the number of layers to use.
<> hinit1stcheck_Callback (hObject, eventdata)
 Callback for if you want to initialize the first layer when using Yann's two layer inference method.
<> hcolorcheck_Callback (source, eventdata)
 Callback for if you want to use color images.
<> hzeromeancheck_Callback (hObject, eventdata)
 Callback for if you want to normalize the images to zero mean (or other such normalizations).
<> hsquarecheck_Callback (hObject, eventdata)
 Callback for if you want to normalize the images to zero mean (or other such normalizations).
<> hconstrastcheck_Callback (source, eventdata)
 Callback for if you want to Contrast Normalize (whiten) the iamges.
<> himageordercheck_Callback (hObject, eventdata)
 Callback for randomly ordereing input images during training/inference.
<> hcompthreads_Callback (hObject, eventdata, handles)
 Callback for setting the number of computation threads for MATLAB to use.
<> hgpucheck_Callback (hObject, eventdata)
 Callback for updating the filters in batches (of images).
<> hemail_Callback (hObject, eventdata, handles)
 Callback for setting the number of computation threads for MATLAB to use.
<> hsuppresswarn_Callback (hObject, eventdata)
 Callback for if you want to initialize the first layer when using Yann's two layer inference method.
<> hkeypresscheck_Callback (hObject, eventdata)
 Callback for randomly ordereing input images during training/inference.
<> hthreshold_Callback (hObject, eventdata, handles)
 Callback for thresholding the gradients at a certain level.
<> hminiterations_Callback (hObject, eventdata, handles)
 Callback for setting the number of conjugate gradient updates.
<> hdisperror_Callback (hObject, eventdata, handles)
 Callback for displaying errors in standard out.
<> hramplambda_Callback (hObject, eventdata, handles)
 Callback for setting a nowmalization on beta.
<> hbatchsize_Callback (hObject, eventdata, handles)
 Callback for setting the number of images to use in the batches.
<> hframes1_Callback (hObject, eventdata, handles)
 Callback for setting the kappa coefficient on layer 1 regularizations.
<> hframes2_Callback (hObject, eventdata, handles)
 Callback for setting the kappa coefficient on layer 1 regularizations.
<> hframes3_Callback (hObject, eventdata, handles)
 Callback for setting the kappa coefficient on layer 1 regularizations.
<> hphasespecifictable_Callback (source, eventdata)
 Callback for setting the phase specific of all layer.
<> hlayerspecifictable_Callback (source, eventdata)
 Callback for setting the lambda coefficients of all layer.
<> hposz_Callback (hObject, eventdata)
 Callback for randomly ordereing input images during training/inference.
<> hlambdatable_Callback (source, eventdata)
 Callback for setting the lambda coefficients of all layer.
<> halphatable_Callback (source, eventdata)
 Callback for setting the alpha coefficients of all layers.
<> hgammatable_Callback (source, eventdata)
 Callback for setting the Gamma coefficients of all layer.
<> hkappatable_Callback (source, eventdata)
 Callback for setting the Kappa coefficients of all layer.
<> hBinitialtable_Callback (source, eventdata)
 Callback for setting the Binitial coefficients of all layer.
<> hBmultipliertable_Callback (source, eventdata)
 Callback for setting the Bmultiplier coefficients of all layer.
<> hnotes_Callback (hObject, eventdata, handles)
 Callback for setting the coefficient weighting the updated image at each iteration against the input image.
<> hFabovetable_Callback (source, eventdata)
 Callback for setting the Fabove of all layer.
<> htime_layer_Callback (hObject, eventdata, handles)
 Callback for setting the kappa coefficient on layer 1 regularizations.
<> hprev_frames_Callback (hObject, eventdata, handles)
 Callback for setting the number of time steps in past for video modelling.
<> hgen_frames_Callback (hObject, eventdata, handles)
 Callback for setting the number of time steps in past for video modelling.
<> hinfer_using_Callback (hObject, eventdata, handles)
 Callback for setting the number of time steps in past for video modelling.
<> hlimittimecheck_Callback (hObject, eventdata)
 Callback for updating the filters in batches (of images).
<> hpsi_Callback (hObject, eventdata, handles)
 Callback for setting the psi coefficient on z0 feature map reconstructions.
<> hzsize_Callback (hObject, eventdata, handles)
 Callback for setting the size of the z0 feature maps.
<> htrainz0check_Callback (hObject, eventdata)
 Callback for setting whether to use the z0 feature maps or not.
<> hupdate_inputcheck_Callback (hObject, eventdata)
 Callback for setting if the images is updated at each iteration.
<> hlambda_input_Callback (hObject, eventdata, handles)
 Callback for setting the coefficient weighting the updated image at each iteration against the input image.
<> hmodeldirectory_Callback (hObject, eventdata, handles)
 Callback for setting where the model is located.
<> hmodeldirectorytext_Callback (hObject, eventdata, handles)
 Callback for opening directory in gui.
<> hdatadirectory_Callback (hObject, eventdata, handles)
 Callback for setting where data is located.
<> hdatadirectorytext_Callback (hObject, eventdata, handles)
 Callback for open directory finding gui.
<> hsavedirectory_Callback (hObject, eventdata, handles)
 Callback for setting where to save the results.
<> hsavedirectorytext_Callback (hObject, eventdata, handles)
 Callback for opening directory in gui.
<> hnoisetype_Callback (source, eventdata)
 Callback for setting the type of noise to add to the input images.
<> hplotcheck_Callback (hObject, eventdata)
 Callback for setting if you want to plot the results.
<> hsavecheck_Callback (hObject, eventdata)
 Callback for setting if you want to save the results.
<> hmachine_Callback (source, eventdata)
 Callback for setting the location to run the experiment.
<> hhistory_Callback (source, eventdata)
 Callback for closing all windows except the gui.
<> hclose_except_Callback (source, eventdata)
 Callback for closing all windows except the gui.
<> hload_Callback (source, eventdata)
 Callback for running cluster_usage.
<> hclear_last_results_Callback (source, eventdata, handles)
 Callback for clearning the last experiment.
<> hdefaults_Callback (source, eventdata, handles)
 Callback for setting the parameters to defaults.
<> hsave_Callback (source, eventdata)
 Callback for saving the model parameters to run in a separate window (at a later time).
<> hrun_Callback (source, eventdata)
 Callback for opening a new window to run the saved parameter's experiment.
<> update_visibility ()
 Update the visibility of gui components based on the experiment and settings.
<> hupdate_conmats_Callback (source, eventdata)
 Updates the number of mpas at each layer based on the connectivity matrices.
<> update_defaults ()
 Updates the gui with the model parameters.

Detailed Description

A gui that provides access to launchable experiments of various types and setting of their parameters.

This gui seems to work for most MATLAB releases that support guis except R2011a currently (controls are not visible for some reason). This function was created specifically for my setup and therefore may not work 100 percent of the time on various setups. Note: you must set the paths at the top of this file to the start paths of where to save the results to and where you stored the images you want to run on (just the start paths must be set here, the rest of the paths can be set in the gui).

Instructions for using the GUI: this gui allows you to set any parameters necessary to train a Deconvolutional Network using this toolbox. When the gui opens it loads a file named gui_has_set_the_params.mat in the GUI/ directory. This store a struct called model which holds all the parameters the gui sets. Clicking of the fields will modify the value in the model variable but it does not save back to gui_has_set_the_params.mat each time you change a parameter. To save out to this file click the 'Save' button in the lower right corner of the gui. Once saved, you can run the experiments of choice from any machine that can access that gui_has_set_the_params.mat file (and has it on it's path). Once saved, the parameters are loaded from this file the next time the gui is opened as well.

When any of the parameters are changed (enter was hit on a field or a drop down item was selected for example), then the description at the top right of the gui will update to describe what that parameter is means in the model. So a handy way to determine what each parameter does is to just enter the same value back in a field and hit enter to see this description. The directory buttons in the bottom left corner can be used to visually select a directory instead of typing in the long strings in the fields to the right. Any buttons that may do harm pop up a warning information message first as well.

Author:
Matthew Zeiler
Date:
Mar 11, 2010
(Click for related files):

A gui that provides access to launchable experiments of various types and setting of their parameters.

Definition in file gui.m.


Function Documentation

<> gui ( fig_num  )

A gui that provides access to launchable experiments of various types and setting of their parameters.

Parameters:
fig_numAn optional figure number to create the gui in. Defaults to 999.
<> halphatable_Callback ( source  ,
eventdata   
)

Callback for setting the alpha coefficients of all layers.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hbatchsize_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the number of images to use in the batches.

This has no effect if batch_filters is set to FALSE.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hBinitialtable_Callback ( source  ,
eventdata   
)

Callback for setting the Binitial coefficients of all layer.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hBmultipliertable_Callback ( source  ,
eventdata   
)

Callback for setting the Bmultiplier coefficients of all layer.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hclear_last_results_Callback ( source  ,
eventdata  ,
handles   
)

Callback for clearning the last experiment.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hclose_except_Callback ( source  ,
eventdata   
)

Callback for closing all windows except the gui.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hcolorcheck_Callback ( source  ,
eventdata   
)

Callback for if you want to use color images.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hcompthreads_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the number of computation threads for MATLAB to use.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hconstrastcheck_Callback ( source  ,
eventdata   
)

Callback for if you want to Contrast Normalize (whiten) the iamges.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hdatadirectory_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting where data is located.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hdatadirectorytext_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for open directory finding gui.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hdefaults_Callback ( source  ,
eventdata  ,
handles   
)

Callback for setting the parameters to defaults.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hdisperror_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for displaying errors in standard out.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hemail_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the number of computation threads for MATLAB to use.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hexptype_Callback ( source  ,
eventdata   
)

Callback for experiment type.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hFabovetable_Callback ( source  ,
eventdata   
)

Callback for setting the Fabove of all layer.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hframes1_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the kappa coefficient on layer 1 regularizations.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hframes2_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the kappa coefficient on layer 1 regularizations.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hframes3_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the kappa coefficient on layer 1 regularizations.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hgammatable_Callback ( source  ,
eventdata   
)

Callback for setting the Gamma coefficients of all layer.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hgen_frames_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the number of time steps in past for video modelling.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hgpucheck_Callback ( hObject  ,
eventdata   
)

Callback for updating the filters in batches (of images).

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hhistory_Callback ( source  ,
eventdata   
)

Callback for closing all windows except the gui.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> himageordercheck_Callback ( hObject  ,
eventdata   
)

Callback for randomly ordereing input images during training/inference.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hinfer_using_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the number of time steps in past for video modelling.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hinit1stcheck_Callback ( hObject  ,
eventdata   
)

Callback for if you want to initialize the first layer when using Yann's two layer inference method.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hkappatable_Callback ( source  ,
eventdata   
)

Callback for setting the Kappa coefficients of all layer.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hkeypresscheck_Callback ( hObject  ,
eventdata   
)

Callback for randomly ordereing input images during training/inference.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hlambda_input_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the coefficient weighting the updated image at each iteration against the input image.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hlambdatable_Callback ( source  ,
eventdata   
)

Callback for setting the lambda coefficients of all layer.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hlayerspecifictable_Callback ( source  ,
eventdata   
)

Callback for setting the lambda coefficients of all layer.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hlimittimecheck_Callback ( hObject  ,
eventdata   
)

Callback for updating the filters in batches (of images).

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hload_Callback ( source  ,
eventdata   
)

Callback for running cluster_usage.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hmachine_Callback ( source  ,
eventdata   
)

Callback for setting the location to run the experiment.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hminiterations_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the number of conjugate gradient updates.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hmodeldirectory_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting where the model is located.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hmodeldirectorytext_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for opening directory in gui.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hnoisetype_Callback ( source  ,
eventdata   
)

Callback for setting the type of noise to add to the input images.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hnotes_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the coefficient weighting the updated image at each iteration against the input image.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hnum_layers_Callback ( source  ,
eventdata   
)

Callback for setting the number of layers to use.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hnum_phases_Callback ( source  ,
eventdata   
)

Callback for setting the number of layers to use.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hphasespecifictable_Callback ( source  ,
eventdata   
)

Callback for setting the phase specific of all layer.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hplotcheck_Callback ( hObject  ,
eventdata   
)

Callback for setting if you want to plot the results.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hposz_Callback ( hObject  ,
eventdata   
)

Callback for randomly ordereing input images during training/inference.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hprev_frames_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the number of time steps in past for video modelling.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hpsi_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the psi coefficient on z0 feature map reconstructions.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hramplambda_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting a nowmalization on beta.

(not used)

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hrun_Callback ( source  ,
eventdata   
)

Callback for opening a new window to run the saved parameter's experiment.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hsave_Callback ( source  ,
eventdata   
)

Callback for saving the model parameters to run in a separate window (at a later time).

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hsavecheck_Callback ( hObject  ,
eventdata   
)

Callback for setting if you want to save the results.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hsavedirectory_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting where to save the results.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hsavedirectorytext_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for opening directory in gui.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hsquarecheck_Callback ( hObject  ,
eventdata   
)

Callback for if you want to normalize the images to zero mean (or other such normalizations).

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hsuppresswarn_Callback ( hObject  ,
eventdata   
)

Callback for if you want to initialize the first layer when using Yann's two layer inference method.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hthreshold_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for thresholding the gradients at a certain level.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> htime_layer_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the kappa coefficient on layer 1 regularizations.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> htrainz0check_Callback ( hObject  ,
eventdata   
)

Callback for setting whether to use the z0 feature maps or not.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hupdate_conmats_Callback ( source  ,
eventdata   
)

Updates the number of mpas at each layer based on the connectivity matrices.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hupdate_inputcheck_Callback ( hObject  ,
eventdata   
)

Callback for setting if the images is updated at each iteration.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hzeromeancheck_Callback ( hObject  ,
eventdata   
)

Callback for if you want to normalize the images to zero mean (or other such normalizations).

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> hzsize_Callback ( hObject  ,
eventdata  ,
handles   
)

Callback for setting the size of the z0 feature maps.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> update_defaults ( )

Updates the gui with the model parameters.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
<> update_visibility ( )

Update the visibility of gui components based on the experiment and settings.

Parameters:
sourcethe gui component that called this.
eventdatarelates to the event of activating the gui component.
 All Files Functions Variables Typedefs Enumerations Enumerator Defines