SqueezeBrains SDK 1.18
Parameters

Project Parameters. More...

Collaboration diagram for Parameters:

Data Structures

class  sb_cs::SbParSl
 Shallow Learning modules parameters class that wraps the sb_t_par_sl structure More...
 
class  sb_cs::SbParLevel
 Level parameters Class that wraps the sb_t_level_par structure More...
 
class  sb_cs::SbPerturbation
 Perturbations Class that wraps the sb_t_perturbation structure More...
 
class  sb_cs::SbParModel
 Model parameters class that wraps the sb_t_par_model structure More...
 
class  sb_cs::SbDevicesPar
 Defines computing device types that wraps the sb_t_devices_par structure More...
 
class  sb_cs::SbSvlDlParNetwork
 Deep Learning network parameters class that wraps the sb_t_svl_dl_par_network structure More...
 
class  sb_cs::SbSvlDlParPerturbation
 Describes the perturbation of the image / defect, it wraps the sb_t_svl_dl_par_perturbation structure More...
 
class  sb_cs::SbSvlDlTilingPar
 SVL parameters that configure the Shallow Learning training, it wraps the sb_t_svl_dl_tiling_par structure More...
 
class  sb_cs::SbSvlDlPar
 SVL parameters that configure the Shallow Learning training, it wraps the sb_t_svl_sl_par structure More...
 
class  sb_cs::SbSvlSlPar
 SVL parameters that configure the Shallow Learning training, it wraps the sb_t_svl_sl_par structure More...
 
class  sb_cs::SbSvlPar
 Svl parameters (not used at the moment) that wraps the sb_t_svl_par structure More...
 
class  sb_cs::SbPar
 Parameters Class that wraps the sb_t_par structure.
You must call the Dispose() method to free all the resources of the returned instance. More...
 

Enumerations

enum class  sb_cs::SbProjectType : int {
  sb_cs::SbProjectType::SB_PROJECT_TYPE_RETINA = SB_PROJECT_TYPE_RETINA , sb_cs::SbProjectType::SB_PROJECT_TYPE_SURFACE = SB_PROJECT_TYPE_SURFACE , sb_cs::SbProjectType::SB_PROJECT_TYPE_DEEP_SURFACE = SB_PROJECT_TYPE_DEEP_SURFACE , sb_cs::SbProjectType::SB_PROJECT_TYPE_DEEP_CORTEX = SB_PROJECT_TYPE_DEEP_CORTEX ,
  sb_cs::SbProjectType::SB_PROJECT_TYPE_DEEP_RETINA = SB_PROJECT_TYPE_DEEP_RETINA
}
 Project type that wraps the sb_t_project_type enum More...
 
enum class  sb_cs::SbImageCircularityType : int { sb_cs::SbImageCircularityType::SB_IMAGE_CIRCULARITY_TYPE_NONE = SB_IMAGE_CIRCULARITY_TYPE_NONE , sb_cs::SbImageCircularityType::SB_IMAGE_CIRCULARITY_TYPE_HORIZONTAL = SB_IMAGE_CIRCULARITY_TYPE_HORIZONTAL , sb_cs::SbImageCircularityType::SB_IMAGE_CIRCULARITY_TYPE_VERTICAL = SB_IMAGE_CIRCULARITY_TYPE_VERTICAL }
 Image circularity that wraps the sb_t_image_circularity_type enum More...
 
enum class  sb_cs::SbFloatingPointPrecisionType : int { sb_cs::SbFloatingPointPrecisionType::SB_FLOATING_POINT_OPS_TYPE_SINGLE_PRECISION = SB_FLOATING_POINT_OPS_TYPE_SINGLE_PRECISION , sb_cs::SbFloatingPointPrecisionType::SB_FLOATING_POINT_OPS_TYPE_HALF_PRECISION = SB_FLOATING_POINT_OPS_TYPE_HALF_PRECISION }
 Floating point precision type that wraps the sb_t_floating_point_op_type enum More...
 
enum class  sb_cs::SbSvlParOptimizationMode : int { sb_cs::SbSvlParOptimizationMode::SB_SVL_PAR_OPTIMIZATION_TIME_SLOW = SB_SVL_PAR_OPTIMIZATION_TIME_SLOW , sb_cs::SbSvlParOptimizationMode::SB_SVL_PAR_OPTIMIZATION_TIME_MEDIUM = SB_SVL_PAR_OPTIMIZATION_TIME_MEDIUM , sb_cs::SbSvlParOptimizationMode::SB_SVL_PAR_OPTIMIZATION_TIME_FAST = SB_SVL_PAR_OPTIMIZATION_TIME_FAST , sb_cs::SbSvlParOptimizationMode::SB_SVL_PAR_OPTIMIZATION_USE_SELECTED = SB_SVL_PAR_OPTIMIZATION_USE_SELECTED }
 Svl par optimization mode that wraps the sb_t_svl_par_optimization_mode enum More...
 
enum class  sb_cs::SbNetworkType : int {
  sb_cs::SbNetworkType::SB_NETWORK_TYPE_EFFICIENTNET_B0 = SB_NETWORK_TYPE_EFFICIENTNET_B0 , sb_cs::SbNetworkType::SB_NETWORK_TYPE_EFFICIENTNET_B1 = SB_NETWORK_TYPE_EFFICIENTNET_B1 , sb_cs::SbNetworkType::SB_NETWORK_TYPE_EFFICIENTNET_B2 = SB_NETWORK_TYPE_EFFICIENTNET_B2 , sb_cs::SbNetworkType::SB_NETWORK_TYPE_SDINET0 = SB_NETWORK_TYPE_SDINET0 ,
  sb_cs::SbNetworkType::SB_NETWORK_TYPE_ICNET0_64 = SB_NETWORK_TYPE_ICNET0_64 , sb_cs::SbNetworkType::SB_NETWORK_TYPE_ICNET0_128 = SB_NETWORK_TYPE_ICNET0_128 , sb_cs::SbNetworkType::SB_NETWORK_TYPE_ODNET0 = SB_NETWORK_TYPE_ODNET0
}
 Deep Learning Network type that wraps the sb_t_network_type enum More...
 
enum class  sb_cs::SbNetworkFreezeMode : int { sb_cs::SbNetworkFreezeMode::SB_NETWORK_FREEZE_MODE_NONE = SB_NETWORK_FREEZE_MODE_NONE , sb_cs::SbNetworkFreezeMode::SB_NETWORK_FREEZE_MODE_FIRST_BLOCK = SB_NETWORK_FREEZE_MODE_FIRST_BLOCK , sb_cs::SbNetworkFreezeMode::SB_NETWORK_FREEZE_MODE_ENCODER = SB_NETWORK_FREEZE_MODE_ENCODER , sb_cs::SbNetworkFreezeMode::SB_NETWORK_FREEZE_MODE_ENCODER_DECODER = SB_NETWORK_FREEZE_MODE_ENCODER_DECODER , SB_NETWORK_FREEZE_MODE_END = SB_NETWORK_FREEZE_MODE_END }
 Deep learning network freeze mode that wraps the sb_t_network_freeze_mode enum More...
 
enum class  sb_cs::SbTilingMode : int { sb_cs::SbTilingMode::SB_TILING_MODE_MANUAL = SB_TILING_MODE_MANUAL , sb_cs::SbTilingMode::SB_TILING_MODE_AUTO = SB_TILING_MODE_AUTO }
 Enumerates the tiling mode, it wraps the sb_t_tiling_mode enum. More...
 
enum class  sb_cs::SbLossFnType : int { sb_cs::SbLossFnType::SB_LOSS_FN_TYPE_CCE = SB_LOSS_FN_TYPE_CCE , sb_cs::SbLossFnType::SB_LOSS_FN_TYPE_FOCAL = SB_LOSS_FN_TYPE_FOCAL , sb_cs::SbLossFnType::SB_LOSS_FN_TYPE_BCE = SB_LOSS_FN_TYPE_BCE }
 Enumerates the type of loss function, it wraps the sb_t_loss_fn_type enum. More...
 
enum class  sb_cs::SbImageBordersExtensionMode : int {
  sb_cs::SbImageBordersExtensionMode::SB_IMAGE_BORDERS_EXTENSION_MODE_NONE = SB_IMAGE_BORDERS_EXTENSION_MODE_NONE , sb_cs::SbImageBordersExtensionMode::SB_IMAGE_BORDERS_EXTENSION_MODE_V_0 = SB_IMAGE_BORDERS_EXTENSION_MODE_V_0 , sb_cs::SbImageBordersExtensionMode::SB_IMAGE_BORDERS_EXTENSION_MODE_V_127 = SB_IMAGE_BORDERS_EXTENSION_MODE_V_127 , sb_cs::SbImageBordersExtensionMode::SB_IMAGE_BORDERS_EXTENSION_MODE_V_255 = SB_IMAGE_BORDERS_EXTENSION_MODE_V_255 ,
  sb_cs::SbImageBordersExtensionMode::SB_IMAGE_BORDERS_EXTENSION_MODE_LAST = SB_IMAGE_BORDERS_EXTENSION_MODE_LAST , sb_cs::SbImageBordersExtensionMode::SB_IMAGE_BORDERS_EXTENSION_MODE_IMAGE_AVG = SB_IMAGE_BORDERS_EXTENSION_MODE_IMAGE_AVG , sb_cs::SbImageBordersExtensionMode::SB_IMAGE_BORDERS_EXTENSION_MODE_KERNEL_AVG = SB_IMAGE_BORDERS_EXTENSION_MODE_KERNEL_AVG , sb_cs::SbImageBordersExtensionMode::SB_IMAGE_BORDERS_EXTENSION_MODE_MIRRORING = SB_IMAGE_BORDERS_EXTENSION_MODE_MIRRORING ,
  sb_cs::SbImageBordersExtensionMode::SB_IMAGE_BORDERS_EXTENSION_MODE_BORDER_AVG = SB_IMAGE_BORDERS_EXTENSION_MODE_BORDER_AVG , sb_cs::SbImageBordersExtensionMode::SB_IMAGE_BORDERS_EXTENSION_MODE_BORDER_AVG_LOCAL = SB_IMAGE_BORDERS_EXTENSION_MODE_BORDER_AVG_LOCAL , sb_cs::SbImageBordersExtensionMode::SB_IMAGE_BORDERS_EXTENSION_MODE_KERNEL_AVG_17x1 = SB_IMAGE_BORDERS_EXTENSION_MODE_KERNEL_AVG_17x1
}
 Enumerates the image borders extension mode, it wraps the sb_t_image_borders_extension_mode enum. More...
 
enum class  sb_cs::SbPerturbationMode : int { sb_cs::SbPerturbationMode::SB_PERTURBATION_MODE_ONLINE = SB_PERTURBATION_MODE_ONLINE , sb_cs::SbPerturbationMode::SB_PERTURBATION_MODE_OFFLINE = SB_PERTURBATION_MODE_OFFLINE , sb_cs::SbPerturbationMode::SB_PERTURBATION_MODE_BOTH = SB_PERTURBATION_MODE_BOTH }
 Enumerates the mode of the perturbations, it wraps the sb_t_perturbation_mode enum. More...
 
enum class  sb_cs::SbPerturbationType : int { sb_cs::SbPerturbationType::SB_PERTURBATION_TYPE_IMAGE = SB_PERTURBATION_TYPE_IMAGE , sb_cs::SbPerturbationType::SB_PERTURBATION_TYPE_DEFECTS = SB_PERTURBATION_TYPE_DEFECTS , sb_cs::SbPerturbationType::SB_PERTURBATION_TYPE_BOTH = SB_PERTURBATION_TYPE_BOTH }
 Enumerates the range of application of the perturbations, it wraps the sb_t_perturbation_type enums. More...
 

Detailed Description

Project Parameters.

Enumeration Type Documentation

◆ SbFloatingPointPrecisionType

enum class sb_cs::SbFloatingPointPrecisionType : int
strong

Floating point precision type that wraps the sb_t_floating_point_op_type enum

Enumerator
SB_FLOATING_POINT_OPS_TYPE_SINGLE_PRECISION 

Single Precision (Float32)

SB_FLOATING_POINT_OPS_TYPE_HALF_PRECISION 

Single Precision (Float16)

Definition at line 37 of file cs_par.h.

◆ SbImageBordersExtensionMode

enum class sb_cs::SbImageBordersExtensionMode : int
strong

Enumerates the image borders extension mode, it wraps the sb_t_image_borders_extension_mode enum.

Enumerator
SB_IMAGE_BORDERS_EXTENSION_MODE_NONE 

Undefined extension mode.

SB_IMAGE_BORDERS_EXTENSION_MODE_V_0 

Zero extension mode.

SB_IMAGE_BORDERS_EXTENSION_MODE_V_127 

Grey 127 extension mode.

SB_IMAGE_BORDERS_EXTENSION_MODE_V_255 

Grey 255 extension mode.

SB_IMAGE_BORDERS_EXTENSION_MODE_LAST 

Last pixel extension mode.

SB_IMAGE_BORDERS_EXTENSION_MODE_IMAGE_AVG 

Image average extension mode.

SB_IMAGE_BORDERS_EXTENSION_MODE_KERNEL_AVG 

Local average extension mode.

SB_IMAGE_BORDERS_EXTENSION_MODE_MIRRORING 

Mirroring extension mode.

SB_IMAGE_BORDERS_EXTENSION_MODE_BORDER_AVG 

Last line average extension mode.

SB_IMAGE_BORDERS_EXTENSION_MODE_BORDER_AVG_LOCAL 

Last line local average extension mode.

SB_IMAGE_BORDERS_EXTENSION_MODE_KERNEL_AVG_17x1 

Horizontal local average extension mode.

Definition at line 408 of file cs_par.h.

◆ SbImageCircularityType

enum class sb_cs::SbImageCircularityType : int
strong

Image circularity that wraps the sb_t_image_circularity_type enum

Enumerator
SB_IMAGE_CIRCULARITY_TYPE_NONE 

No image circularity.

SB_IMAGE_CIRCULARITY_TYPE_HORIZONTAL 

Horizontal image circularity.

SB_IMAGE_CIRCULARITY_TYPE_VERTICAL 

Vertical image circularity.

Definition at line 27 of file cs_par.h.

◆ SbLossFnType

enum class sb_cs::SbLossFnType : int
strong

Enumerates the type of loss function, it wraps the sb_t_loss_fn_type enum.

Enumerator
SB_LOSS_FN_TYPE_CCE 

CCE loss.

SB_LOSS_FN_TYPE_FOCAL 

Foacal loss.

SB_LOSS_FN_TYPE_BCE 

BCE loss.

Definition at line 396 of file cs_par.h.

◆ SbNetworkFreezeMode

enum class sb_cs::SbNetworkFreezeMode : int
strong

Deep learning network freeze mode that wraps the sb_t_network_freeze_mode enum

Enumerator
SB_NETWORK_FREEZE_MODE_NONE 

Freeze mode disabled.

SB_NETWORK_FREEZE_MODE_FIRST_BLOCK 

Freeze the first block of the newtork.

SB_NETWORK_FREEZE_MODE_ENCODER 

Freeze the network encoder.

SB_NETWORK_FREEZE_MODE_ENCODER_DECODER 

Freeze both encoder and decoder.

Definition at line 320 of file cs_par.h.

◆ SbNetworkType

enum class sb_cs::SbNetworkType : int
strong

Deep Learning Network type that wraps the sb_t_network_type enum

Enumerator
SB_NETWORK_TYPE_EFFICIENTNET_B0 

Deep Learning EfficientNet b0.

SB_NETWORK_TYPE_EFFICIENTNET_B1 

Deep Learning EfficientNet b1.

SB_NETWORK_TYPE_EFFICIENTNET_B2 

Deep Learning EfficientNet b2.

SB_NETWORK_TYPE_SDINET0 

Deep Learning Surface Defects Inspection Network 0 with variable input size.

SB_NETWORK_TYPE_ICNET0_64 

Deep Learning Image Classification Network 0 with input size 64x64.

SB_NETWORK_TYPE_ICNET0_128 

Deep Learning Image Classification Network 0 with input size 128x128.

SB_NETWORK_TYPE_ODNET0 

Deep Learning Object Detection Network 0 with input size 416x416.

Note
The value sb_t_svl_dl_par_network.input_size must be (416, 416)

Definition at line 277 of file cs_par.h.

◆ SbPerturbationMode

enum class sb_cs::SbPerturbationMode : int
strong

Enumerates the mode of the perturbations, it wraps the sb_t_perturbation_mode enum.

See also
Deep Learning Perturbations
Enumerator
SB_PERTURBATION_MODE_ONLINE 

Online perturbation.

SB_PERTURBATION_MODE_OFFLINE 

Offline perturbation.

SB_PERTURBATION_MODE_BOTH 

Both online and offline perturbations.

Definition at line 427 of file cs_par.h.

◆ SbPerturbationType

enum class sb_cs::SbPerturbationType : int
strong

Enumerates the range of application of the perturbations, it wraps the sb_t_perturbation_type enums.

See also
Deep Learning Perturbations
Enumerator
SB_PERTURBATION_TYPE_IMAGE 

The whole image is perturbated.

SB_PERTURBATION_TYPE_DEFECTS 

Only the defect area is perturbated.

SB_PERTURBATION_TYPE_BOTH 

Both image and defects perturbation types.

Definition at line 438 of file cs_par.h.

◆ SbProjectType

enum class sb_cs::SbProjectType : int
strong

Project type that wraps the sb_t_project_type enum

Enumerator
SB_PROJECT_TYPE_RETINA 

Project Retina.

SB_PROJECT_TYPE_SURFACE 

Project Surface.

SB_PROJECT_TYPE_DEEP_SURFACE 

Project Deep Surface.

SB_PROJECT_TYPE_DEEP_CORTEX 

Project Deep Cortex.

SB_PROJECT_TYPE_DEEP_RETINA 

Project Deep Retina.

Definition at line 15 of file cs_par.h.

◆ SbSvlParOptimizationMode

enum class sb_cs::SbSvlParOptimizationMode : int
strong

Svl par optimization mode that wraps the sb_t_svl_par_optimization_mode enum

Enumerator
SB_SVL_PAR_OPTIMIZATION_TIME_SLOW 

SVL promotes accuracy with respect to execution time.

  • Retina: It chooses the best classificator and the most significant features indipendently for each model.
  • Surface: SVL chooses the best classificator and the most significant features indipendently for each model. At least three features are chosen.
SB_SVL_PAR_OPTIMIZATION_TIME_MEDIUM 
  • Retina: SVL chooses the best classificator and the best feature for each model, only one feature for each model.
  • Surface: SVL chooses the best classificator and the most significant features indipendently for each model. At least two features are chosen.
SB_SVL_PAR_OPTIMIZATION_TIME_FAST 
  • Retina: SVL finds the best classificator and the best feature and sets them for all model.
  • Surface: SVL chooses the best classificator and the most significant features indipendently for each model. At least one feature is chosen.
SB_SVL_PAR_OPTIMIZATION_USE_SELECTED 

SVL will use the features selected by the user and which are compatible with the data set. The user can select the features with the parameter sb_t_svl_par.features.

Definition at line 46 of file cs_par.h.

◆ SbTilingMode

enum class sb_cs::SbTilingMode : int
strong

Enumerates the tiling mode, it wraps the sb_t_tiling_mode enum.

Enumerator
SB_TILING_MODE_MANUAL 

Manual tiling.

SB_TILING_MODE_AUTO 

Auto-tiling.

Definition at line 387 of file cs_par.h.