Mels22 commited on
Commit
aeffb95
·
verified ·
1 Parent(s): b5d2caf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +74 -3
README.md CHANGED
@@ -1,3 +1,74 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - Mels22/SigDetectVerifyFlow
5
+ metrics:
6
+ - accuracy
7
+ - precision
8
+ - recall
9
+ base_model:
10
+ - Ultralytics/YOLO11
11
+ tags:
12
+ - Signature
13
+ - Detection
14
+ - Verification
15
+ ---
16
+
17
+ # Signature Detection and Verification
18
+ This repository provides two models as part of a full signature authentication pipeline:
19
+ 1. **Detection Model (YOLOv11s-based)**:
20
+ A lightweight object detection model fine-tuned to detect signature regions in scanned documents. The model takes full document images as input and returns bounding boxes of all detected signatures.
21
+
22
+ 2. **Verification Model (Siamese CNN)**:
23
+ A Siamese network trained to determine whether two given signatures (a query signature cropped from a document and a reference signature) belong to the same person. It outputs a binary prediction: 0 = genuine, 1 = forged.
24
+
25
+ These models are designed to work together in a real-world flow:
26
+ → detect signature regions from documents → crop a specific query signature → compare it to a reference sample using the verification model.
27
+
28
+ **Developed by**: [@Mels22](https://huggingface.co/Mels22) and [@JoeCao](https://huggingface.co/JoeCao)
29
+
30
+ ## Model Architecture
31
+ ### Detection Model
32
+ - *Base architecture*: YOLO11s
33
+ - *Trained on*: [SignverOD: A Dataset Signature Object Detection](https://www.kaggle.com/datasets/victordibia/signverod)
34
+ - *Fine-tuned on*: [Mels22/SigDetectVerifyFlow](https://huggingface.co/datasets/Mels22/SigDetectVerifyFlow) (1 class: 'signature')
35
+
36
+ ### Verification Model
37
+ - *Architecture*: Convolution Siamese Network
38
+ - *Loss function*: Contrastive Loss
39
+ - *Trained on*: [Mels22/SigDetectVerifyFlow](https://huggingface.co/datasets/Mels22/SigDetectVerifyFlow)
40
+
41
+ ### For more details on the training process and architecture, please visit our repo Github at **[Signature-Detect-To-Verify](https://github.com/Melios22/Signature-Detect-To-Verify)**.
42
+
43
+ ## Training hyperparameters and Results
44
+ ### Detection Model
45
+ The following hyperparameters were used during training:
46
+ - Epochs: 50
47
+ - Optimizer: AdamW
48
+ - Batch size: 16
49
+ - Image size: 768
50
+
51
+ Results:
52
+ - Precision: 0.9025
53
+ - Recall: 0.7934
54
+ - mAP@50: 0.8222
55
+ - mAP@50-95: 0.4771
56
+
57
+ ### Verification Model
58
+ The following hyperparameters were used during training:
59
+ - Epochs: 15
60
+ - Optimizer: AdamW
61
+ - Batch size: 32
62
+ - Image size: 105x105
63
+ - Learning rate: 1e-4
64
+ - Embedding size: 256
65
+
66
+ Results:
67
+ - Accuracy: 100%
68
+
69
+ ## Testing the Full Pipeline
70
+
71
+ We evaluated the end-to-end performance by integrating both the detection and verification models into a complete flow.
72
+
73
+ - Detection metrics remain consistent with individual evaluation.
74
+ - End-to-end accuracy (detection + verification): 0.5743