ufal / vit-historical-page

huggingface.co
Total runs: 2.4K
24-hour runs: 0
7-day runs: 20
30-day runs: 2.2K
Model's Last Updated: July 23 2026
image-classification

Introduction of vit-historical-page

Model Details of vit-historical-page

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:

  • transforms.ColorJitter(brightness 0.5)
  • transforms.ColorJitter(contrast 0.5)
  • transforms.ColorJitter(saturation 0.5)
  • transforms.ColorJitter(hue 0.5)
  • transforms.Lambda(lambda img: ImageEnhance.Sharpness(img).enhance(random.uniform(0.5, 1.5)))
  • transforms.Lambda(lambda img: img.filter(ImageFilter.GaussianBlur(radius=random.uniform(0, 2))))
Training Hyperparameters
  • eval_strategy "epoch"
  • save_strategy "epoch"
  • learning_rate 5e-5
  • per_device_train_batch_size 8
  • per_device_eval_batch_size 8
  • num_train_epochs 3
  • warmup_ratio 0.1
  • logging_steps 10
  • load_best_model_at_end True
  • metric_for_best_model "accuracy"
Results ๐Ÿ“Š

Evaluation set's accuracy ( Top-3 ): 99.6%

TOP-3 confusion matrix - trained ViT

Evaluation set's accuracy ( Top-1 ): 97.3%

TOP-1 confusion matrix - trained ViT

Result tables
Table columns
  • FILE - name of the file
  • PAGE - number of the page
  • CLASS-N - label of the category ๐Ÿท๏ธ, guess TOP-N
  • SCORE-N - score of the category ๐Ÿท๏ธ, guess TOP-N
  • TRUE - actual label of the category ๐Ÿท๏ธ
Contacts ๐Ÿ“ง

For support write to ๐Ÿ“ง [email protected] ๐Ÿ“ง

Official repository: UFAL ^3

Acknowledgements ๐Ÿ™
  • Developed by UFAL ^5 ๐Ÿ‘ฅ
  • Funded by ATRIUM ^4 ๐Ÿ’ฐ
  • Shared by ATRIUM ^4 & UFAL ^5
  • Model type: fine-tuned ViT ^2 with a 224x224 resolution size

ยฉ๏ธ 2022 UFAL & ATRIUM

Runs of ufal vit-historical-page on huggingface.co

2.4K
Total runs
0
24-hour runs
0
3-day runs
20
7-day runs
2.2K
30-day runs

More Information About vit-historical-page huggingface.co Model

More vit-historical-page license Visit here:

https://choosealicense.com/licenses/mit

vit-historical-page huggingface.co

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 Url

https://huggingface.co/ufal/vit-historical-page

ufal vit-historical-page online free

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:

https://huggingface.co/ufal/vit-historical-page

vit-historical-page install

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:

https://huggingface.co/ufal/vit-historical-page

Url of vit-historical-page

vit-historical-page huggingface.co Url

Provider of vit-historical-page huggingface.co

ufal
ORGANIZATIONS

Other API from ufal

huggingface.co

Total runs: 2.5K
Run Growth: 625
Growth Rate: 24.65%
Updated:September 30 2024
huggingface.co

Total runs: 32
Run Growth: 20
Growth Rate: 62.50%
Updated:April 04 2024
huggingface.co

Total runs: 19
Run Growth: 1
Growth Rate: 5.26%
Updated:April 04 2024
huggingface.co

Total runs: 17
Run Growth: -4
Growth Rate: -23.53%
Updated:April 04 2024
huggingface.co

Total runs: 16
Run Growth: 4
Growth Rate: 25.00%
Updated:April 04 2024
huggingface.co

Total runs: 10
Run Growth: 8
Growth Rate: 80.00%
Updated:September 23 2025