Skip to content

Training Fusion Models

This tutorial describes the steps to train Fusion models in EdgeFirst Studio. For a tutorial to train ModelPack Vision models, see Training ModelPack. It is highly recommended for users to be familiar with the concepts and UI elements in EdgeFirst Studio as described in the EdgeFirst Studio: Overview.

Checkout our full video tutorial above as part of the EdgeFirst Studio Series to showcase the steps for running Fusion training in EdgeFirst Studio. Otherwise, follow along the steps shown below with section specific timestamps of the video.

Verify Dataset

First ensure the dataset is ready to be used for training. This means that the dataset is properly annotated and the dataset is properly split with training and validation samples. The tutorial Verifying Datasets will show what to look for in a dataset before deploying it for training.

Specify Project Experiments

From the projects page, choose the project that contains the dataset you plan to use. In this example, the project chosen is called "Spatial Perception" project. Next click the "Model Experiments" button as indicated in red.

Model Experiments
Model Experiments

Create Model Experiment

You will be greeted with the "Model Experiments" page. A new project wil not have any experiments as shown below. You will need to first create a model experiment. As mentioned in the EdgeFirst Studio: Overview, model experiments will contain both training and validation sessions.

Model Experiments Page
Model Experiments Page

Click on the "New Experiment" button as shown on the top right corner of the page.

New Experiment Button
New Experiment Button

Enter the name and the description of the experiment marked by the fields shown below. Click on the "Create New Experiment" button to create your experiment.

Experiment Fields
Experiment Fields

Your created experiment will appear like the following below. At the start, this experiment will contain zero training and validation sessions. The next step will show how to start your first training session on this experiment using the dataset in the project.

Created Experiment
Created Experiment

Create Training Session

In the experiment card, click the "Training Sessions" button as indicated in red below.

Training Sessions
Training Sessions

You will be greeted to the "Training Sessions" page as shown below.

Training Sessions Page
Training Sessions Page

Start a training session by clicking on the "New Session" button on the top right corner of the page.

New Session Button
New Session Button

You will be greeted with the training session configuration window. In this window, specify the "Trainer Type" to "EdgeFirst Fusion" and provide a name and description of the training session as shown below. Next specify the dataset to be used with training and validation partitions. In this example, the dataset specified is the "Raivin Ultra Short 25.03 (Copy)" dataset. Next specify the training parameters. By default, the model will be trained using both the Camera and the Radar sensors. However, you can specify one of the sensors turned off. This model will output an occupancy grid highlighting the positions of people in world coordinates. Additional information on these parameters are provided by hovering over the info buttons indicated in red below.

Note

For an indoor setting, the "Radar Range Mode" is typically set to "Ultra Short (9m)" and the "Object Detection Range" is set to 9 meters. This is the maximum range of detection, further distances are ignored.

For more information on available "Data Augmentations" please see Vision Augmentations.

Training Session Fields
Training Session Fields

Once the configuration have been made, go ahead and click on the "Start Session" buttin on the bottom right of the window. This will start the training session which will train the model for the number of epochs specified.

Session Progress

Once the training session has started, the progress with the stages will be shown on the left and additional information and status is shown on the right.

Training Session
Training Session

Completed Session

The completed session will look as follows with the status set to "Complete".

Completed Session
Completed Session

The attributes of the training session are labeled below.

Training Session Attributes
Training Session Attributes

Training Outcomes

Training Metrics

You can view the training charts by clicking the "View Training Charts" button on the top of the session card.

Training Charts
Training Charts

You can go back to the training session card by pressing the "Back" button as indicated in red below on the top left corner of the page.

Back to the Session Card
Back to the Session Card

Trained Models

The trained model artifacts can be downloaded by clicking the "View Additional Details" button on the training session card in EdgeFirst Studio. This will open the session details and the models are listed under the "Artifacts" tab as shown below. Click on the downward arrow indicated in red to download the models to your PC.

Session Details Artifacts
session artifacts

It is also possible to compare the training metrics for multiple sessions. See Training Sessions in the EdgeFirst Studio Overview for further details.

Info

You can visualize the architecture of these models using https://netron.app/.

Next Steps

Now that you have generated your Fusion model, follow these next steps for validating your Fusion model.