Defines ParkNet-DNN module, i.e., ParkNet-DNN configuration and loading.
◆ dwParkNetParams
Data Fields |
const void * |
networkCustomData |
Custom network data. Must be set if custom model is selected and available. |
dwParkNetModel |
networkModel |
ParkNet network model. Default is DW_PARKNET_MODEL_DEFAULT. |
dwPrecision |
networkPrecision |
ParkNet network precision. Default is DW_PRECISION_FP32. |
◆ dwParkNetHandle_t
Handle to a ParkNet object.
Definition at line 59 of file ParkNet.h.
◆ dwParkNetModel
ParkNet network models to be loaded by ParkNet module.
Enumerator |
---|
DW_PARKNET_MODEL_DEFAULT | |
DW_PARKNET_MODEL_COUNT | |
DW_PARKNET_MODEL_CUSTOM | Loads custom ParkNet model if available.
Network name must be provided in networkCustomData field in dwParkNetParams
|
Definition at line 62 of file ParkNet.h.
◆ dwParkNet_getDNNMetaData()
Returns the DNN metadata.
- Parameters
-
[out] | metaData | Pointer to metaData struct. |
[in] | obj | The handle to ParkNet. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT
◆ dwParkNet_getInputBlobSize()
Gets the size of the input blob.
- Parameters
-
[out] | blobSize | size of input blob. |
[in] | obj | - handle for the Parknet object. |
- Returns
- DW_SUCCESS, DW_INVALID_ARGUMENT
◆ dwParkNet_getOutputBlobSize()
Gets the size of the output blob.
- Parameters
-
[out] | blobSize | size of output blob. |
[in] | obj | - handle for the Parknet object. |
- Returns
- DW_SUCCESS, DW_INVALID_ARGUMENT
◆ dwParkNet_initDefaultParams()
Initializes ParkNet parameters with default values.
- Parameters
-
[out] | params | ParkNet default parameters. |
[in] | ctx | The handle to the context. |
- Returns
- DW_SUCCESS, DW_INVALID_ARGUMENT
- Note
- Default precision depends on the current GPU.
◆ dwParkNet_initialize()
Initializes ParkNet module.
- Parameters
-
[out] | ParkNetHandle | A pointer to ParkNet handle to be initialized. |
[in] | ParkNetParams | ParkNet parameters |
[in] | ctx | The handle to the context. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT
- Note
- If ParkNet module is to be loaded on a non-default GPU Device, the initialization must take place after
dwContext_selectGPUDevice
.
◆ dwParkNet_release()
Releases the ParkNet module.
- Parameters
-
[in] | obj | The handle to ParkNet. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST
- Note
- This method renders the handle unusable.
◆ dwParkNet_reset()
Resets ParkNet.
- Parameters
-
[in] | obj | Handle to ParkNet. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST