File size: 6,894 Bytes
4ee7e8b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
{
  "created": "2026-11-03 08:53:11",
  "versions": {
    "python": "3.13.16",
    "torch": "2.11.0+cu130",
    "onnxruntime": "1.31.1"
  },
  "sources": {
    "signverod": {
      "signature": 3961,
      "background": 6895,
      "initials": 511,
      "redaction": 848,
      "date": 272,
      "too_small": 1
    },
    "sdvf": {
      "genuine": 1729,
      "forged": 1785
    },
    "cedar": {
      "forged_on_paper": 664,
      "forged_clean": 656,
      "genuine_clean": 663,
      "genuine_on_paper": 657
    }
  },
  "counts": {
    "train": {
      "SIGNATURE": 6247,
      "NOT_SIGNATURE": 5739
    },
    "validation": {
      "SIGNATURE": 1840,
      "NOT_SIGNATURE": 1107
    },
    "test": {
      "NOT_SIGNATURE": 1150,
      "SIGNATURE": 926
    }
  },
  "best_checkpoint": {
    "ap": 0.999017257156573,
    "loss": 0.145962655544281,
    "stage": "fine_tune",
    "epoch": 11
  },
  "test": {
    "roc_auc": 0.9971372898863744,
    "ap": 0.9963332902527394
  },
  "config": {
    "IN_COLAB": true,
    "SEED": 42,
    "USE_DRIVE": true,
    "PROJECT_DIR": "/content/drive/MyDrive/SignatureClassification",
    "USE_SIGNVEROD": true,
    "SIGNVEROD_REPO": "ondrs/signverod",
    "SIGNVEROD_MAX_PAGES": null,
    "SIGNVEROD_CATEGORY_NAMES": {
      "1": "signature",
      "2": "initials",
      "3": "redaction",
      "4": "date"
    },
    "SIGNVEROD_LABEL_MAP": {
      "signature": "SIGNATURE",
      "initials": "REVIEW",
      "redaction": "NOT_SIGNATURE",
      "date": "NOT_SIGNATURE"
    },
    "USE_SDVF": true,
    "SDVF_REPO": "Mels22/SigDetectVerifyFlow",
    "SDVF_SPLITS": [
      "train",
      "test"
    ],
    "SDVF_MAX_DOCS": 2500,
    "SDVF_MINE_BACKGROUND": false,
    "USE_CEDAR": true,
    "CEDAR_REPO": "1aurent/individuality-of-handwriting",
    "CEDAR_MAX": null,
    "CEDAR_COMPOSITE_PROB": 0.5,
    "USE_LOCAL_FOLDERS": false,
    "LOCAL_CROP_DIR": "/content/drive/MyDrive/SignatureClassification/raw_crops",
    "USE_ANNOTATIONS_CSV": false,
    "ANNOTATIONS_CSV": "/content/drive/MyDrive/SignatureClassification/annotations.csv",
    "PAD_RATIO": 0.08,
    "BG_PER_PAGE": 3,
    "BG_POOL_SIZE": 800,
    "MIN_CROP_SIDE": 12,
    "STORE_MAX_SIDE": 384,
    "STORE_FORMAT": "JPEG",
    "STORE_QUALITY": 92,
    "MAX_CLASS_RATIO": 1.5,
    "TEST_FRACTION": 0.15,
    "VAL_FRACTION": 0.15,
    "NEAR_DUP_MAX_DIST": 3,
    "IMG_SIZE": 224,
    "RESIZE_MODE": "letterbox",
    "PAD_FILL": [
      255,
      255,
      255
    ],
    "EPOCHS_HEAD": 4,
    "EPOCHS_FINE": 20,
    "HEAD_LR": 0.001,
    "FINE_TUNE_LR": 0.0003,
    "WEIGHT_DECAY": 0.0001,
    "LABEL_SMOOTHING": 0.05,
    "EARLY_STOP_PATIENCE": 5,
    "BALANCE_STRATEGY": "class_weights",
    "TARGET_PRECISION": 0.98,
    "OUTPUT_DIR": "/content/drive/MyDrive/SignatureClassification/outputs",
    "MODEL_DIR": "/content/drive/MyDrive/SignatureClassification/outputs/models",
    "REPORT_DIR": "/content/drive/MyDrive/SignatureClassification/outputs/reports",
    "CLASS_TO_IDX": {
      "NOT_SIGNATURE": 0,
      "SIGNATURE": 1
    },
    "IDX_TO_CLASS": {
      "0": "NOT_SIGNATURE",
      "1": "SIGNATURE"
    },
    "LABEL_COLORS": {
      "SIGNATURE": "#2563eb",
      "NOT_SIGNATURE": "#f97316",
      "REVIEW": "#9ca3af"
    },
    "SOURCE_LOG": {
      "signverod": {
        "signature": 3961,
        "background": 6895,
        "initials": 511,
        "redaction": 848,
        "date": 272,
        "too_small": 1
      },
      "sdvf": {
        "genuine": 1729,
        "forged": 1785
      },
      "cedar": {
        "forged_on_paper": 664,
        "forged_clean": 656,
        "genuine_clean": 663,
        "genuine_on_paper": 657
      }
    },
    "CATEGORY_PREVIEW": {
      "signature": [
        "<PIL.Image.Image image mode=RGB size=758x283 at 0x7AC627B62850>",
        "<PIL.Image.Image image mode=RGB size=913x222 at 0x7AC627BAF4D0>",
        "<PIL.Image.Image image mode=RGB size=815x420 at 0x7AC627BAFBB0>",
        "<PIL.Image.Image image mode=RGB size=526x177 at 0x7AC627BAF9D0>",
        "<PIL.Image.Image image mode=RGB size=813x358 at 0x7AC627BAFF70>",
        "<PIL.Image.Image image mode=RGB size=549x139 at 0x7AC627BE4190>",
        "<PIL.Image.Image image mode=RGB size=748x256 at 0x7AC627BAFA70>",
        "<PIL.Image.Image image mode=RGB size=463x196 at 0x7AC627BE4730>"
      ],
      "initials": [
        "<PIL.Image.Image image mode=RGB size=211x172 at 0x7AC624284AF0>",
        "<PIL.Image.Image image mode=RGB size=354x235 at 0x7AC6242840F0>",
        "<PIL.Image.Image image mode=RGB size=181x282 at 0x7AC6242853B0>",
        "<PIL.Image.Image image mode=RGB size=361x262 at 0x7AC624284FF0>",
        "<PIL.Image.Image image mode=RGB size=205x184 at 0x7AC624285590>",
        "<PIL.Image.Image image mode=RGB size=450x298 at 0x7AC624285310>",
        "<PIL.Image.Image image mode=RGB size=162x171 at 0x7AC6242856D0>",
        "<PIL.Image.Image image mode=RGB size=275x199 at 0x7AC624285810>"
      ],
      "redaction": [
        "<PIL.Image.Image image mode=RGB size=1092x191 at 0x7AC624285090>",
        "<PIL.Image.Image image mode=RGB size=981x163 at 0x7AC624284F50>",
        "<PIL.Image.Image image mode=RGB size=346x168 at 0x7AC624285130>",
        "<PIL.Image.Image image mode=RGB size=870x129 at 0x7AC6242851D0>",
        "<PIL.Image.Image image mode=RGB size=703x150 at 0x7AC624285270>",
        "<PIL.Image.Image image mode=RGB size=331x102 at 0x7AC6242858B0>",
        "<PIL.Image.Image image mode=RGB size=396x173 at 0x7AC6242859F0>",
        "<PIL.Image.Image image mode=RGB size=300x225 at 0x7AC624285770>"
      ],
      "date": [
        "<PIL.Image.Image image mode=RGB size=489x151 at 0x7AC624287430>",
        "<PIL.Image.Image image mode=RGB size=668x239 at 0x7AC624251950>",
        "<PIL.Image.Image image mode=RGB size=599x318 at 0x7AC624251BD0>",
        "<PIL.Image.Image image mode=RGB size=762x127 at 0x7AC624251E50>",
        "<PIL.Image.Image image mode=RGB size=459x167 at 0x7AC6242528F0>",
        "<PIL.Image.Image image mode=RGB size=772x206 at 0x7AC624252670>",
        "<PIL.Image.Image image mode=RGB size=421x170 at 0x7AC624287C50>",
        "<PIL.Image.Image image mode=RGB size=1020x242 at 0x7AC624287ED0>"
      ]
    },
    "INK_COLORS": [
      [
        15,
        15,
        15
      ],
      [
        25,
        35,
        110
      ],
      [
        30,
        60,
        190
      ],
      [
        20,
        20,
        70
      ]
    ],
    "CH": 512,
    "USE_AMP": true,
    "BATCH_SIZE": 64,
    "NUM_WORKERS": 2,
    "MEAN": [
      0.485,
      0.456,
      0.406
    ],
    "STD": [
      0.229,
      0.224,
      0.225
    ],
    "BEST_PATH": "/content/drive/MyDrive/SignatureClassification/outputs/models/best_classifier.pth",
    "ACCEPT_THRESHOLD": 0.10070161521434784,
    "PACKAGE_DIR": "/content/drive/MyDrive/SignatureClassification/outputs/java_deployment"
  }
}