Image classification using fine-tuned ViT - for historical :bowtie: documents sorting
Goal: solve a task of archive page images sorting (for their further content-based processing)
Scope:
Processing of images, training and evaluation of ViT model,
input file/directory processing, class ๐ท๏ธ (category) results of top
N predictions output, predictions summarizing into a tabular format,
HF ๐ hub support for the model
Model description ๐
๐ฒ Fine-tuned model repository: vit-historical-page
^1
๐
๐ณ Base model repository: google's vit-base-patch16-224
^2
๐
Data ๐
Training set of the model:
8950
images
Categories ๐ท๏ธ
Label๏ธ
Ratio
Description
DRAW
11.89%
๐ - drawings, maps, paintings with text
DRAW_L
8.17%
๐๐ - drawings ... with a table legend or inside tabular layout / forms
LINE_HW
5.99%
โ๏ธ๐ - handwritten text lines inside tabular layout / forms
LINE_P
6.06%
๐ - printed text lines inside tabular layout / forms
LINE_T
13.39%
๐ - machine typed text lines inside tabular layout / forms
PHOTO
10.21%
๐ - photos with text
PHOTO_L
7.86%
๐๐ - photos inside tabular layout / forms or with a tabular annotation
TEXT
8.58%
๐ฐ - mixed types of printed and handwritten texts
TEXT_HW
7.36%
โ๏ธ๐ - only handwritten text
TEXT_P
6.95%
๐ - only printed text
TEXT_T
13.53%
๐ - only machine typed text
Evaluation set (same proportions):
995
images
Data preprocessing
During training the following transforms were applied randomly with a 50% chance:
vit-historical-page huggingface.co is an AI model on huggingface.co that provides vit-historical-page's model effect (), which can be used instantly with this ufal vit-historical-page model. huggingface.co supports a free trial of the vit-historical-page model, and also provides paid use of the vit-historical-page. Support call vit-historical-page model through api, including Node.js, Python, http.
vit-historical-page huggingface.co is an online trial and call api platform, which integrates vit-historical-page's modeling effects, including api services, and provides a free online trial of vit-historical-page, you can try vit-historical-page online for free by clicking the link below.
ufal vit-historical-page online free url in huggingface.co:
vit-historical-page is an open source model from GitHub that offers a free installation service, and any user can find vit-historical-page on GitHub to install. At the same time, huggingface.co provides the effect of vit-historical-page install, users can directly use vit-historical-page installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
vit-historical-page install url in huggingface.co: