Parameter Types#
IParameter#
-
class IParameter#
Subclassed by aidi::param::BinaryPacks, aidi::param::BinaryTrainingParameters, aidi::param::LabelClasses, aidi::param::SchemableParameter
ISchemable#
-
struct ISchemable#
Json Schemable Class API.
A Json Schemable Class is a class that can be serialized to/deserialized from Json and can be validated by Json Schema.
Subclassed by aidi::param::AxialSideLengthRange, aidi::param::DataAugmentation, aidi::param::ExampleAugRotate, aidi::param::ExampleAugShift, aidi::param::FilterScript, aidi::param::GeoAugDistortion, aidi::param::GeoAugScale, aidi::param::GeoAugShift, aidi::param::GeoAugSlightRotation, aidi::param::GeometryAugmentation, aidi::param::ImageAugBlur, aidi::param::ImageAugBrightness, aidi::param::ImageAugColorFilter, aidi::param::ImageAugContrast, aidi::param::ImageAugIllumGradient, aidi::param::ImageAugNoise, aidi::param::ImageAugSharpen, aidi::param::ImageAugmentation, aidi::param::ImageEnhancementLEP, aidi::param::LossCurve, aidi::param::SchemableParameter, aidi::param::SegmentationInputShape, aidi::param::SegmentationInputSplit, aidi::param::SegmentationTrainingSampleStrategy, aidi::param::SideLengthRange, aidi::param::SingleClassPolygonsFilterParamters
Public Functions
-
virtual const std::string &schema_str() const = 0#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
virtual aidi::Buffer to_json() const = 0#
Serialize the parameter group to schema-validatable json string.
- Returns:
aidi::Buffer the schema-validatable json string.
-
virtual ISchemable &from_json(const aidi::Buffer &json_str) = 0#
Deserialize the parameter group from schema-validatable json string.
See also
validate(const std::string &json_str, std::string *error_msg = nullptr)
- Parameters:
json_str – [in] the schema-validatable json string.
- Throws:
aidi::excepts::InvalidJson – if the json string is invalid.
aidi::excepts::JsonSchemaValidationError – if the json string is not serialized from this parameter type or validation the json with json schema failed.
- Returns:
ISchemable& the reference of the parameter.
-
bool validate(const aidi::Buffer &json_str, std::string *error_msg = nullptr) const#
Validate the parameter json string with json schema.
- Parameters:
json_str – [in] the json string.
error_msg – [out] the error message if the json string is invalid, otherwise empty.
- Throws:
aidi::excepts::InvalidJson – if the json string is invalid.
- Returns:
bool true if the json string is valid, otherwise false.
-
virtual const std::string &schema_str() const = 0#
SchemableParameter#
-
struct SchemableParameter : public virtual aidi::param::IParameter, public virtual aidi::param::ISchemable#
SchemableParameter feature interface for IParameter classes.
Subclassed by aidi::param::BaseColor, aidi::param::CustomParam, aidi::param::ExampleAugments, aidi::param::FeatureMapFilterParameters, aidi::param::ImageMean, aidi::param::InferenceParameter, aidi::param::InputImageParam, aidi::param::PolygonsFilterParamters, aidi::param::RegionsMatcherParameters, aidi::param::SegmentationTrainingParameters, aidi::param::TRTCalibParameters, aidi::param::TrainingLog
CustomParam#
-
class CustomParam : public aidi::param::SchemableParameter#
CustomParam Parameter class generated by jinja2 automatically.
可自定义的扩展参数组,使用一个字典存储用户给定的任意键值对. 键和值都必须是字符串类型,对于非字符串类型,用户可自行转换为字符串.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
const std::map<std::string, std::string> &get_ext() const#
Get Extend Parameters.
Extended parameters are used to set parameters conveniently in the development stage or for features that are not stable enough. In the officially released version, extended parameters should be used as little as possible.
See also
- Returns:
const std::map<std::string, std::string> & Extend Parameters
-
CustomParam &set_ext(const std::map<std::string, std::string> &ext)#
Set Extend Parameters with std::map<std::string, std::string> value.
Extended parameters are used to set parameters conveniently in the development stage or for features that are not stable enough. In the officially released version, extended parameters should be used as little as possible.
See also
- Parameters:
ext – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
CustomParam& the reference of this object.
-
const std::string &get_ext(const std::string &key) const#
Get value in Extend Parameters with key.
Warning
The key must be exist in Extend Parameters. otherwise, the behavior is undefined and will cause segmentation fault.
- Returns:
const std::map<std::string, std::string> & value in Extend Parameters at key.
-
CustomParam &set_ext(const std::string &key, const std::string &value)#
Set value in Extend Parameters with key.
- Parameters:
key – the key to set.
value – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
CustomParam& the reference of this object.
-
bool ext_contains(const std::string &key) const#
Check if the key is exist in Extend Parameters.
- Returns:
bool true if the key is exist in Extend Parameters, otherwise false.
-
size_t get_ext_size() const#
Get the size of Extend Parameters.
- Returns:
size_t the size of Extend Parameters
-
virtual const std::string &schema_str() const override#
-
class BinaryPacks : public aidi::param::IParameter#
Parameter to store list of binary data with name.
Public Functions
-
void insert(const std::string &key, const aidi::Buffer &buffer)#
Insert a new binary data into the BinaryPacks. Old data with the same key will be replaced.
See also
See also
get(const std::string &key)
Note
The data in the buffer will not be copied, Which means that if you modify the data content in the Buffer later, the data in the inserted Buffer will also be modified. If this is not the behavior you expect, you can call aidi::Buffer::clone_data() explicitly like below:
binary_packs.insert("my-data", buffer.clone_data());
- Parameters:
key – The key of the binary data.
buffer – The binary data.
-
void remove(const std::string &key)#
Remove binary data specified by the key. Do nothing if the key not found.
- Parameters:
key – The key of the binary data to be removed.
-
bool contains(const std::string &key) const#
Check if the binary data exists in the container.
- Parameters:
key – The key of the binary data
- Returns:
True if exists. Else false.
-
const aidi::Buffer &get(const std::string &key) const#
Get the binary data specified by the key.
See also
insert(const std::string &key, const aidi::Buffer &buffer) for more details.
Note
Do not modify the data in the buffer with out clone,
- Parameters:
key –
- Returns:
const aidi::Buffer & The reference of the binary data.
-
std::vector<std::string> keys() const#
Get all keys in the BinaryPacks.
- Returns:
std::vector<std::string> The keys list.
-
void clear()#
Clear the container.
-
void insert(const std::string &key, const aidi::Buffer &buffer)#
InputImage Parameters#
-
class BaseColor : public aidi::param::SchemableParameter#
BaseColor Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
const ColorType &get_color() const#
Get base_color.
Convert all images into Gray or BGR color space
See also
- Returns:
const ColorType & base_color
-
BaseColor &set_color(const ColorType &color)#
Set base_color with ColorType value.
Convert all images into Gray or BGR color space
See also
- Parameters:
color – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
BaseColor& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class ImageMean : public aidi::param::SchemableParameter#
ImageMean Parameter class generated by jinja2 automatically.
Image mean parameters
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
const std::vector<float> &get_values() const#
Get image mean.
image mean values ordered same as image channels
See also
- Returns:
const std::vector<float> & image mean
-
ImageMean &set_values(const std::vector<float> &values)#
Set image mean with std::vector<float> value.
image mean values ordered same as image channels
See also
- Parameters:
values – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageMean& the reference of this object.
-
float get_values(size_t index) const#
Get value in image mean with index.
Warning
The index must be less than get_values_size(). otherwise, the behavior is undefined and will cause segmentation fault.
- Returns:
float value in image mean at index.
-
size_t get_values_size() const#
Get the size of image mean.
- Returns:
size_t the size of image mean
-
virtual const std::string &schema_str() const override#
-
class InputImageParam : public aidi::param::SchemableParameter#
InputImageParam Parameter class generated by jinja2 automatically.
输入图像相关参数,用于控制工程的输入图像格式规范.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
int get_visual_size() const#
Get 可视图象数.
一个aidi.Image允许包含的可视图象数量, 多数情况下, 使用默认值1即可。若需要将多张图像当作一张图像处理, 可以设置为大于1的值。
See also
- Returns:
int 可视图象数
-
InputImageParam &set_visual_size(int visual_size)#
Set 可视图象数 with int value.
一个aidi.Image允许包含的可视图象数量, 多数情况下, 使用默认值1即可。若需要将多张图像当作一张图像处理, 可以设置为大于1的值。
See also
- Parameters:
visual_size – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
InputImageParam& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class LabelClasses : public aidi::param::IParameter#
LabelClasses is a parameter to manage label classes.
Public Functions
-
void add(const std::string &label_name)#
Add a label name into the label classes container.
- Parameters:
label_name – The label name to be added.
-
void remove(const std::string &label_name)#
Remove a label name from the label classes container.
- Parameters:
label_name – The label name to be removed.
-
size_t size() const#
Get the number of label classes.
- Returns:
The number of label classes.
-
inline bool empty() const#
Check if the container is empty.
- Returns:
bool True if the container is empty.
-
bool contains(const std::string &label_name) const#
Check if the label classes container contains the label name.
- Parameters:
label_name – The label name to be checked.
- Returns:
True if the label classes container contains the label name.
-
std::vector<std::string> get() const#
Get all label names in the label classes container as a vector.
- Returns:
std::vector<std::string> The label names in the label classes
-
void clear()#
Clear the label classes container.
-
void add(const std::string &label_name)#
DataAugmentation Parameters#
-
class GeoAugSlightRotation : public aidi::param::ISchemable#
GeoAugSlightRotation Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable.
Enable to augment training data with slight rotation
See also
- Returns:
bool Enable
-
GeoAugSlightRotation &set_enable(bool enable)#
Set Enable with bool value.
Enable to augment training data with slight rotation
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugSlightRotation& the reference of this object.
-
const std::vector<float> &get_range() const#
Get Angle Range.
Slight rotation angle range (min, max)
See also
- Returns:
const std::vector<float> & Angle Range
-
GeoAugSlightRotation &set_range(const std::vector<float> &range)#
Set Angle Range with std::vector<float> value.
Slight rotation angle range (min, max)
See also
- Parameters:
range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugSlightRotation& the reference of this object.
-
float get_range_left() const#
Get left point value of Angle Range.
See also
- Returns:
const std::vector<float> & left point value of Angle Range
-
float get_range_right() const#
Get the right point value of Angle Range.
See also
- Returns:
const std::vector<float> & the right point value of Angle Range
-
GeoAugSlightRotation &set_range_left(float range_left)#
Set left point value of Angle Range with std::vector<float> value.
Slight rotation angle range (min, max)
See also
- Parameters:
range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugSlightRotation& the reference of this object.
-
GeoAugSlightRotation &set_range_right(float range_right)#
Set the right point value of Angle Range with std::vector<float> value.
Slight rotation angle range (min, max)
See also
- Parameters:
range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugSlightRotation& the reference of this object.
-
int get_step() const#
Get Angle Step.
Slight rotation angle step
See also
- Returns:
int Angle Step
-
GeoAugSlightRotation &set_step(int step)#
Set Angle Step with int value.
Slight rotation angle step
See also
- Parameters:
step – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugSlightRotation& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class GeoAugShift : public aidi::param::ISchemable#
GeoAugShift Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable.
Enable to randomly shift the tranning data horizontally and vertically by a certain proportion
See also
- Returns:
bool Enable
-
GeoAugShift &set_enable(bool enable)#
Set Enable with bool value.
Enable to randomly shift the tranning data horizontally and vertically by a certain proportion
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugShift& the reference of this object.
-
float get_shift_vertical() const#
Get Vertical Shift.
Vertical shift
See also
- Returns:
float Vertical Shift
-
GeoAugShift &set_shift_vertical(float shift_vertical)#
Set Vertical Shift with float value.
Vertical shift
See also
- Parameters:
shift_vertical – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugShift& the reference of this object.
-
float get_shift_horizontal() const#
Get Horizontal Shift.
Horizontal shift
See also
- Returns:
float Horizontal Shift
-
GeoAugShift &set_shift_horizontal(float shift_horizontal)#
Set Horizontal Shift with float value.
Horizontal shift
See also
- Parameters:
shift_horizontal – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugShift& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class GeoAugScale : public aidi::param::ISchemable#
GeoAugScale Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable.
Enable to randomly scale the tranning data by a certain proportion
See also
- Returns:
bool Enable
-
GeoAugScale &set_enable(bool enable)#
Set Enable with bool value.
Enable to randomly scale the tranning data by a certain proportion
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugScale& the reference of this object.
-
const std::vector<float> &get_range() const#
Get Scale Range.
Scale range (min, max)
See also
- Returns:
const std::vector<float> & Scale Range
-
GeoAugScale &set_range(const std::vector<float> &range)#
Set Scale Range with std::vector<float> value.
Scale range (min, max)
See also
- Parameters:
range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugScale& the reference of this object.
-
float get_range_left() const#
Get left point value of Scale Range.
See also
- Returns:
const std::vector<float> & left point value of Scale Range
-
float get_range_right() const#
Get the right point value of Scale Range.
See also
- Returns:
const std::vector<float> & the right point value of Scale Range
-
GeoAugScale &set_range_left(float range_left)#
Set left point value of Scale Range with std::vector<float> value.
Scale range (min, max)
See also
- Parameters:
range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugScale& the reference of this object.
-
GeoAugScale &set_range_right(float range_right)#
Set the right point value of Scale Range with std::vector<float> value.
Scale range (min, max)
See also
- Parameters:
range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugScale& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class GeoAugDistortion : public aidi::param::ISchemable#
GeoAugDistortion Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable.
Enable to randomly distort the training data to simulate image distortion caused by factors such as lens aging.
See also
- Returns:
bool Enable
-
GeoAugDistortion &set_enable(bool enable)#
Set Enable with bool value.
Enable to randomly distort the training data to simulate image distortion caused by factors such as lens aging.
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugDistortion& the reference of this object.
-
const std::vector<float> &get_range() const#
Get Distortion Strength Range.
Distortion Strength range, From 0 to 2, the distortion effect gradually increases
See also
- Returns:
const std::vector<float> & Distortion Strength Range
-
GeoAugDistortion &set_range(const std::vector<float> &range)#
Set Distortion Strength Range with std::vector<float> value.
Distortion Strength range, From 0 to 2, the distortion effect gradually increases
See also
- Parameters:
range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugDistortion& the reference of this object.
-
float get_range_left() const#
Get left point value of Distortion Strength Range.
See also
- Returns:
const std::vector<float> & left point value of Distortion Strength Range
-
float get_range_right() const#
Get the right point value of Distortion Strength Range.
See also
- Returns:
const std::vector<float> & the right point value of Distortion Strength Range
-
GeoAugDistortion &set_range_left(float range_left)#
Set left point value of Distortion Strength Range with std::vector<float> value.
Distortion Strength range, From 0 to 2, the distortion effect gradually increases
See also
- Parameters:
range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugDistortion& the reference of this object.
-
GeoAugDistortion &set_range_right(float range_right)#
Set the right point value of Distortion Strength Range with std::vector<float> value.
Distortion Strength range, From 0 to 2, the distortion effect gradually increases
See also
- Parameters:
range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeoAugDistortion& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class GeometryAugmentation : public aidi::param::ISchemable#
GeometryAugmentation Parameter class generated by jinja2 automatically.
Geometry augmentation parameters
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_flip_vertical() const#
Get Vertical Flip.
Flip training images vertically randomly with a probability of 0.5
See also
- Returns:
bool Vertical Flip
-
GeometryAugmentation &set_flip_vertical(bool flip_vertical)#
Set Vertical Flip with bool value.
Flip training images vertically randomly with a probability of 0.5
See also
- Parameters:
flip_vertical – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeometryAugmentation& the reference of this object.
-
bool get_flip_horizontal() const#
Get Horizontal Flip.
Flip training images horizontally randomly with a probability of 0.5
See also
- Returns:
bool Horizontal Flip
-
GeometryAugmentation &set_flip_horizontal(bool flip_horizontal)#
Set Horizontal Flip with bool value.
Flip training images horizontally randomly with a probability of 0.5
See also
- Parameters:
flip_horizontal – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeometryAugmentation& the reference of this object.
-
bool get_rotate_90() const#
Get Rotate 90°.
Rotate training images 90 degrees randomly with a probability of 0.5
See also
- Returns:
bool Rotate 90°
-
GeometryAugmentation &set_rotate_90(bool rotate_90)#
Set Rotate 90° with bool value.
Rotate training images 90 degrees randomly with a probability of 0.5
See also
- Parameters:
rotate_90 – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeometryAugmentation& the reference of this object.
-
bool get_rotate_180() const#
Get Rotate 180°.
Rotate training images 180° randomly with a probability of 0.5
See also
- Returns:
bool Rotate 180°
-
GeometryAugmentation &set_rotate_180(bool rotate_180)#
Set Rotate 180° with bool value.
Rotate training images 180° randomly with a probability of 0.5
See also
- Parameters:
rotate_180 – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeometryAugmentation& the reference of this object.
-
const GeoAugSlightRotation &get_slight_rotate() const#
Get Slight Rotation.
Slight rotation augmentation parameters
See also
- Returns:
const GeoAugSlightRotation & Slight Rotation
-
GeometryAugmentation &set_slight_rotate(const GeoAugSlightRotation &slight_rotate)#
Set Slight Rotation with GeoAugSlightRotation value.
Slight rotation augmentation parameters
See also
- Parameters:
slight_rotate – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeometryAugmentation& the reference of this object.
-
GeoAugSlightRotation &get_slight_rotate()#
Get mutable reference of Slight Rotation.
Slight rotation augmentation parameters
- Returns:
GeometryAugmentation& the mutable reference of the group.
-
const GeoAugShift &get_shift() const#
Get Shift.
Shift augmentations parameters
See also
- Returns:
const GeoAugShift & Shift
-
GeometryAugmentation &set_shift(const GeoAugShift &shift)#
Set Shift with GeoAugShift value.
Shift augmentations parameters
See also
- Parameters:
shift – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeometryAugmentation& the reference of this object.
-
GeoAugShift &get_shift()#
Get mutable reference of Shift.
Shift augmentations parameters
- Returns:
GeometryAugmentation& the mutable reference of the group.
-
const GeoAugScale &get_scale() const#
Get Scale.
Scale augmentations parameters
See also
- Returns:
const GeoAugScale & Scale
-
GeometryAugmentation &set_scale(const GeoAugScale &scale)#
Set Scale with GeoAugScale value.
Scale augmentations parameters
See also
- Parameters:
scale – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeometryAugmentation& the reference of this object.
-
GeoAugScale &get_scale()#
Get mutable reference of Scale.
Scale augmentations parameters
- Returns:
GeometryAugmentation& the mutable reference of the group.
-
const GeoAugDistortion &get_distortion() const#
Get Distortion.
Distortion augmentations parameters
See also
- Returns:
const GeoAugDistortion & Distortion
-
GeometryAugmentation &set_distortion(const GeoAugDistortion &distortion)#
Set Distortion with GeoAugDistortion value.
Distortion augmentations parameters
See also
- Parameters:
distortion – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeometryAugmentation& the reference of this object.
-
GeoAugDistortion &get_distortion()#
Get mutable reference of Distortion.
Distortion augmentations parameters
- Returns:
GeometryAugmentation& the mutable reference of the group.
-
bool get_crop() const#
Get Crop Overflow Area.
Crop out spill areas caused by geometric transformations (translation, rotation) to keep the image size unchanged
See also
- Returns:
bool Crop Overflow Area
-
GeometryAugmentation &set_crop(bool crop)#
Set Crop Overflow Area with bool value.
Crop out spill areas caused by geometric transformations (translation, rotation) to keep the image size unchanged
See also
- Parameters:
crop – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
GeometryAugmentation& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class ImageAugBrightness : public aidi::param::ISchemable#
ImageAugBrightness Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable Brightness Augmentation.
Enable illumination augmentation to augment training data with linear gray scale transformations
See also
- Returns:
bool Enable Brightness Augmentation
-
ImageAugBrightness &set_enable(bool enable)#
Set Enable Brightness Augmentation with bool value.
Enable illumination augmentation to augment training data with linear gray scale transformations
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugBrightness& the reference of this object.
-
const std::vector<float> &get_range() const#
Get Brightness Range.
The illumination intensity range 0~1 for reduction, and 1~2 for enhancement.
See also
- Returns:
const std::vector<float> & Brightness Range
-
ImageAugBrightness &set_range(const std::vector<float> &range)#
Set Brightness Range with std::vector<float> value.
The illumination intensity range 0~1 for reduction, and 1~2 for enhancement.
See also
- Parameters:
range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugBrightness& the reference of this object.
-
float get_range_left() const#
Get left point value of Brightness Range.
See also
- Returns:
const std::vector<float> & left point value of Brightness Range
-
float get_range_right() const#
Get the right point value of Brightness Range.
See also
- Returns:
const std::vector<float> & the right point value of Brightness Range
-
ImageAugBrightness &set_range_left(float range_left)#
Set left point value of Brightness Range with std::vector<float> value.
The illumination intensity range 0~1 for reduction, and 1~2 for enhancement.
See also
- Parameters:
range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugBrightness& the reference of this object.
-
ImageAugBrightness &set_range_right(float range_right)#
Set the right point value of Brightness Range with std::vector<float> value.
The illumination intensity range 0~1 for reduction, and 1~2 for enhancement.
See also
- Parameters:
range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugBrightness& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class ImageAugContrast : public aidi::param::ISchemable#
ImageAugContrast Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable Contrast Augmentation.
Enable contrast augmentation to simulate the effect of different lighting conditions with different contrast
See also
- Returns:
bool Enable Contrast Augmentation
-
ImageAugContrast &set_enable(bool enable)#
Set Enable Contrast Augmentation with bool value.
Enable contrast augmentation to simulate the effect of different lighting conditions with different contrast
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugContrast& the reference of this object.
-
const std::vector<float> &get_range() const#
Get Contrast Range.
The contrast range 0~1 for reduction, and 1~2 for enhancement.
See also
- Returns:
const std::vector<float> & Contrast Range
-
ImageAugContrast &set_range(const std::vector<float> &range)#
Set Contrast Range with std::vector<float> value.
The contrast range 0~1 for reduction, and 1~2 for enhancement.
See also
- Parameters:
range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugContrast& the reference of this object.
-
float get_range_left() const#
Get left point value of Contrast Range.
See also
- Returns:
const std::vector<float> & left point value of Contrast Range
-
float get_range_right() const#
Get the right point value of Contrast Range.
See also
- Returns:
const std::vector<float> & the right point value of Contrast Range
-
ImageAugContrast &set_range_left(float range_left)#
Set left point value of Contrast Range with std::vector<float> value.
The contrast range 0~1 for reduction, and 1~2 for enhancement.
See also
- Parameters:
range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugContrast& the reference of this object.
-
ImageAugContrast &set_range_right(float range_right)#
Set the right point value of Contrast Range with std::vector<float> value.
The contrast range 0~1 for reduction, and 1~2 for enhancement.
See also
- Parameters:
range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugContrast& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class ImageAugColorFilter : public aidi::param::ISchemable#
ImageAugColorFilter Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable Color Filter.
Simulate the different colors lighting effects by adding filters (only color images are supported), the color filter intensity controls the max intensity of the allowed color filters, range 0~2 from low to high.
See also
- Returns:
bool Enable Color Filter
-
ImageAugColorFilter &set_enable(bool enable)#
Set Enable Color Filter with bool value.
Simulate the different colors lighting effects by adding filters (only color images are supported), the color filter intensity controls the max intensity of the allowed color filters, range 0~2 from low to high.
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugColorFilter& the reference of this object.
-
const std::vector<float> &get_range() const#
Get Color Filter Range.
Color Filter Range 0~2 from low to high.
See also
- Returns:
const std::vector<float> & Color Filter Range
-
ImageAugColorFilter &set_range(const std::vector<float> &range)#
Set Color Filter Range with std::vector<float> value.
Color Filter Range 0~2 from low to high.
See also
- Parameters:
range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugColorFilter& the reference of this object.
-
float get_range_left() const#
Get left point value of Color Filter Range.
See also
- Returns:
const std::vector<float> & left point value of Color Filter Range
-
float get_range_right() const#
Get the right point value of Color Filter Range.
See also
- Returns:
const std::vector<float> & the right point value of Color Filter Range
-
ImageAugColorFilter &set_range_left(float range_left)#
Set left point value of Color Filter Range with std::vector<float> value.
Color Filter Range 0~2 from low to high.
See also
- Parameters:
range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugColorFilter& the reference of this object.
-
ImageAugColorFilter &set_range_right(float range_right)#
Set the right point value of Color Filter Range with std::vector<float> value.
Color Filter Range 0~2 from low to high.
See also
- Parameters:
range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugColorFilter& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class ImageAugNoise : public aidi::param::ISchemable#
ImageAugNoise Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable Noise.
Enable noise augmentation to augment training data with Gaussian noise
See also
- Returns:
bool Enable Noise
-
ImageAugNoise &set_enable(bool enable)#
Set Enable Noise with bool value.
Enable noise augmentation to augment training data with Gaussian noise
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugNoise& the reference of this object.
-
const std::vector<float> &get_range() const#
Get Noise Range.
Noise Range 0~2 from low to high.
See also
- Returns:
const std::vector<float> & Noise Range
-
ImageAugNoise &set_range(const std::vector<float> &range)#
Set Noise Range with std::vector<float> value.
Noise Range 0~2 from low to high.
See also
- Parameters:
range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugNoise& the reference of this object.
-
float get_range_left() const#
Get left point value of Noise Range.
See also
- Returns:
const std::vector<float> & left point value of Noise Range
-
float get_range_right() const#
Get the right point value of Noise Range.
See also
- Returns:
const std::vector<float> & the right point value of Noise Range
-
ImageAugNoise &set_range_left(float range_left)#
Set left point value of Noise Range with std::vector<float> value.
Noise Range 0~2 from low to high.
See also
- Parameters:
range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugNoise& the reference of this object.
-
ImageAugNoise &set_range_right(float range_right)#
Set the right point value of Noise Range with std::vector<float> value.
Noise Range 0~2 from low to high.
See also
- Parameters:
range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugNoise& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class ImageAugIllumGradient : public aidi::param::ISchemable#
ImageAugIllumGradient Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable Illumination Gradient.
Simulate the illumination intensity changing gradiently caused by the shift of the light position, the illumination intensity range 0~2 from low to high
See also
- Returns:
bool Enable Illumination Gradient
-
ImageAugIllumGradient &set_enable(bool enable)#
Set Enable Illumination Gradient with bool value.
Simulate the illumination intensity changing gradiently caused by the shift of the light position, the illumination intensity range 0~2 from low to high
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugIllumGradient& the reference of this object.
-
const std::vector<float> &get_range() const#
Get Illumination Gradient Range.
Illumination Gradient Range 0~2 from low to high.
See also
- Returns:
const std::vector<float> & Illumination Gradient Range
-
ImageAugIllumGradient &set_range(const std::vector<float> &range)#
Set Illumination Gradient Range with std::vector<float> value.
Illumination Gradient Range 0~2 from low to high.
See also
- Parameters:
range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugIllumGradient& the reference of this object.
-
float get_range_left() const#
Get left point value of Illumination Gradient Range.
See also
- Returns:
const std::vector<float> & left point value of Illumination Gradient Range
-
float get_range_right() const#
Get the right point value of Illumination Gradient Range.
See also
- Returns:
const std::vector<float> & the right point value of Illumination Gradient Range
-
ImageAugIllumGradient &set_range_left(float range_left)#
Set left point value of Illumination Gradient Range with std::vector<float> value.
Illumination Gradient Range 0~2 from low to high.
See also
- Parameters:
range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugIllumGradient& the reference of this object.
-
ImageAugIllumGradient &set_range_right(float range_right)#
Set the right point value of Illumination Gradient Range with std::vector<float> value.
Illumination Gradient Range 0~2 from low to high.
See also
- Parameters:
range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugIllumGradient& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class ImageAugBlur : public aidi::param::ISchemable#
ImageAugBlur Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable Blur.
Simulate the image blur caused by the out of focus, the effect of blur intensity range 0~2 from low to high
See also
- Returns:
bool Enable Blur
-
ImageAugBlur &set_enable(bool enable)#
Set Enable Blur with bool value.
Simulate the image blur caused by the out of focus, the effect of blur intensity range 0~2 from low to high
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugBlur& the reference of this object.
-
const std::vector<float> &get_range() const#
Get Blur Range.
Blur intensity range 0~2 from low to high
See also
- Returns:
const std::vector<float> & Blur Range
-
ImageAugBlur &set_range(const std::vector<float> &range)#
Set Blur Range with std::vector<float> value.
Blur intensity range 0~2 from low to high
See also
- Parameters:
range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugBlur& the reference of this object.
-
float get_range_left() const#
Get left point value of Blur Range.
See also
- Returns:
const std::vector<float> & left point value of Blur Range
-
float get_range_right() const#
Get the right point value of Blur Range.
See also
- Returns:
const std::vector<float> & the right point value of Blur Range
-
ImageAugBlur &set_range_left(float range_left)#
Set left point value of Blur Range with std::vector<float> value.
Blur intensity range 0~2 from low to high
See also
- Parameters:
range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugBlur& the reference of this object.
-
ImageAugBlur &set_range_right(float range_right)#
Set the right point value of Blur Range with std::vector<float> value.
Blur intensity range 0~2 from low to high
See also
- Parameters:
range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugBlur& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class ImageAugSharpen : public aidi::param::ISchemable#
ImageAugSharpen Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable Sharpening.
Simulate a scene with more accurate lens focus by sharpening the image, sharpening intensity range 0~2 from low to high
See also
- Returns:
bool Enable Sharpening
-
ImageAugSharpen &set_enable(bool enable)#
Set Enable Sharpening with bool value.
Simulate a scene with more accurate lens focus by sharpening the image, sharpening intensity range 0~2 from low to high
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugSharpen& the reference of this object.
-
const std::vector<float> &get_range() const#
Get Sharpening Range.
sharpening intensity range 0~2 from low to high
See also
- Returns:
const std::vector<float> & Sharpening Range
-
ImageAugSharpen &set_range(const std::vector<float> &range)#
Set Sharpening Range with std::vector<float> value.
sharpening intensity range 0~2 from low to high
See also
- Parameters:
range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugSharpen& the reference of this object.
-
float get_range_left() const#
Get left point value of Sharpening Range.
See also
- Returns:
const std::vector<float> & left point value of Sharpening Range
-
float get_range_right() const#
Get the right point value of Sharpening Range.
See also
- Returns:
const std::vector<float> & the right point value of Sharpening Range
-
ImageAugSharpen &set_range_left(float range_left)#
Set left point value of Sharpening Range with std::vector<float> value.
sharpening intensity range 0~2 from low to high
See also
- Parameters:
range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugSharpen& the reference of this object.
-
ImageAugSharpen &set_range_right(float range_right)#
Set the right point value of Sharpening Range with std::vector<float> value.
sharpening intensity range 0~2 from low to high
See also
- Parameters:
range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugSharpen& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class ImageAugmentation : public aidi::param::ISchemable#
ImageAugmentation Parameter class generated by jinja2 automatically.
Image Augmentation Parameters Group.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
const ImageAugBrightness &get_brightness() const#
Get Illumination Augmentation.
Illumination augmentation parameters
See also
- Returns:
const ImageAugBrightness & Illumination Augmentation
-
ImageAugmentation &set_brightness(const ImageAugBrightness &brightness)#
Set Illumination Augmentation with ImageAugBrightness value.
Illumination augmentation parameters
See also
- Parameters:
brightness – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugmentation& the reference of this object.
-
ImageAugBrightness &get_brightness()#
Get mutable reference of Illumination Augmentation.
Illumination augmentation parameters
- Returns:
ImageAugmentation& the mutable reference of the group.
-
const ImageAugContrast &get_contrast() const#
Get Contrast Augmentation.
Contrast augmentation parameters
See also
- Returns:
const ImageAugContrast & Contrast Augmentation
-
ImageAugmentation &set_contrast(const ImageAugContrast &contrast)#
Set Contrast Augmentation with ImageAugContrast value.
Contrast augmentation parameters
See also
- Parameters:
contrast – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugmentation& the reference of this object.
-
ImageAugContrast &get_contrast()#
Get mutable reference of Contrast Augmentation.
Contrast augmentation parameters
- Returns:
ImageAugmentation& the mutable reference of the group.
-
const ImageAugColorFilter &get_color_filter() const#
Get Color Filter.
Color filter augmentation parameters
See also
- Returns:
const ImageAugColorFilter & Color Filter
-
ImageAugmentation &set_color_filter(const ImageAugColorFilter &color_filter)#
Set Color Filter with ImageAugColorFilter value.
Color filter augmentation parameters
See also
- Parameters:
color_filter – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugmentation& the reference of this object.
-
ImageAugColorFilter &get_color_filter()#
Get mutable reference of Color Filter.
Color filter augmentation parameters
- Returns:
ImageAugmentation& the mutable reference of the group.
-
const ImageAugNoise &get_noise() const#
Get Noise Augmentation.
Noise augmentation parameters
See also
- Returns:
const ImageAugNoise & Noise Augmentation
-
ImageAugmentation &set_noise(const ImageAugNoise &noise)#
Set Noise Augmentation with ImageAugNoise value.
Noise augmentation parameters
See also
- Parameters:
noise – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugmentation& the reference of this object.
-
ImageAugNoise &get_noise()#
Get mutable reference of Noise Augmentation.
Noise augmentation parameters
- Returns:
ImageAugmentation& the mutable reference of the group.
-
const ImageAugIllumGradient &get_illum_gradient() const#
Get Illumination Gradient.
Illumination gradient augmentation parameters
See also
- Returns:
const ImageAugIllumGradient & Illumination Gradient
-
ImageAugmentation &set_illum_gradient(const ImageAugIllumGradient &illum_gradient)#
Set Illumination Gradient with ImageAugIllumGradient value.
Illumination gradient augmentation parameters
See also
- Parameters:
illum_gradient – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugmentation& the reference of this object.
-
ImageAugIllumGradient &get_illum_gradient()#
Get mutable reference of Illumination Gradient.
Illumination gradient augmentation parameters
- Returns:
ImageAugmentation& the mutable reference of the group.
-
const ImageAugBlur &get_blur() const#
Get Blur.
Blur augmentation parameters
See also
- Returns:
const ImageAugBlur & Blur
-
ImageAugmentation &set_blur(const ImageAugBlur &blur)#
Set Blur with ImageAugBlur value.
Blur augmentation parameters
See also
- Parameters:
blur – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugmentation& the reference of this object.
-
ImageAugBlur &get_blur()#
Get mutable reference of Blur.
Blur augmentation parameters
- Returns:
ImageAugmentation& the mutable reference of the group.
-
const ImageAugSharpen &get_sharpen() const#
Get Sharpening.
Sharpening augmentation parameters
See also
- Returns:
const ImageAugSharpen & Sharpening
-
ImageAugmentation &set_sharpen(const ImageAugSharpen &sharpen)#
Set Sharpening with ImageAugSharpen value.
Sharpening augmentation parameters
See also
- Parameters:
sharpen – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageAugmentation& the reference of this object.
-
ImageAugSharpen &get_sharpen()#
Get mutable reference of Sharpening.
Sharpening augmentation parameters
- Returns:
ImageAugmentation& the mutable reference of the group.
-
virtual const std::string &schema_str() const override#
-
class ImageEnhancementLEP : public aidi::param::ISchemable#
ImageEnhancementLEP Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable Image Enhancement.
Use Augmented Images for Training and Processing
See also
- Returns:
bool Enable Image Enhancement
-
ImageEnhancementLEP &set_enable(bool enable)#
Set Enable Image Enhancement with bool value.
Use Augmented Images for Training and Processing
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageEnhancementLEP& the reference of this object.
-
int get_detail_feat_size() const#
Get Fine Texture Feature Size.
The size of the fine texture expected to be retained, the larger the value, the more detail areas are retained
See also
- Returns:
int Fine Texture Feature Size
-
ImageEnhancementLEP &set_detail_feat_size(int detail_feat_size)#
Set Fine Texture Feature Size with int value.
The size of the fine texture expected to be retained, the larger the value, the more detail areas are retained
See also
- Parameters:
detail_feat_size – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageEnhancementLEP& the reference of this object.
-
int get_rough_feat_size() const#
Get Coarse Texture Feature Size.
The size of the coarse texture expected to be retained, the larger the value, the more detail areas are retained
See also
- Returns:
int Coarse Texture Feature Size
-
ImageEnhancementLEP &set_rough_feat_size(int rough_feat_size)#
Set Coarse Texture Feature Size with int value.
The size of the coarse texture expected to be retained, the larger the value, the more detail areas are retained
See also
- Parameters:
rough_feat_size – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageEnhancementLEP& the reference of this object.
-
float get_detail_enhance_scale() const#
Get Fine Texture Enhancement Scale.
Fine Texture Enhancement Parameter, the larger the value, the more detail will be retained
See also
- Returns:
float Fine Texture Enhancement Scale
-
ImageEnhancementLEP &set_detail_enhance_scale(float detail_enhance_scale)#
Set Fine Texture Enhancement Scale with float value.
Fine Texture Enhancement Parameter, the larger the value, the more detail will be retained
See also
- Parameters:
detail_enhance_scale – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageEnhancementLEP& the reference of this object.
-
float get_rough_enhance_scale() const#
Get Coarse Texture Enhancement Scale.
Coarse Texture Enhancement Parameter, the larger the value, the more detail will be retained
See also
- Returns:
float Coarse Texture Enhancement Scale
-
ImageEnhancementLEP &set_rough_enhance_scale(float rough_enhance_scale)#
Set Coarse Texture Enhancement Scale with float value.
Coarse Texture Enhancement Parameter, the larger the value, the more detail will be retained
See also
- Parameters:
rough_enhance_scale – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageEnhancementLEP& the reference of this object.
-
float get_base_keep_ratio() const#
Get Original Image Retaining Ratio.
Original image retaining ratio, the larger the value, the more non-details will be retained, details will not be affected
See also
- Returns:
float Original Image Retaining Ratio
-
ImageEnhancementLEP &set_base_keep_ratio(float base_keep_ratio)#
Set Original Image Retaining Ratio with float value.
Original image retaining ratio, the larger the value, the more non-details will be retained, details will not be affected
See also
- Parameters:
base_keep_ratio – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageEnhancementLEP& the reference of this object.
-
int get_clip_type() const#
Get Pixel Preservation Mode.
Truncating according to the cumulative distribution ratio of pixel values or the effective range ratio, and saturating and truncating pixel values that exceed the reserved ratio
See also
- Returns:
int Pixel Preservation Mode
-
ImageEnhancementLEP &set_clip_type(int clip_type)#
Set Pixel Preservation Mode with int value.
Truncating according to the cumulative distribution ratio of pixel values or the effective range ratio, and saturating and truncating pixel values that exceed the reserved ratio
See also
- Parameters:
clip_type – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageEnhancementLEP& the reference of this object.
-
const std::vector<float> &get_keep_range() const#
Get Pixel Preservation Ratio.
According to the cumulative distribution of the value, the proportion range is reserved. If it is based on the value range, the pixel reserve ratio * the image maximum value domain range.Exp: 8 Bit image will be multiplied by 255
See also
- Returns:
const std::vector<float> & Pixel Preservation Ratio
-
ImageEnhancementLEP &set_keep_range(const std::vector<float> &keep_range)#
Set Pixel Preservation Ratio with std::vector<float> value.
According to the cumulative distribution of the value, the proportion range is reserved. If it is based on the value range, the pixel reserve ratio * the image maximum value domain range.Exp: 8 Bit image will be multiplied by 255
See also
- Parameters:
keep_range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageEnhancementLEP& the reference of this object.
-
float get_keep_range_left() const#
Get left point value of Pixel Preservation Ratio.
See also
- Returns:
const std::vector<float> & left point value of Pixel Preservation Ratio
-
float get_keep_range_right() const#
Get the right point value of Pixel Preservation Ratio.
See also
- Returns:
const std::vector<float> & the right point value of Pixel Preservation Ratio
-
ImageEnhancementLEP &set_keep_range_left(float keep_range_left)#
Set left point value of Pixel Preservation Ratio with std::vector<float> value.
According to the cumulative distribution of the value, the proportion range is reserved. If it is based on the value range, the pixel reserve ratio * the image maximum value domain range.Exp: 8 Bit image will be multiplied by 255
See also
- Parameters:
keep_range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageEnhancementLEP& the reference of this object.
-
ImageEnhancementLEP &set_keep_range_right(float keep_range_right)#
Set the right point value of Pixel Preservation Ratio with std::vector<float> value.
According to the cumulative distribution of the value, the proportion range is reserved. If it is based on the value range, the pixel reserve ratio * the image maximum value domain range.Exp: 8 Bit image will be multiplied by 255
See also
- Parameters:
keep_range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ImageEnhancementLEP& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class DataAugmentation : public aidi::param::ISchemable#
DataAugmentation Parameter class generated by jinja2 automatically.
Data Augmentation Parameters Group.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
const GeometryAugmentation &get_geometry_aumentation() const#
Get Geometry Augmentation.
Geometry augmentation parameters
See also
- Returns:
const GeometryAugmentation & Geometry Augmentation
-
DataAugmentation &set_geometry_aumentation(const GeometryAugmentation &geometry_aumentation)#
Set Geometry Augmentation with GeometryAugmentation value.
Geometry augmentation parameters
See also
- Parameters:
geometry_aumentation – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
DataAugmentation& the reference of this object.
-
GeometryAugmentation &get_geometry_aumentation()#
Get mutable reference of Geometry Augmentation.
Geometry augmentation parameters
- Returns:
DataAugmentation& the mutable reference of the group.
-
const ImageAugmentation &get_image_augmentation() const#
Get Image Augmentation.
Image augmentation parameters
See also
- Returns:
const ImageAugmentation & Image Augmentation
-
DataAugmentation &set_image_augmentation(const ImageAugmentation &image_augmentation)#
Set Image Augmentation with ImageAugmentation value.
Image augmentation parameters
See also
- Parameters:
image_augmentation – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
DataAugmentation& the reference of this object.
-
ImageAugmentation &get_image_augmentation()#
Get mutable reference of Image Augmentation.
Image augmentation parameters
- Returns:
DataAugmentation& the mutable reference of the group.
-
const ImageEnhancementLEP &get_image_enhancement() const#
Get Image Enhancement.
Image enhancement parameters
See also
- Returns:
const ImageEnhancementLEP & Image Enhancement
-
DataAugmentation &set_image_enhancement(const ImageEnhancementLEP &image_enhancement)#
Set Image Enhancement with ImageEnhancementLEP value.
Image enhancement parameters
See also
- Parameters:
image_enhancement – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
DataAugmentation& the reference of this object.
-
ImageEnhancementLEP &get_image_enhancement()#
Get mutable reference of Image Enhancement.
Image enhancement parameters
- Returns:
DataAugmentation& the mutable reference of the group.
-
virtual const std::string &schema_str() const override#
Segmentation Traning Parameters#
-
class SegmentationInputShape : public aidi::param::ISchemable#
SegmentationInputShape Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable Custom Input Shape.
Enable to Customize Network Input Shape
See also
- Returns:
bool Enable Custom Input Shape
-
SegmentationInputShape &set_enable(bool enable)#
Set Enable Custom Input Shape with bool value.
Enable to Customize Network Input Shape
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationInputShape& the reference of this object.
-
int get_base_input_width() const#
Get Base Input Width.
Base Input Width
See also
- Returns:
int Base Input Width
-
SegmentationInputShape &set_base_input_width(int base_input_width)#
Set Base Input Width with int value.
Base Input Width
See also
- Parameters:
base_input_width – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationInputShape& the reference of this object.
-
int get_base_input_height() const#
Get Base Input Height.
Base Input Height
See also
- Returns:
int Base Input Height
-
SegmentationInputShape &set_base_input_height(int base_input_height)#
Set Base Input Height with int value.
Base Input Height
See also
- Parameters:
base_input_height – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationInputShape& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class SegmentationInputSplit : public aidi::param::ISchemable#
SegmentationInputSplit Parameter class generated by jinja2 automatically.
Parameters to control how to split the input image into patches.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
int get_max_split() const#
Get Resolution Level.
The short side of the image input will be scaled to (base_size*Resolution Level), and the long side will be scaled proportionally. When the max precision set is higher than the required precision of the algorithm, the precision will be automatically reduced. The applied precision can be acquired from figuration files of the trained model
See also
- Returns:
int Resolution Level
-
SegmentationInputSplit &set_max_split(int max_split)#
Set Resolution Level with int value.
The short side of the image input will be scaled to (base_size*Resolution Level), and the long side will be scaled proportionally. When the max precision set is higher than the required precision of the algorithm, the precision will be automatically reduced. The applied precision can be acquired from figuration files of the trained model
See also
- Parameters:
max_split – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationInputSplit& the reference of this object.
-
int get_horizontal_split() const#
Get Horizontal Split.
Horizontal Split Number
See also
- Returns:
int Horizontal Split
-
SegmentationInputSplit &set_horizontal_split(int horizontal_split)#
Set Horizontal Split with int value.
Horizontal Split Number
See also
- Parameters:
horizontal_split – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationInputSplit& the reference of this object.
-
int get_vertical_split() const#
Get Vertical Split.
Vertical Split Number
See also
- Returns:
int Vertical Split
-
SegmentationInputSplit &set_vertical_split(int vertical_split)#
Set Vertical Split with int value.
Vertical Split Number
See also
- Parameters:
vertical_split – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationInputSplit& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class SegmentationTrainingSampleStrategy : public aidi::param::ISchemable#
SegmentationTrainingSampleStrategy Parameter class generated by jinja2 automatically.
Segmentation training parameters to control the the input data.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_defect_only() const#
Get Defect Only.
Only the defect area will be learned during training, which can quickly verify whether a certain type of defect can be detected in the early stage of project verification. However, after this option is turned on, the non-defective area will have serious over-detection. Therefore, it should be only used in the solution validation stage.
See also
- Returns:
bool Defect Only
-
SegmentationTrainingSampleStrategy &set_defect_only(bool defect_only)#
Set Defect Only with bool value.
Only the defect area will be learned during training, which can quickly verify whether a certain type of defect can be detected in the early stage of project verification. However, after this option is turned on, the non-defective area will have serious over-detection. Therefore, it should be only used in the solution validation stage.
See also
- Parameters:
defect_only – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationTrainingSampleStrategy& the reference of this object.
-
float get_hard_case_rate() const#
Get Sample Rate of Hard Case.
The larger the value set, the higher the attention to the hard case
See also
- Returns:
float Sample Rate of Hard Case
-
SegmentationTrainingSampleStrategy &set_hard_case_rate(float hard_case_rate)#
Set Sample Rate of Hard Case with float value.
The larger the value set, the higher the attention to the hard case
See also
- Parameters:
hard_case_rate – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationTrainingSampleStrategy& the reference of this object.
-
int get_hard_case_split() const#
Get Hard Case Split.
Number of hard case discrete coodinates, Default value is recommended.
See also
- Returns:
int Hard Case Split
-
SegmentationTrainingSampleStrategy &set_hard_case_split(int hard_case_split)#
Set Hard Case Split with int value.
Number of hard case discrete coodinates, Default value is recommended.
See also
- Parameters:
hard_case_split – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationTrainingSampleStrategy& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class SegmentationTrainingParameters : public aidi::param::SchemableParameter#
SegmentationTrainingParameters Parameter class generated by jinja2 automatically.
Segmentation Training Parameters Group.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
int get_epoch() const#
Get Epoch.
Number of epochs to train
See also
- Returns:
int Epoch
-
SegmentationTrainingParameters &set_epoch(int epoch)#
Set Epoch with int value.
Number of epochs to train
See also
- Parameters:
epoch – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationTrainingParameters& the reference of this object.
-
int get_batch_size() const#
Get Traning Batch Size.
The number of images involved in training in each iteration of network training. A suitable batch size can make full use of hardware and improve the convergence speed. Common values are 4, 8, and 16. The classification module needs to be set larger, generally 32, 64
See also
- Returns:
int Traning Batch Size
-
SegmentationTrainingParameters &set_batch_size(int batch_size)#
Set Traning Batch Size with int value.
The number of images involved in training in each iteration of network training. A suitable batch size can make full use of hardware and improve the convergence speed. Common values are 4, 8, and 16. The classification module needs to be set larger, generally 32, 64
See also
- Parameters:
batch_size – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationTrainingParameters& the reference of this object.
-
float get_lr_decay() const#
Get Learning Rate Decay.
The learning rate is multiplied by this value every epoch. The larger the value, the faster the learning rate decreases
See also
- Returns:
float Learning Rate Decay
-
SegmentationTrainingParameters &set_lr_decay(float lr_decay)#
Set Learning Rate Decay with float value.
The learning rate is multiplied by this value every epoch. The larger the value, the faster the learning rate decreases
See also
- Parameters:
lr_decay – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationTrainingParameters& the reference of this object.
-
const std::string &get_model_arch() const#
Get Model Architecture.
The 101 model has better detection effect on small defects, and the 102 model has better comprehensive effect. Recommended to use the 102 model when the detection effect of the 101 model is poor
See also
- Returns:
const std::string & Model Architecture
-
SegmentationTrainingParameters &set_model_arch(const std::string &model_arch)#
Set Model Architecture with std::string value.
The 101 model has better detection effect on small defects, and the 102 model has better comprehensive effect. Recommended to use the 102 model when the detection effect of the 101 model is poor
See also
- Parameters:
model_arch – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationTrainingParameters& the reference of this object.
-
bool get_shift_stable() const#
Get With Shift Stable.
With shift stable, the adaptability of the model to the slight shift of the target can be improved, but the training and inference speed will be 20 percent slower
See also
- Returns:
bool With Shift Stable
-
SegmentationTrainingParameters &set_shift_stable(bool shift_stable)#
Set With Shift Stable with bool value.
With shift stable, the adaptability of the model to the slight shift of the target can be improved, but the training and inference speed will be 20 percent slower
See also
- Parameters:
shift_stable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationTrainingParameters& the reference of this object.
-
const DataAugmentation &get_augmentations() const#
Get Data Augmentation.
Data Augmentation Parameters
See also
- Returns:
const DataAugmentation & Data Augmentation
-
SegmentationTrainingParameters &set_augmentations(const DataAugmentation &augmentations)#
Set Data Augmentation with DataAugmentation value.
Data Augmentation Parameters
See also
- Parameters:
augmentations – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationTrainingParameters& the reference of this object.
-
DataAugmentation &get_augmentations()#
Get mutable reference of Data Augmentation.
Data Augmentation Parameters
- Returns:
SegmentationTrainingParameters& the mutable reference of the group.
-
const SegmentationInputShape &get_input_shape() const#
Get Input Shape.
Input Shape Parameters
See also
- Returns:
const SegmentationInputShape & Input Shape
-
SegmentationTrainingParameters &set_input_shape(const SegmentationInputShape &input_shape)#
Set Input Shape with SegmentationInputShape value.
Input Shape Parameters
See also
- Parameters:
input_shape – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationTrainingParameters& the reference of this object.
-
SegmentationInputShape &get_input_shape()#
Get mutable reference of Input Shape.
Input Shape Parameters
- Returns:
SegmentationTrainingParameters& the mutable reference of the group.
-
const SegmentationInputSplit &get_input_split() const#
Get Input Split.
Input Split Parameters
See also
- Returns:
const SegmentationInputSplit & Input Split
-
SegmentationTrainingParameters &set_input_split(const SegmentationInputSplit &input_split)#
Set Input Split with SegmentationInputSplit value.
Input Split Parameters
See also
- Parameters:
input_split – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationTrainingParameters& the reference of this object.
-
SegmentationInputSplit &get_input_split()#
Get mutable reference of Input Split.
Input Split Parameters
- Returns:
SegmentationTrainingParameters& the mutable reference of the group.
-
const SegmentationTrainingSampleStrategy &get_sample_strategy() const#
Get Sample Strategy.
Sample Strategy Parameters
See also
- Returns:
const SegmentationTrainingSampleStrategy & Sample Strategy
-
SegmentationTrainingParameters &set_sample_strategy(const SegmentationTrainingSampleStrategy &sample_strategy)#
Set Sample Strategy with SegmentationTrainingSampleStrategy value.
Sample Strategy Parameters
See also
- Parameters:
sample_strategy – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SegmentationTrainingParameters& the reference of this object.
-
SegmentationTrainingSampleStrategy &get_sample_strategy()#
Get mutable reference of Sample Strategy.
Sample Strategy Parameters
- Returns:
SegmentationTrainingParameters& the mutable reference of the group.
-
virtual const std::string &schema_str() const override#
-
class BinaryTrainingParameters : public aidi::param::IParameter#
Parameter class to store some binary configuration information that the parameter generator can not represent for the model trainer.
Public Functions
-
BinaryTrainingParameters &set_global_mask(const geometry::MultiPolygon2f &masks)#
Set the global mask. Each sub image in the training views will be masked with the image mean values before training.
- Parameters:
masks – The mask polygons.
- Returns:
BinaryTrainingParameters& The parameter instance.
-
const geometry::MultiPolygon2f &get_global_mask() const#
Get the global mask.
- Returns:
const geometry::MultiPolygon2f& The global mask polygons
-
BinaryTrainingParameters &set_global_mask(const geometry::MultiPolygon2f &masks)#
Filter Parameters#
-
class AxialSideLengthRange : public aidi::param::ISchemable#
AxialSideLengthRange Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Axial Side Length Filter.
Enable this option to filter regions with axial side length.
See also
- Returns:
bool Axial Side Length Filter
-
AxialSideLengthRange &set_enable(bool enable)#
Set Axial Side Length Filter with bool value.
Enable this option to filter regions with axial side length.
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
AxialSideLengthRange& the reference of this object.
-
const std::vector<int> &get_x_axis_side_range() const#
Get X-Axis Side Length Range.
The X-axis side length range of regions you want to keep.
See also
- Returns:
const std::vector<int> & X-Axis Side Length Range
-
AxialSideLengthRange &set_x_axis_side_range(const std::vector<int> &x_axis_side_range)#
Set X-Axis Side Length Range with std::vector<int> value.
The X-axis side length range of regions you want to keep.
See also
- Parameters:
x_axis_side_range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
AxialSideLengthRange& the reference of this object.
-
int get_x_axis_side_range_left() const#
Get left point value of X-Axis Side Length Range.
See also
- Returns:
const std::vector<int> & left point value of X-Axis Side Length Range
-
int get_x_axis_side_range_right() const#
Get the right point value of X-Axis Side Length Range.
See also
- Returns:
const std::vector<int> & the right point value of X-Axis Side Length Range
-
AxialSideLengthRange &set_x_axis_side_range_left(int x_axis_side_range_left)#
Set left point value of X-Axis Side Length Range with std::vector<int> value.
The X-axis side length range of regions you want to keep.
See also
- Parameters:
x_axis_side_range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
AxialSideLengthRange& the reference of this object.
-
AxialSideLengthRange &set_x_axis_side_range_right(int x_axis_side_range_right)#
Set the right point value of X-Axis Side Length Range with std::vector<int> value.
The X-axis side length range of regions you want to keep.
See also
- Parameters:
x_axis_side_range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
AxialSideLengthRange& the reference of this object.
-
const std::vector<int> &get_y_axis_side_range() const#
Get Y-Axis Side Length Range.
The Y-axis side length range of regions you want to keep.
See also
- Returns:
const std::vector<int> & Y-Axis Side Length Range
-
AxialSideLengthRange &set_y_axis_side_range(const std::vector<int> &y_axis_side_range)#
Set Y-Axis Side Length Range with std::vector<int> value.
The Y-axis side length range of regions you want to keep.
See also
- Parameters:
y_axis_side_range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
AxialSideLengthRange& the reference of this object.
-
int get_y_axis_side_range_left() const#
Get left point value of Y-Axis Side Length Range.
See also
- Returns:
const std::vector<int> & left point value of Y-Axis Side Length Range
-
int get_y_axis_side_range_right() const#
Get the right point value of Y-Axis Side Length Range.
See also
- Returns:
const std::vector<int> & the right point value of Y-Axis Side Length Range
-
AxialSideLengthRange &set_y_axis_side_range_left(int y_axis_side_range_left)#
Set left point value of Y-Axis Side Length Range with std::vector<int> value.
The Y-axis side length range of regions you want to keep.
See also
- Parameters:
y_axis_side_range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
AxialSideLengthRange& the reference of this object.
-
AxialSideLengthRange &set_y_axis_side_range_right(int y_axis_side_range_right)#
Set the right point value of Y-Axis Side Length Range with std::vector<int> value.
The Y-axis side length range of regions you want to keep.
See also
- Parameters:
y_axis_side_range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
AxialSideLengthRange& the reference of this object.
-
const std::vector<float> &get_x_y_ratio_range() const#
Get X/Y Ratio Range.
The range of the ratio of X-axis side length to the Y-axis side length of the regions that you want to keep.
See also
- Returns:
const std::vector<float> & X/Y Ratio Range
-
AxialSideLengthRange &set_x_y_ratio_range(const std::vector<float> &x_y_ratio_range)#
Set X/Y Ratio Range with std::vector<float> value.
The range of the ratio of X-axis side length to the Y-axis side length of the regions that you want to keep.
See also
- Parameters:
x_y_ratio_range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
AxialSideLengthRange& the reference of this object.
-
float get_x_y_ratio_range_left() const#
Get left point value of X/Y Ratio Range.
See also
- Returns:
const std::vector<float> & left point value of X/Y Ratio Range
-
float get_x_y_ratio_range_right() const#
Get the right point value of X/Y Ratio Range.
See also
- Returns:
const std::vector<float> & the right point value of X/Y Ratio Range
-
AxialSideLengthRange &set_x_y_ratio_range_left(float x_y_ratio_range_left)#
Set left point value of X/Y Ratio Range with std::vector<float> value.
The range of the ratio of X-axis side length to the Y-axis side length of the regions that you want to keep.
See also
- Parameters:
x_y_ratio_range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
AxialSideLengthRange& the reference of this object.
-
AxialSideLengthRange &set_x_y_ratio_range_right(float x_y_ratio_range_right)#
Set the right point value of X/Y Ratio Range with std::vector<float> value.
The range of the ratio of X-axis side length to the Y-axis side length of the regions that you want to keep.
See also
- Parameters:
x_y_ratio_range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
AxialSideLengthRange& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class SideLengthRange : public aidi::param::ISchemable#
SideLengthRange Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Side Length Filter.
Enable this option to filter regions with long side length and short side length.
See also
- Returns:
bool Side Length Filter
-
SideLengthRange &set_enable(bool enable)#
Set Side Length Filter with bool value.
Enable this option to filter regions with long side length and short side length.
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SideLengthRange& the reference of this object.
-
bool get_on_rotate_rect() const#
Get Filter On Min-Area-Rect.
The “Longer Side Length Range” and “Shorter Side Length Range” will be applied to the min-area rotate rectangle of each region if this option is enabled, otherwise, they will be applied to the axial bounding rect.
See also
- Returns:
bool Filter On Min-Area-Rect
-
SideLengthRange &set_on_rotate_rect(bool on_rotate_rect)#
Set Filter On Min-Area-Rect with bool value.
The “Longer Side Length Range” and “Shorter Side Length Range” will be applied to the min-area rotate rectangle of each region if this option is enabled, otherwise, they will be applied to the axial bounding rect.
See also
- Parameters:
on_rotate_rect – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SideLengthRange& the reference of this object.
-
const std::vector<int> &get_longer_side_range() const#
Get Longer Side Length Range.
The longer side length range of regions you want to keep.
See also
- Returns:
const std::vector<int> & Longer Side Length Range
-
SideLengthRange &set_longer_side_range(const std::vector<int> &longer_side_range)#
Set Longer Side Length Range with std::vector<int> value.
The longer side length range of regions you want to keep.
See also
- Parameters:
longer_side_range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SideLengthRange& the reference of this object.
-
int get_longer_side_range_left() const#
Get left point value of Longer Side Length Range.
See also
- Returns:
const std::vector<int> & left point value of Longer Side Length Range
-
int get_longer_side_range_right() const#
Get the right point value of Longer Side Length Range.
See also
- Returns:
const std::vector<int> & the right point value of Longer Side Length Range
-
SideLengthRange &set_longer_side_range_left(int longer_side_range_left)#
Set left point value of Longer Side Length Range with std::vector<int> value.
The longer side length range of regions you want to keep.
See also
- Parameters:
longer_side_range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SideLengthRange& the reference of this object.
-
SideLengthRange &set_longer_side_range_right(int longer_side_range_right)#
Set the right point value of Longer Side Length Range with std::vector<int> value.
The longer side length range of regions you want to keep.
See also
- Parameters:
longer_side_range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SideLengthRange& the reference of this object.
-
const std::vector<int> &get_shorter_side_range() const#
Get Shorter Side Length Range.
The shorter side length range of regions you want to keep.
See also
- Returns:
const std::vector<int> & Shorter Side Length Range
-
SideLengthRange &set_shorter_side_range(const std::vector<int> &shorter_side_range)#
Set Shorter Side Length Range with std::vector<int> value.
The shorter side length range of regions you want to keep.
See also
- Parameters:
shorter_side_range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SideLengthRange& the reference of this object.
-
int get_shorter_side_range_left() const#
Get left point value of Shorter Side Length Range.
See also
- Returns:
const std::vector<int> & left point value of Shorter Side Length Range
-
int get_shorter_side_range_right() const#
Get the right point value of Shorter Side Length Range.
See also
- Returns:
const std::vector<int> & the right point value of Shorter Side Length Range
-
SideLengthRange &set_shorter_side_range_left(int shorter_side_range_left)#
Set left point value of Shorter Side Length Range with std::vector<int> value.
The shorter side length range of regions you want to keep.
See also
- Parameters:
shorter_side_range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SideLengthRange& the reference of this object.
-
SideLengthRange &set_shorter_side_range_right(int shorter_side_range_right)#
Set the right point value of Shorter Side Length Range with std::vector<int> value.
The shorter side length range of regions you want to keep.
See also
- Parameters:
shorter_side_range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SideLengthRange& the reference of this object.
-
const std::vector<float> &get_aspect_ratio_range() const#
Get Aspect Ratio Range.
The range of the ratio of the short side to the long side of the regions that you want to keep.
See also
- Returns:
const std::vector<float> & Aspect Ratio Range
-
SideLengthRange &set_aspect_ratio_range(const std::vector<float> &aspect_ratio_range)#
Set Aspect Ratio Range with std::vector<float> value.
The range of the ratio of the short side to the long side of the regions that you want to keep.
See also
- Parameters:
aspect_ratio_range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SideLengthRange& the reference of this object.
-
float get_aspect_ratio_range_left() const#
Get left point value of Aspect Ratio Range.
See also
- Returns:
const std::vector<float> & left point value of Aspect Ratio Range
-
float get_aspect_ratio_range_right() const#
Get the right point value of Aspect Ratio Range.
See also
- Returns:
const std::vector<float> & the right point value of Aspect Ratio Range
-
SideLengthRange &set_aspect_ratio_range_left(float aspect_ratio_range_left)#
Set left point value of Aspect Ratio Range with std::vector<float> value.
The range of the ratio of the short side to the long side of the regions that you want to keep.
See also
- Parameters:
aspect_ratio_range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SideLengthRange& the reference of this object.
-
SideLengthRange &set_aspect_ratio_range_right(float aspect_ratio_range_right)#
Set the right point value of Aspect Ratio Range with std::vector<float> value.
The range of the ratio of the short side to the long side of the regions that you want to keep.
See also
- Parameters:
aspect_ratio_range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SideLengthRange& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class FilterScript : public aidi::param::ISchemable#
FilterScript Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable Filter Script.
Enable this option to filter regions with customized python script.
See also
- Returns:
bool Enable Filter Script
-
FilterScript &set_enable(bool enable)#
Set Enable Filter Script with bool value.
Enable this option to filter regions with customized python script.
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
FilterScript& the reference of this object.
-
const std::string &get_filter_script() const#
Get Filter Script.
The python script.
See also
- Returns:
const std::string & Filter Script
-
FilterScript &set_filter_script(const std::string &filter_script)#
Set Filter Script with std::string value.
The python script.
See also
- Parameters:
filter_script – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
FilterScript& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class SingleClassPolygonsFilterParamters : public aidi::param::ISchemable#
SingleClassPolygonsFilterParamters Parameter class generated by jinja2 automatically.
Common Regions filter parameters to filter regions.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
const std::vector<int> &get_area_range() const#
Get Area Range.
The area range of the regions you want to keep
See also
- Returns:
const std::vector<int> & Area Range
-
SingleClassPolygonsFilterParamters &set_area_range(const std::vector<int> &area_range)#
Set Area Range with std::vector<int> value.
The area range of the regions you want to keep
See also
- Parameters:
area_range – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SingleClassPolygonsFilterParamters& the reference of this object.
-
int get_area_range_left() const#
Get left point value of Area Range.
See also
- Returns:
const std::vector<int> & left point value of Area Range
-
int get_area_range_right() const#
Get the right point value of Area Range.
See also
- Returns:
const std::vector<int> & the right point value of Area Range
-
SingleClassPolygonsFilterParamters &set_area_range_left(int area_range_left)#
Set left point value of Area Range with std::vector<int> value.
The area range of the regions you want to keep
See also
- Parameters:
area_range_left – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SingleClassPolygonsFilterParamters& the reference of this object.
-
SingleClassPolygonsFilterParamters &set_area_range_right(int area_range_right)#
Set the right point value of Area Range with std::vector<int> value.
The area range of the regions you want to keep
See also
- Parameters:
area_range_right – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SingleClassPolygonsFilterParamters& the reference of this object.
-
const AxialSideLengthRange &get_axial_side_filter() const#
Get Axial-Side-Length Filter.
Filter regions with X/Y-axis side length.
See also
- Returns:
const AxialSideLengthRange & Axial-Side-Length Filter
-
SingleClassPolygonsFilterParamters &set_axial_side_filter(const AxialSideLengthRange &axial_side_filter)#
Set Axial-Side-Length Filter with AxialSideLengthRange value.
Filter regions with X/Y-axis side length.
See also
- Parameters:
axial_side_filter – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SingleClassPolygonsFilterParamters& the reference of this object.
-
AxialSideLengthRange &get_axial_side_filter()#
Get mutable reference of Axial-Side-Length Filter.
Filter regions with X/Y-axis side length.
- Returns:
SingleClassPolygonsFilterParamters& the mutable reference of the group.
-
const SideLengthRange &get_side_filter() const#
Get Side-Length Filter.
Filter regions with Side length
See also
- Returns:
const SideLengthRange & Side-Length Filter
-
SingleClassPolygonsFilterParamters &set_side_filter(const SideLengthRange &side_filter)#
Set Side-Length Filter with SideLengthRange value.
Filter regions with Side length
See also
- Parameters:
side_filter – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
SingleClassPolygonsFilterParamters& the reference of this object.
-
SideLengthRange &get_side_filter()#
Get mutable reference of Side-Length Filter.
Filter regions with Side length
- Returns:
SingleClassPolygonsFilterParamters& the mutable reference of the group.
-
virtual const std::string &schema_str() const override#
-
class PolygonsFilterParamters : public aidi::param::SchemableParameter#
PolygonsFilterParamters Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
const std::map<std::string, SingleClassPolygonsFilterParamters> &get_class_thresholds() const#
Get Class Polygon Thresholds.
Polygon thresholds (area, side-length,etc.) named with the label classes according to which to filter the polygons.
See also
- Returns:
const std::map<std::string, SingleClassPolygonsFilterParamters> & Class Polygon Thresholds
-
PolygonsFilterParamters &set_class_thresholds(const std::map<std::string, SingleClassPolygonsFilterParamters> &class_thresholds)#
Set Class Polygon Thresholds with std::map<std::string, SingleClassPolygonsFilterParamters> value.
Polygon thresholds (area, side-length,etc.) named with the label classes according to which to filter the polygons.
See also
- Parameters:
class_thresholds – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
PolygonsFilterParamters& the reference of this object.
-
const SingleClassPolygonsFilterParamters &get_class_thresholds(const std::string &key) const#
Get value in Class Polygon Thresholds with key.
Warning
The key must be exist in Class Polygon Thresholds. otherwise, the behavior is undefined and will cause segmentation fault.
- Returns:
const std::map<std::string, SingleClassPolygonsFilterParamters> & value in Class Polygon Thresholds at key.
-
PolygonsFilterParamters &set_class_thresholds(const std::string &key, const SingleClassPolygonsFilterParamters &value)#
Set value in Class Polygon Thresholds with key.
- Parameters:
key – the key to set.
value – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
PolygonsFilterParamters& the reference of this object.
-
bool class_thresholds_contains(const std::string &key) const#
Check if the key is exist in Class Polygon Thresholds.
- Returns:
bool true if the key is exist in Class Polygon Thresholds, otherwise false.
-
size_t get_class_thresholds_size() const#
Get the size of Class Polygon Thresholds.
- Returns:
size_t the size of Class Polygon Thresholds
-
SingleClassPolygonsFilterParamters &get_class_thresholds(const std::string &key)#
Get mutable reference of value in Class Polygon Thresholds with key. A new key and default value will be created if the key does not exist.
- Returns:
SingleClassPolygonsFilterParamters& the mutable reference of value in Class Polygon Thresholds at key.
-
const SingleClassPolygonsFilterParamters &get_additional_threshold() const#
Get Additional Probability Thresholds.
Additional polygon threshold for other label classes not in “Class Polygon Thresholds”. The filter operator will filter all feature maps whose label class is not in “Class Polygon Thresholds” with the additional threshold.
See also
- Returns:
const SingleClassPolygonsFilterParamters & Additional Probability Thresholds
-
PolygonsFilterParamters &set_additional_threshold(const SingleClassPolygonsFilterParamters &additional_threshold)#
Set Additional Probability Thresholds with SingleClassPolygonsFilterParamters value.
Additional polygon threshold for other label classes not in “Class Polygon Thresholds”. The filter operator will filter all feature maps whose label class is not in “Class Polygon Thresholds” with the additional threshold.
See also
- Parameters:
additional_threshold – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
PolygonsFilterParamters& the reference of this object.
-
SingleClassPolygonsFilterParamters &get_additional_threshold()#
Get mutable reference of Additional Probability Thresholds.
Additional polygon threshold for other label classes not in “Class Polygon Thresholds”. The filter operator will filter all feature maps whose label class is not in “Class Polygon Thresholds” with the additional threshold.
- Returns:
PolygonsFilterParamters& the mutable reference of the group.
-
const FilterScript &get_script_filter() const#
Get Customized Script Filter.
Filter regions with python script.
See also
- Returns:
const FilterScript & Customized Script Filter
-
PolygonsFilterParamters &set_script_filter(const FilterScript &script_filter)#
Set Customized Script Filter with FilterScript value.
Filter regions with python script.
See also
- Parameters:
script_filter – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
PolygonsFilterParamters& the reference of this object.
-
FilterScript &get_script_filter()#
Get mutable reference of Customized Script Filter.
Filter regions with python script.
- Returns:
PolygonsFilterParamters& the mutable reference of the group.
-
virtual const std::string &schema_str() const override#
-
class FeatureMapFilterParameters : public aidi::param::SchemableParameter#
FeatureMapFilterParameters Parameter class generated by jinja2 automatically.
Parameters to config the feature map filter.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
const std::map<std::string, float> &get_class_thresholds() const#
Get Class Probability Thresholds.
Thresholds named with the label classes according to which to binarize the feature map.
See also
- Returns:
const std::map<std::string, float> & Class Probability Thresholds
-
FeatureMapFilterParameters &set_class_thresholds(const std::map<std::string, float> &class_thresholds)#
Set Class Probability Thresholds with std::map<std::string, float> value.
Thresholds named with the label classes according to which to binarize the feature map.
See also
- Parameters:
class_thresholds – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
FeatureMapFilterParameters& the reference of this object.
-
float get_class_thresholds(const std::string &key) const#
Get value in Class Probability Thresholds with key.
Warning
The key must be exist in Class Probability Thresholds. otherwise, the behavior is undefined and will cause segmentation fault.
- Returns:
const std::map<std::string, float> & value in Class Probability Thresholds at key.
-
FeatureMapFilterParameters &set_class_thresholds(const std::string &key, float value)#
Set value in Class Probability Thresholds with key.
- Parameters:
key – the key to set.
value – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
FeatureMapFilterParameters& the reference of this object.
-
bool class_thresholds_contains(const std::string &key) const#
Check if the key is exist in Class Probability Thresholds.
- Returns:
bool true if the key is exist in Class Probability Thresholds, otherwise false.
-
size_t get_class_thresholds_size() const#
Get the size of Class Probability Thresholds.
- Returns:
size_t the size of Class Probability Thresholds
-
float get_additional_threshold() const#
Get Additional Probability Thresholds.
Additional threshold for other label classes not in “Class Probability Thresholds”. The aidi::opers::FeatureMapFilter will filter all feature maps whose label class is not in “Class Probability Thresholds” with the additional threshold.
See also
- Returns:
float Additional Probability Thresholds
-
FeatureMapFilterParameters &set_additional_threshold(float additional_threshold)#
Set Additional Probability Thresholds with float value.
Additional threshold for other label classes not in “Class Probability Thresholds”. The aidi::opers::FeatureMapFilter will filter all feature maps whose label class is not in “Class Probability Thresholds” with the additional threshold.
See also
- Parameters:
additional_threshold – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
FeatureMapFilterParameters& the reference of this object.
-
int get_dilate_pixels() const#
Get Dilate Pixels.
Dilate the filtered regions by the specified pixels. This option can be used to merge closely scattered defects together.
See also
- Returns:
int Dilate Pixels
-
FeatureMapFilterParameters &set_dilate_pixels(int dilate_pixels)#
Set Dilate Pixels with int value.
Dilate the filtered regions by the specified pixels. This option can be used to merge closely scattered defects together.
See also
- Parameters:
dilate_pixels – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
FeatureMapFilterParameters& the reference of this object.
-
virtual const std::string &schema_str() const override#
Training logs#
-
class LossCurve : public aidi::param::ISchemable#
LossCurve Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
const std::vector<float> &get_values() const#
Get values.
A loss curve
See also
- Returns:
const std::vector<float> & values
-
LossCurve &set_values(const std::vector<float> &values)#
Set values with std::vector<float> value.
A loss curve
See also
- Parameters:
values – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
LossCurve& the reference of this object.
-
float get_values(size_t index) const#
Get value in values with index.
Warning
The index must be less than get_values_size(). otherwise, the behavior is undefined and will cause segmentation fault.
- Returns:
float value in values at index.
-
size_t get_values_size() const#
Get the size of values.
- Returns:
size_t the size of values
-
virtual const std::string &schema_str() const override#
-
class TrainingLog : public aidi::param::SchemableParameter#
TrainingLog Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
int get_start_at() const#
Get Start Time.
The training task start time.
See also
- Returns:
int Start Time
-
TrainingLog &set_start_at(int start_at)#
Set Start Time with int value.
The training task start time.
See also
- Parameters:
start_at – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
TrainingLog& the reference of this object.
-
int get_end_at() const#
Get End Time.
The training task finish time.
See also
- Returns:
int End Time
-
TrainingLog &set_end_at(int end_at)#
Set End Time with int value.
The training task finish time.
See also
- Parameters:
end_at – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
TrainingLog& the reference of this object.
-
const std::map<std::string, LossCurve> &get_loss() const#
Get Loss.
Loss curves with name
See also
- Returns:
const std::map<std::string, LossCurve> & Loss
-
TrainingLog &set_loss(const std::map<std::string, LossCurve> &loss)#
Set Loss with std::map<std::string, LossCurve> value.
Loss curves with name
See also
- Parameters:
loss – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
TrainingLog& the reference of this object.
-
const LossCurve &get_loss(const std::string &key) const#
Get value in Loss with key.
Warning
The key must be exist in Loss. otherwise, the behavior is undefined and will cause segmentation fault.
- Returns:
const std::map<std::string, LossCurve> & value in Loss at key.
-
TrainingLog &set_loss(const std::string &key, const LossCurve &value)#
Set value in Loss with key.
- Parameters:
key – the key to set.
value – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
TrainingLog& the reference of this object.
-
bool loss_contains(const std::string &key) const#
Check if the key is exist in Loss.
- Returns:
bool true if the key is exist in Loss, otherwise false.
-
size_t get_loss_size() const#
Get the size of Loss.
- Returns:
size_t the size of Loss
-
virtual const std::string &schema_str() const override#
Ungrouped Parameters#
-
class InferenceParameter : public aidi::param::SchemableParameter#
InferenceParameter Parameter class generated by jinja2 automatically.
Inference Parameter, Currently only contains batch size. It may need to be refactored in the future.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
int get_batch_size() const#
Get Inference Batch Size.
The batch size for inference. You can set it to the number of pictures you wish to infer at the same time. Usually the default value of 1 is sufficient. Note that if you set larger batches without giving enough images per inference, it may actually slow down inference.
See also
- Returns:
int Inference Batch Size
-
InferenceParameter &set_batch_size(int batch_size)#
Set Inference Batch Size with int value.
The batch size for inference. You can set it to the number of pictures you wish to infer at the same time. Usually the default value of 1 is sufficient. Note that if you set larger batches without giving enough images per inference, it may actually slow down inference.
See also
- Parameters:
batch_size – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
InferenceParameter& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class RegionsMatcherParameters : public aidi::param::SchemableParameter#
RegionsMatcherParameters Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_use_ciou() const#
Get Use C-IoU.
We provide two different IoU algorithm: Classic IoU and Complete IoU (C-IoU). The default Classic IoU is simple and stricter, but sometimes it’s not intuitive. If you want to compare results more intuitively, please enable this option to use C-IoU. Note that Note that the IoU threshold need to be adjusted after changing this option.
See also
- Returns:
bool Use C-IoU
-
RegionsMatcherParameters &set_use_ciou(bool use_ciou)#
Set Use C-IoU with bool value.
We provide two different IoU algorithm: Classic IoU and Complete IoU (C-IoU). The default Classic IoU is simple and stricter, but sometimes it’s not intuitive. If you want to compare results more intuitively, please enable this option to use C-IoU. Note that Note that the IoU threshold need to be adjusted after changing this option.
See also
- Parameters:
use_ciou – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
RegionsMatcherParameters& the reference of this object.
-
float get_iou_threshold() const#
Get IoU Threshold.
If the IoU of the predicted region and the labeled region is lower than this given threshold, the two regions cannot match.
See also
- Returns:
float IoU Threshold
-
RegionsMatcherParameters &set_iou_threshold(float iou_threshold)#
Set IoU Threshold with float value.
If the IoU of the predicted region and the labeled region is lower than this given threshold, the two regions cannot match.
See also
- Parameters:
iou_threshold – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
RegionsMatcherParameters& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class TRTCalibParameters : public aidi::param::SchemableParameter#
TRTCalibParameters Parameter class generated by jinja2 automatically.
TensorRT Int8 Calibrator Parameters
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_place_holder() const#
Get PlaceHolder.
See also
- Returns:
bool PlaceHolder
-
TRTCalibParameters &set_place_holder(bool place_holder)#
Set PlaceHolder with bool value.
See also
- Parameters:
place_holder – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
TRTCalibParameters& the reference of this object.
-
virtual const std::string &schema_str() const override#
以下参数项仅为示例#
-
class ExampleAugRotate : public aidi::param::ISchemable#
ExampleAugRotate Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable.
Enable this augments
See also
- Returns:
bool Enable
-
ExampleAugRotate &set_enable(bool enable)#
Set Enable with bool value.
Enable this augments
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ExampleAugRotate& the reference of this object.
-
float get_rotate_angle() const#
Get Rotate Angle.
Rotate angle
See also
- Returns:
float Rotate Angle
-
ExampleAugRotate &set_rotate_angle(float rotate_angle)#
Set Rotate Angle with float value.
Rotate angle
See also
- Parameters:
rotate_angle – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ExampleAugRotate& the reference of this object.
-
bool get_flip_horizontal() const#
Get Flip Horizontal.
Flip horizontal
See also
- Returns:
bool Flip Horizontal
-
ExampleAugRotate &set_flip_horizontal(bool flip_horizontal)#
Set Flip Horizontal with bool value.
Flip horizontal
See also
- Parameters:
flip_horizontal – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ExampleAugRotate& the reference of this object.
-
bool get_flip_vertical() const#
Get Flip Vertical.
Flip vertical
See also
- Returns:
bool Flip Vertical
-
ExampleAugRotate &set_flip_vertical(bool flip_vertical)#
Set Flip Vertical with bool value.
Flip vertical
See also
- Parameters:
flip_vertical – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ExampleAugRotate& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class ExampleAugShift : public aidi::param::ISchemable#
ExampleAugShift Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable.
Enable this augments
See also
- Returns:
bool Enable
-
ExampleAugShift &set_enable(bool enable)#
Set Enable with bool value.
Enable this augments
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ExampleAugShift& the reference of this object.
-
float get_shift_width() const#
Get Shift Width.
Shift width
See also
- Returns:
float Shift Width
-
ExampleAugShift &set_shift_width(float shift_width)#
Set Shift Width with float value.
Shift width
See also
- Parameters:
shift_width – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ExampleAugShift& the reference of this object.
-
float get_shift_height() const#
Get Shift Height.
Shift height
See also
- Returns:
float Shift Height
-
ExampleAugShift &set_shift_height(float shift_height)#
Set Shift Height with float value.
Shift height
See also
- Parameters:
shift_height – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ExampleAugShift& the reference of this object.
-
virtual const std::string &schema_str() const override#
-
class ExampleAugments : public aidi::param::SchemableParameter#
ExampleAugments Parameter class generated by jinja2 automatically.
Public Functions
-
virtual const std::string &schema_str() const override#
Get the json schema of the class.
- Returns:
std::string the json schema string.
-
bool get_enable() const#
Get Enable.
Enable this augments
See also
- Returns:
bool Enable
-
ExampleAugments &set_enable(bool enable)#
Set Enable with bool value.
Enable this augments
See also
- Parameters:
enable – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ExampleAugments& the reference of this object.
-
const ExampleAugShift &get_shift() const#
Get Shift.
Shift augments
See also
- Returns:
const ExampleAugShift & Shift
-
ExampleAugments &set_shift(const ExampleAugShift &shift)#
Set Shift with ExampleAugShift value.
Shift augments
See also
- Parameters:
shift – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ExampleAugments& the reference of this object.
-
ExampleAugShift &get_shift()#
Get mutable reference of Shift.
Shift augments
- Returns:
ExampleAugments& the mutable reference of the group.
-
const ExampleAugRotate &get_rotate() const#
Get Rotate.
Rotate augments
See also
- Returns:
const ExampleAugRotate & Rotate
-
ExampleAugments &set_rotate(const ExampleAugRotate &rotate)#
Set Rotate with ExampleAugRotate value.
Rotate augments
See also
- Parameters:
rotate – the value to set.
- Throws:
aidi::excepts::JsonSchemaValidationError – if validate the value with json schema failed.
- Returns:
ExampleAugments& the reference of this object.
-
ExampleAugRotate &get_rotate()#
Get mutable reference of Rotate.
Rotate augments
- Returns:
ExampleAugments& the mutable reference of the group.
-
virtual const std::string &schema_str() const override#