Validate Vision Model
Now that you have trained a model, you can validate the model's performance on target by following the instructions on this page.
If you haven't already, click on the training session card for more information.
On the top right corner of the page, click on the "validate" button as indicated.
Select the "User Managed" option. Specify the name of the validation session and the model and the dataset for validation. The rest of the settings were kept as defaults. Click "Start Session" at the bottom to start the validation session.
The validation session card will appear like the following below. Each session has a session ID. Make a note of the session ID circled in red below. In this case it is v-1b51.
Once the validation session has been created, SSH into the platform and install the following dependencies.
Virtual Environment
To avoid re-installation of existing system packages, we recommend setting up a Python virtual environment
prior to running the pip installations below. Append --system-site-packages when creating the environment to include existing packages in the system. For example:
- Linux
python3 -m venv /path/to/myenv --system-site-packages - Windows
python -m venv /path/to/myenv --system-site-packages
Activate the environment via:
- Linux:
source /path/to/myenv/bin/activate - Windows:
/path/to/myenv/Scripts/activate
pip install edgefirst-validator
Next login to your account in EdgeFirst Studio by using the EdgeFirst Client which comes installed with the validator package. The command below will prompt you to enter your EdgeFirst Studio credentials.
edgefirst-client login
Once the validator is installed and authenticated, run validation using the following command. Replace the session ID specific to your session card.
edgefirst-validator --session-id v-1b51
If the model already exists in your system, you can run this command edgefirst-validator /path/to/mymodel.tflite --session-id v-1b51. Otherwise, the model will be downloaded as an artifact from the EdgeFirst Studio training session.
Once entered, the following validation progress should now be indicated in EdgeFirst Studio as shown below.
The completed session will look as follows with the status set to "Complete".
Once the validation session completes, you can view the validation metrics by clicking the "view validation session charts" button at the top right of the session card.
Now that you have validated the performance of the model, you can move forward to deploying the model on target.