# Search Page

In the Search page, you can choose the parameters of the loaded tool, define their value ranges or values, and start the test. In this page, you can configure the following aspects of the parameter search:

- Combination of parameter set and value ranges

- For manual mode Manual mode is a grid-search mode in the Cognex Deep Learning Parameter Search utility, which runs tests on every selected parameter and their value ranges.:

  - Number of search trials

  - Optimized GPU memory

- For auto mode The auto mode is a grid-search mode in the Cognex Deep Learning Parameter Search utility, which automatically optimizes the search schedule by adopting a policy that obtain the best results with minimizing the search time. Given a list of parameters and their values, auto mode stops training the loaded tool and moves on to training with another parameter values when it finds no reason for better results from the current parameter values. Only Standard type tools support auto mode., the number of best results returned.

- If you have a previously saved Parameter Search Data XML file which contains a set of parameters and their values to be searched, click the Load button.

## Choosing Parameters and Assigning Value Ranges

After selecting the search mode, select a set of parameters and their value ranges. Several parameters are selected as default, depending on the loaded tool. You can modify the values of these parameters, remove them, or add other parameters to be searched.

In the Values column, click each cell to modify value ranges for the selected parameters.

You can add values to the parameters in the following ways:

- Type the specific values in the cell (Int, Double). To add multiple values for a parameter, use a whitespace character (Space key) as the separator between each value.
- Check the checkboxes in the cell (Enum, Boolean).
- Fill in the cell by the input form (Size, Interval, String, Dictionary).

Click the check button if you finished editing a cell. If you want to modify inserted values for a parameter, click the cell again you want to modify. If the cell is outlined in red, there is an error in the value input syntax.

Note:

When choosing parameters:

- The utility cannot search for the Type and Mode parameters. In the Search page, select an option for the Mode parameter from the dropdown.

- If you only choose processing parameters in the Parameter column, the currently loaded tool must be an already trained tool because processing parameters can only be tested on a trained tool. If all of the selected parameters are processing parameters, the utility skips training Training is the process that your tool, which is a neural network, is learning about the features (pixels) based on the labels you made. For example, a tool will learn the defect/normal pixels in each image based on the defect/normal labels you drew. The goal of the tool Training is learning enough to give the correct inspection results of whether an unseen image is defective or not. The key to training is to ensure that you include all possible variations within your training set, and that your images are accurately labeled. Training times vary by the application, tool setup and the GPU in the PC being used to train the network. during the search.

- After starting the search, the parameter values that you did not select are set to the default values set in the loaded workspace.

- If the utility decides to resize the views for a Standard type Green Classify tool, the change occurs before starting the search and the utility uses the new sizes consistently in every search throughout the search.

## Starting, Pausing and Stopping the Search

Click Start to start the search or to resume a paused search. The progress of the search is displayed at the bottom of the page. Click Pause to temporarily stop the search or click Stop to stop the search.

In auto mode, if you pause or stop a search, you can check the results generated so far on the Results tab.

In auto mode, you cannot pause the search at the beginning, while the utility tests the Patch Size (for Standard type Red Analyze tools). If you entered a single value for Patch Size or no values , the utility uses the entered value or the default value as the best value and skips this step.

## Length of the Search

The length of a search depends on many factors:

- The GPU and the number of GPUs

- The number of parameters and the number of parameter settings for each parameter

- The number of images

- The number of test runs

Each additional set of parameters and values makes the execution time exponentially longer.

Note: If you have multiple GPUs, along with multiple search, the searches are queued in parallel, and the utility starts the search on the next available GPU. For example, if you have a two-GPU system, and two searches, each search happens on a separate GPU, improving the performance of the search