degrading=False# If true, degrading will be applied to the image. The amount of degrading is defined with "degrade_scales" in config_params.json.
brightening=False# If true, brightening will be applied to the image. The amount of brightening is defined with "brightness" in config_params.json.
binarization=False# If true, Otsu thresholding will be applied to augment the input with binarized images.
rgb_background=False
adding_rgb_background=False
add_red_textlines=False
channels_shuffling=False
dir_train=None# Directory of training dataset with subdirectories having the names "images" and "labels".
dir_eval=None# Directory of validation dataset with subdirectories having the names "images" and "labels".
dir_output=None# Directory where the output model will be saved.
@ -65,6 +67,7 @@ def config_params():
scaling_brightness=False# If true, a combination of scaling and brightening will be applied to the image.
scaling_flip=False# If true, a combination of scaling and flipping will be applied to the image.
thetha=None# Rotate image by these angles for augmentation.
shuffle_indexes=None
blur_k=None# Blur image for augmentation.
scales=None# Scale patches for augmentation.
degrade_scales=None# Degrade image for augmentation.
@ -88,6 +91,10 @@ def config_params():
f1_threshold_classification=None# This threshold is used to consider models with an evaluation f1 scores bigger than it. The selected model weights undergo a weights ensembling. And avreage ensembled model will be written to output.
classification_classes_name=None# Dictionary of classification classes names.
backbone_type=None# As backbone we have 2 types of backbones. A vision transformer alongside a CNN and we call it "transformer" and only CNN called "nontransformer"