File size: 4,001 Bytes
97b64b9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | # Base configuration for the synthetic signed bank document generator.
#
# This file defines every default value used by src.config.schema.PipelineConfig.
# User configs (see configs/generate.yaml, configs/examples/*.yaml) are merged
# on top of this file, so they only need to specify what they want to change.
#
# Any numeric placement/augmentation "strength"-like value may be given either
# as a fixed scalar (e.g. `0.4`) or as a range (e.g. `{min: 0.2, max: 0.6}`),
# which is resolved by a seeded RNG independently for every generated sample.
seed: 1234
paths:
image_dir: image
dataset_dir: dataset
annotations_dir: annotations
output_dir: output
cache_dir: output/.cache
generation:
count: 10
workers: 1
save_visualization: false
overwrite: false
run_validation: true
start_index: 1
filename_prefix: sample
filename_digits: 6
document:
template: null # null = pick uniformly at random (deterministically, via seed)
page: null # null = use the template's first page
signer:
name: null # null = generate a deterministic synthetic name
role: null # null = use the signature box's annotated role
signature_selection:
source_filter: genuine # genuine | forged | any
signature_id: null # null = pick uniformly at random from the filtered pool
placement:
x_offset: 0.0
y_offset: 0.0
rotation_deg:
min: -4.0
max: 4.0
scale_factor:
min: 0.78
max: 0.95
anchor_point: center
margin: 0.08
misplacement_probability: 0.12
misplacement_strength: 0.35
allow_partial_outside: false
rendering:
blend_mode: multiply
ink_opacity:
min: 0.75
max: 0.95
blur_sigma:
min: 0.15
max: 0.55
feather_px:
min: 0.5
max: 1.8
scanner_noise: 0.02
anti_alias: true
augmentation:
rotation:
enabled: false
strength: 0.0
probability: 0.0
seed: null
stroke_dilation:
enabled: false
strength: 0.2
probability: 0.25
seed: null
motion_blur:
enabled: false
strength: 0.2
probability: 0.15
seed: null
gaussian_blur:
enabled: true
strength: 0.15
probability: 0.3
seed: null
perspective:
enabled: false
strength: 0.1
probability: 0.1
seed: null
scanner_noise:
enabled: true
strength: 0.06
probability: 1.0
seed: null
salt_pepper:
enabled: false
strength: 0.03
probability: 0.15
seed: null
jpeg_compression:
enabled: true
strength: 0.3
probability: 0.5
seed: null
min_quality: 35
max_quality: 90
contrast:
enabled: true
strength: 0.15
probability: 0.4
seed: null
gamma:
enabled: false
strength: 0.15
probability: 0.2
seed: null
coffee_stain:
enabled: false
strength: 0.4
probability: 0.1
seed: null
stain:
enabled: false
strength: 0.4
probability: 0.1
seed: null
type: random
shadow:
enabled: true
strength: 0.35
probability: 0.4
seed: null
type: random
crumple:
enabled: false
strength: 0.2
probability: 0.15
seed: null
wrinkle_density: 0.4
discoloration:
enabled: true
strength: 0.2
probability: 0.5
seed: null
tone: random
page_tilt:
enabled: true
strength: 0.3
probability: 0.3
seed: null
dust:
enabled: false
strength: 0.2
probability: 0.2
seed: null
scanner_streaks:
enabled: false
strength: 0.2
probability: 0.1
seed: null
ink_fading:
enabled: false
strength: 0.3
probability: 0.2
seed: null
ink_bleed:
enabled: false
strength: 0.25
probability: 0.15
seed: null
quality:
case_type: null
notes: null
scanner_quality: 0.85
paper_quality: 0.85
render_quality: 0.85
difficulty:
misplacement: 0.35
whitespace: 0.20
faintness: 0.20
smallness: 0.15
low_texture: 0.10
easy_threshold: 0.33
hard_threshold: 0.66
validation:
strict: false
max_coordinate_epsilon: 0.5
|