LisaGollner commited on
Commit
704ffdf
·
verified ·
1 Parent(s): e684013

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +127 -1
README.md CHANGED
@@ -11,4 +11,130 @@ tags:
11
  - historical-images
12
  - document-analysis
13
  - die-bombe
14
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  - historical-images
12
  - document-analysis
13
  - die-bombe
14
+ ---
15
+
16
+ # YOLOv8 Object Detection Model for *Die Bombe*
17
+
18
+ ## Model Description
19
+
20
+ This repository contains a fine-tuned **YOLOv8m** object detection model trained on digitized pages of the historical satirical periodical [*Die Bombe*](https://anno.onb.ac.at/info/bom_info.html).
21
+
22
+ The model is based on the Ultralytics `yolov8m.pt` checkpoint.
23
+
24
+ ## Classes
25
+
26
+ The annotation schema contains seven categories:
27
+
28
+ - `Advertisement`
29
+ - `Comic`
30
+ - `Editorial Cartoon`
31
+ - `Headline`
32
+ - `Illustration`
33
+ - `Map`
34
+ - `Photograph`
35
+
36
+ The training data contain the following numbers of annotated objects:
37
+
38
+ | Class | Training instances |
39
+ | --- | ---: |
40
+ | Advertisement | 2,596 |
41
+ | Headline | 1,471 |
42
+ | Illustration | 465 |
43
+ | Editorial Cartoon | 140 |
44
+ | Comic | 61 |
45
+ | Photograph | 1 |
46
+ | Map | 0 |
47
+
48
+ `Photograph` and `Map` are therefore part of the annotation schema but are not meaningfully represented in the trained model.
49
+
50
+ ## Training Data
51
+
52
+ The model was trained on manually annotated pages of *Die Bombe*.
53
+
54
+ The dataset was divided into:
55
+
56
+ - **508 training pages**
57
+ - **106 validation pages**
58
+
59
+ The training and validation sets contain separate periodical issues.
60
+
61
+ The annotated training dataset is published separately on Zenodo:
62
+
63
+ **Dataset:** [Training-Dataset_Bombe_1871-1925]
64
+ **DOI:** [[10.5281/zenodo.18757852](https://doi.org/10.5281/zenodo.18757852)]
65
+
66
+ ## Training Configuration
67
+
68
+ Training was performed with Ultralytics YOLOv8 using the following configuration:
69
+
70
+ | Parameter | Value |
71
+ | --- | --- |
72
+ | Base model | `yolov8m.pt` |
73
+ | Maximum epochs | 100 |
74
+ | Image size | 1280 |
75
+ | Batch size | 4 |
76
+ | Workers | 2 |
77
+ | Patience | 20 |
78
+ | Optimizer | SGD |
79
+ | Initial learning rate (`lr0`) | 0.01 |
80
+ | Cosine learning-rate schedule | `True` |
81
+ | Mosaic augmentation | 1.0 |
82
+ | Cache | `False` |
83
+ | Seed | 0 |
84
+ | Deterministic | `True` |
85
+
86
+ Early stopping was enabled with a patience value of 20. No further improvement in mAP@0.50–0.95 was observed after epoch 17, and training stopped after epoch 37.
87
+
88
+ The best-performing checkpoint is provided as `best.pt`.
89
+
90
+ ## Evaluation
91
+
92
+ The final model was evaluated on the held-out validation set of **106 pages containing 1,004 annotated objects**.
93
+
94
+ ### Overall Results
95
+
96
+ | Metric | Score |
97
+ | --- | ---: |
98
+ | Precision | 0.836 |
99
+ | Recall | 0.835 |
100
+ | mAP@0.50 | 0.913 |
101
+ | mAP@0.50–0.95 | 0.722 |
102
+
103
+ ### Class-Specific Results
104
+
105
+ | Class | Instances | Precision | Recall | mAP@0.50 | mAP@0.50–0.95 |
106
+ | --- | ---: | ---: | ---: | ---: | ---: |
107
+ | Advertisement | 505 | 0.930 | 0.935 | 0.967 | 0.879 |
108
+ | Comic | 10 | 0.746 | 0.900 | 0.945 | 0.567 |
109
+ | Editorial Cartoon | 33 | 0.737 | 0.818 | 0.859 | 0.788 |
110
+ | Headline | 341 | 0.953 | 0.827 | 0.961 | 0.703 |
111
+ | Illustration | 115 | 0.814 | 0.696 | 0.832 | 0.673 |
112
+
113
+ `Photograph` and `Map` do not have meaningful evaluation results because they are not sufficiently represented in the training data.
114
+
115
+ ## Reproducibility
116
+
117
+ The code and notebooks used for model training, evaluation, and subsequent processing are available in the *Building Character* GitHub repository:
118
+
119
+ **Code:** https://github.com/lisagollner/Building-Character_Code
120
+
121
+ The Corpus created with the workflow using this model is distributed over Zenodo:
122
+
123
+ **Corpus-Title**: Building Character Corpus
124
+
125
+ **DOI**: [10.5281/zenodo.21918823](https://doi.org/10.5281/zenodo.21918823)
126
+
127
+ The model was trained using:
128
+
129
+ - **Ultralytics:** YOLOv8.2.0
130
+ - **Python:** 3.12.13
131
+ - **PyTorch:** 2.4.1+cu121
132
+ - **GPU:** NVIDIA Tesla T4
133
+
134
+ Additional training configuration is included with the model files.
135
+
136
+ ## License
137
+
138
+ This model is released under the **GNU Affero General Public License v3.0 (AGPL-3.0)**.
139
+
140
+ The model was trained using the Ultralytics YOLOv8 framework. Users should consult the applicable Ultralytics and AGPL-3.0 licensing terms when reusing or redistributing the model.