1 # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
3 @page pilotnet_usecase1 PilotNet Workflow
7 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
9 dwStatus dwPilotNet_initDefaultParams(dwPilotNetParams* pilotNetParams);
12 If a custom model needs to be used, then we can replace the `networkModel` in the default params as follows:
14 dwPilotNetParams pilotNetParams{};
15 dwPilotNet_initDefaultParams(&pilotNetParams);
16 pilotNetParams.networkModel = DW_PILOTNET_MODEL_CUSTOM;
17 pilotNetParams.networkCustomData = "path_to_pilotnet_model";
19 Note that the default model supports only FP32.
21 The PilotNet DNN module can be initialized with the following call:
23 dwStatus dwPilotNet_initialize(dwPilotNetHandle_t* pilotNetHandle,
24 const dwPilotNetParams* pilotNetParams,
25 dwContextHandle_t ctx);
28 Once the module is initialized, ::dwPilotNetHandle_t can be used to initialize the @ref pathperception_mainsection_pilotnetdetector module.
30 ## PilotNet Module Reset
32 To reset the PilotNet module:
34 dwStatus dwPilotNet_reset(dwPilotNetHandle_t obj);
37 ## PilotNet Module Release
39 To release the PilotNet module:
41 dwStatus dwPilotNet_release(dwPilotNetHandle_t obj);
44 For a more detailed workflow, please refer to the PilotNet detector: @ref dwx_pilotnet_sample.