A set of parameters is needed to define the network to be used. These parameters are defined in the dwPilotNetParams struct. The default parameters can be loaded with the following function
If a custom model needs to be used, then we can replace the networkModel
in the default params as follows:
Note that the default model supports only FP32.
The PilotNet DNN module can be initialized with the following call:
Once the module is initialized, dwPilotNetHandle_t can be used to initialize the Pilotnet Detector module.
To reset the PilotNet module:
To release the PilotNet module:
For a more detailed workflow, please refer to the PilotNet detector: PilotNet Sample.