File size: 3,315 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
# Example large-batch dataset generation config.
#
# Merged on top of configs/default.yaml. Only values that differ from the
# defaults need to be listed here. Run with:
#
#   python main.py --config configs/generate.yaml --count 10000
#
# (--count on the command line overrides generation.count below.)

seed: 20240601

paths:
  output_dir: output

generation:
  count: 2000
  workers: 4
  save_visualization: false
  overwrite: false
  run_validation: true

# document.template left as null -> every sample independently and
# deterministically picks one of the 9 discovered templates.
document:
  template: null

# signer.name/role left as null -> a synthetic name is generated per sample
# and the role is taken from the chosen signature box's annotation.
signer:
  name: null
  role: null

signature_selection:
  source_filter: genuine

placement:
  scale_factor:
    min: 0.75
    max: 0.98
  rotation_deg:
    min: -6.0
    max: 6.0
  margin: 0.07
  misplacement_probability: 0.15
  misplacement_strength:
    min: 0.15
    max: 0.5
  allow_partial_outside: true

rendering:
  blend_mode: multiply
  ink_opacity:
    min: 0.7
    max: 0.97
  blur_sigma:
    min: 0.15
    max: 0.6
  feather_px:
    min: 0.4
    max: 2.0
  scanner_noise: 0.02

augmentation:
  stroke_dilation:
    enabled: true
    strength: { min: 0.1, max: 0.35 }
    probability: 0.2

  gaussian_blur:
    enabled: true
    strength: { min: 0.05, max: 0.3 }
    probability: 0.3

  motion_blur:
    enabled: true
    strength: { min: 0.1, max: 0.35 }
    probability: 0.12

  ink_fading:
    enabled: true
    strength: { min: 0.1, max: 0.5 }
    probability: 0.2

  ink_bleed:
    enabled: true
    strength: { min: 0.1, max: 0.4 }
    probability: 0.15

  perspective:
    enabled: true
    strength: { min: 0.05, max: 0.2 }
    probability: 0.12

  contrast:
    enabled: true
    strength: { min: 0.05, max: 0.3 }
    probability: 0.4

  gamma:
    enabled: true
    strength: { min: 0.05, max: 0.25 }
    probability: 0.2

  coffee_stain:
    enabled: true
    strength: { min: 0.2, max: 0.6 }
    probability: 0.08

  stain:
    enabled: true
    strength: { min: 0.2, max: 0.6 }
    probability: 0.1
    type: random

  shadow:
    enabled: true
    strength: { min: 0.2, max: 0.6 }
    probability: 0.35
    type: random

  crumple:
    enabled: true
    strength: { min: 0.1, max: 0.4 }
    probability: 0.12
    wrinkle_density: { min: 0.2, max: 0.7 }

  discoloration:
    enabled: true
    strength: { min: 0.1, max: 0.4 }
    probability: 0.45
    tone: random

  page_tilt:
    enabled: true
    strength: { min: 0.1, max: 0.5 }
    probability: 0.3

  dust:
    enabled: true
    strength: { min: 0.1, max: 0.4 }
    probability: 0.2

  scanner_streaks:
    enabled: true
    strength: { min: 0.1, max: 0.35 }
    probability: 0.1

  scanner_noise:
    enabled: true
    strength: { min: 0.02, max: 0.1 }
    probability: 1.0

  salt_pepper:
    enabled: true
    strength: { min: 0.01, max: 0.06 }
    probability: 0.15

  jpeg_compression:
    enabled: true
    strength: { min: 0.2, max: 0.6 }
    probability: 0.5
    min_quality: 40
    max_quality: 92

quality:
  scanner_quality: { min: 0.6, max: 0.98 }
  paper_quality: { min: 0.6, max: 0.98 }
  render_quality: { min: 0.6, max: 0.98 }

validation:
  strict: false