# VisionPro Deep Learning Service Application

The VisionPro Deep Learning Service allows remote 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. or runtime operations of VisionPro Deep Learning, and multiple clients can access the service. As a training service, it hosts workspaces and can perform training. As a runtime service, it hosts runtime workspaces and processing. When using the client/server functionality, the VisionPro Deep Learning Service application supports active connections, is run on your server device, and must be run with administrator privileges.

The application is located at:

C:\Program Files\Cognex\VisionPro Deep Learning\4.1\Service

Note: If you do not run the service as an administrator, you will get an error and be unable to connect.
Note: For more information about configuring the Deep Learning Service application, see Configuration Prerequisites.

## VisionPro Deep Learning Client/Server Functionality

The VisionPro Deep Learning client/server functionality allows you to use the training and runtime implementations of the VisionPro Deep Learning software on multiple PCs, through the use of a server/client model A specific spatial arrangement of a set of features (Blue Locate and Blue Read tools only.) During a post-processing step, the Blue Locate and Blue Read tools can fit all of the features detected in an image to the models defined for the tool. The overall pose and identity of the model is then returned.. With this model, you define a device as your server, and then multiple PCs can be configured as clients that connect to the server. During the setup of a VisionPro Deep Learning project, the Workspace resides on the server, and the client connects to the server, using the Workspaces stored on the server. In this scenario, the clients do not need to have a Security Key; only the server must have a Security Key attached.

This functionality gives you the option of using a remote service for runtime inference and/or training, instead of using the GPU on your local PC. This can be useful if you have a more powerful GPU on the server, or perhaps you do not have a GPU installed locally.

When configured, up to 4 clients can be used for deployment operation, and up to 8 clients can connect for development purposes. Configuring the VisionPro Deep Learning client/server functionality involves the following:

1. Install the VisionPro Deep Learning software on the server and client PCs.
2. Configure the server and client devices.
3. Manage the workspace(s) on the server.
4. On the server, launch the Deep Learning Service application.
5. Connect to the server with the client PCs.

Note: The VisionPro, Designer and VisionPro Deep Learning software require that a valid Security Key be installed directly to PCs running the software during all phases of operation (programming, processing, training, testing, etc.). Any attempts to temporarily remove, substitute, or share a Security Key may cause your system to operate incorrectly, and may result in the loss The Loss refers to validation loss, which is a metric that shows how a tool performs on the validation set. Loss can have a value between 0 and 1. The VisionPro Deep Learning application calculates the Loss based on the errors the tool makes when processing the images in the validation set. During training, you can check the Loss in real-time using the Loss Inspector. of data.
Note: When VisionPro Deep Learning is configured for the Client/Server functionality, and a computer has been configured as a server, the Security Key must be attached to the server, but the client(s) does not need a Security Key.
Note: The server/client functionality requires the use of the Advanced Cognex Deep Learning license.

## Managing Workspaces in the Server/Client Model

In the VisionPro Deep Learning client/server model, the workspaces and image databases are stored on the server, and the clients connect to the server and edit the workspaces that are stored on the server. Multiple clients can connect to the server (at the same time) and access the workspaces residing on the server. When multiple clients are connected to the server, there is a lock mechanism to prevent multiple users from making changes to the same workspace, at the same time.

A previously saved workspace on a client device can be uploaded to the server from the client, using the Import dialog. Once the workspace has been exported from the client to the server, the workspace will be stored on the server.