Back to FabImage Deep Learning website
You are here: Start » Computer Vision » Deep Learning » DL_SegmentInstances_Deploy_Deprecated

DL_SegmentInstances_Deploy_Deprecated
Header: | FILDL.h |
---|---|
Namespace: | fil |
Module: | DL_IS |
Loads a deep learning model and prepares its execution on a specific target device.
Syntax
void fil::DL_SegmentInstances_Deploy_Deprecated ( const fil::SegmentInstancesModelDirectory& inModelDirectory, const ftl::Optional<fil::DeviceKind::Type>& inDeviceType, const int inDeviceIndex, const ftl::Optional<int>& inMaxObjectsCountHint, fil::SegmentInstancesModelId& outModelId )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inModelDirectory | const SegmentInstancesModelDirectory& | A Segment Instances model stored in a specific disk directory. | ||
![]() |
inDeviceType | const Optional<DeviceKind::Type>& | NIL | A type of a device selected for deploying and executing the model. If not set, device depending on version (CPU/GPU) of installed Deep Learning add-on is selected. If not set, device depending on version (CPU/GPU) of installed Deep Learning add-on is selected. | |
![]() |
inDeviceIndex | const int | 0 - ![]() |
0 | An index of a device selected for deploying and executing the model. |
![]() |
inMaxObjectsCountHint | const Optional<int>& | NIL | Prepares the model for an execution with specific inMaxObjectsCount | |
![]() |
outModelId | SegmentInstancesModelId& | Identifier of the deployed model |
Hints
- You can edit the model directly through the inModelDirectory. Another option is to use the Deep Learning Editor application and just copy the path to the created model.
- If any subsequent DL_SegmentInstances_Deprecated filter using deployed model has inMaxObjectsCount set to not-NIL, it is advisable to set inMaxObjectsCountHint to the maximum from the values set to this parameter. Following this guidelines should ensure an optimal memory usage and no performance hit on first call to DL_SegmentInstances_Deprecated.
Remarks

- Passing NIL as inTargetDevice (which is default), is identical to passing DeviceKind::CUDA on GPU version of Deep Learning add-on and DeviceKind::CPU on CPU version on Deep Learning add-on.
- GPU version of Deep Learning add-on supports DeviceKind::CUDA and DeviceKind::CPU as inTargetDevice value.
- CPU version of Deep Learning add-on supports only DeviceKind::CPU as inTargetDevice value.