bugfix: ocr_aug.py

Change "lhy_custom" in ink_swap_color to "random"
This commit is contained in:
OleehyO
2024-05-27 23:19:35 +08:00
committed by 三洋三洋
parent a27cf716ee
commit 1b8f6ba0b6

View File

@@ -3,12 +3,11 @@ import random
def ocr_augmentation_pipeline():
pre_phase = [
# Rescale(scale="optimal", target_dpi = 300, p = 1.0),
]
ink_phase = [
InkColorSwap(
ink_swap_color="lhy_custom",
ink_swap_color="random",
ink_swap_sequence_number_range=(5, 10),
ink_swap_min_width_range=(2, 3),
ink_swap_max_width_range=(100, 120),