nehulagrawal commited on
Commit
00f9515
1 Parent(s): 7dfbc5d

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +115 -0
README.md ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+
3
+ tags:
4
+ - pancard
5
+ - object detection
6
+ - yolov8
7
+ - pancard object-detection
8
+ model-index:
9
+ - name: foduucom/pan-card-object-detection
10
+ results:
11
+ - task:
12
+ type: object-detection
13
+ metrics:
14
+ - type: precision
15
+ value: 0.90196
16
+ name: mAP@0.5(box)
17
+ language:
18
+ - en
19
+ metrics:
20
+ - accuracy
21
+ pipeline_tag: object-detection
22
+ ---
23
+
24
+ # Model Overview
25
+ The PANCard-Detect model is a yolov8 object detection model trained to detect and locate PAN (Permanent Account Number) cards in images. It is built upon the ultralytics library and fine-tuned using a dataset of annotated PAN card images.
26
+
27
+ ## Intended Use
28
+ The model is intended to be used for detecting details like Name,Father Name,DOB,PAN Number, on PAN cards in images. It can be incorporated into applications that require automated detection and extraction of PAN card information from images.
29
+
30
+ ## Performance
31
+ The model has been evaluated on a held-out test dataset and achieved the following performance metrics:
32
+
33
+ Average Precision (AP): 0.90
34
+ Precision: 0.92
35
+ Recall: 0.89
36
+ F1 Score: 0.89
37
+ Please note that the actual performance may vary based on the input data distribution and quality.
38
+
39
+
40
+ ### Recommendations
41
+
42
+ Users should be informed about the model's limitations and potential biases. Further testing and validation are advised for specific use cases to evaluate its performance accurately.
43
+
44
+ Load model and perform prediction:
45
+
46
+ ## How to Get Started with the Model
47
+ To get started with the YOLOv8s object Detection model, follow these steps:
48
+
49
+
50
+ ```bash
51
+ pip install ultralyticsplus==0.0.28 ultralytics==8.0.43
52
+ ```
53
+
54
+ - Load model and perform prediction:
55
+
56
+ ```python
57
+
58
+ from ultralyticsplus import YOLO, render_result
59
+
60
+ # load model
61
+ model = YOLO('foduucom/pan-card-object-detection')
62
+
63
+ # set model parameters
64
+ model.overrides['conf'] = 0.25 # NMS confidence threshold
65
+ model.overrides['iou'] = 0.45 # NMS IoU threshold
66
+ model.overrides['agnostic_nms'] = False # NMS class-agnostic
67
+ model.overrides['max_det'] = 1000 # maximum number of detections per image
68
+
69
+ # set image
70
+ image = '/path/to/your/document/images'
71
+
72
+ # perform inference
73
+ results = model.predict(image)
74
+
75
+ # observe results
76
+ print(results[0].boxes)
77
+ render = render_result(model=model, image=image, result=results[0])
78
+ render.show()
79
+ ```
80
+
81
+ ## Training Data
82
+ The model was trained on a diverse dataset containing images of PAN cards from different sources, resolutions, and lighting conditions. The dataset was annotated with bounding box coordinates to indicate the location of the PAN card within the image.
83
+
84
+ Total Number of Images: 1,100
85
+ Annotation Format: Bounding box coordinates (xmin, ymin, xmax, ymax)
86
+
87
+ ## Fine-tuning Process
88
+ - Pretrained Model: TheError: Errors in your YAML metadata model was initialized with a pretrained object detection backbone (e.g. YOLO).
89
+ - Loss Function: Mean Average Precision (mAP) loss was used for optimization during training.
90
+ - Optimizer: Adam optimizer with a learning rate of 1e-4.
91
+ - Batch Size:-1
92
+ - Training Time: 1 hours on a single NVIDIA GeForce RTX 3090 GPU.
93
+ ## Model Limitations
94
+ The model's performance is subject to variations in image quality, lighting conditions, and image resolutions.
95
+ The model may struggle with detecting PAN cards in cases of extreme occlusion or overlapping objects.
96
+ The model may not generalize well to non-standard PAN card formats or variations.
97
+
98
+ #### Software
99
+
100
+ The model was trained and fine-tuned using a Jupyter Notebook environment.
101
+
102
+ ## Model Card Contact
103
+
104
+ For inquiries and contributions, please contact us at info@foduu.com.
105
+
106
+ ```bibtex
107
+ @ModelCard{
108
+ author = {Nehul Agrawal and
109
+ Rahul parihar},
110
+ title = {YOLOv8s Table Detection},
111
+ year = {2023}
112
+ }
113
+ ```
114
+
115
+ ---