degrading=False# If true, degrading will be applied to the image. The amount of degrading is defined with "degrade_scales" in config_params.json.
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.
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.
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_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_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.
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_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.
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.
thetha=None# Rotate image by these angles for augmentation.
shuffle_indexes=None
blur_k=None# Blur image for augmentation.
blur_k=None# Blur image for augmentation.
scales=None# Scale patches for augmentation.
scales=None# Scale patches for augmentation.
degrade_scales=None# Degrade image for augmentation.
degrade_scales=None# Degrade image for augmentation.
@ -89,21 +92,30 @@ def config_params():
classification_classes_name=None# Dictionary of classification classes names.
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"
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"