Manuscripts β recognition and data
PublishedTraining and fine-tuning models: parameters and decisions
Epochs, learning rate, batch, validation, seed, premature termination and run archive.
On this page
When to train
First, verify the existing model and the quality of the cutouts. Coaching won't fix bad transcriptions, mixed editing policies, or cut letters. Retraining builds on existing scales and can adapt the model to a specific hand or material. Training from the beginning has different demands. The number of necessary lines cannot be promised with one universal number.
Prepare a separate independent test and declare what the model should handle: other pages of the same hand, other books, or a more general file. Improvements in one hand may not transfer to the other.
Startup and basic options
In the training set, check the applicable data and choose Train recognition modelβ¦. Select a new model or the default model to train and the epoch limit. The setting of the last run of the same set is offered again even after failure or cancellation; so go through them consciously before confirming.
An Epoch is one pass through the training data. A higher limit does not automatically mean a better model. When relearning, the model adapts to training peculiarities and loses its ability to generalize. Track validation progress, not just success on the material they are learning from.
Advanced Kraken parameters
| The parameter | The meaning and default value of | What to watch out for |
|---|---|---|
| Learning Rate | Weight update step size; 0,001 | Too large can destabilize learning, too small is slow |
| Dose | Number of rows in one step; 1 | Changes memory requirements and optimization progress |
| Training share | Default division 90/10 | The validation sample must have a meaningful representation of |
| Seed | Default 42 | It helps to reproduce the division, it does not guarantee the same weights on every machine |
| Early Termination | Default off | Tracks validation CER improvement, not research usability |
| Tolerance | Default 5 validation checks without improvement | The maximum epoch limit applies even with this option |
Validation is performed after each epoch. At least two usable lines are required for the split so that both parts are not empty. This is a technical minimum, not a recommended size for a quality set. The specific assignment is kept in the archive. An independent test suite does not enter this division.
How to read the results
A decreasing validation CER is a useful signal, but a small or one-sided sample may affect the result. Assess the development by epochs together with text and image inputs. A single better value does not show generally better recognition of all scripts.
In the run detail, check the settings, progress of epochs, graphs, Data and settings and full Protocol. Don't mistake a failed run for a finished model. Missing data from older runs is not re-invented by the application. register the successful model so that it is available when rewriting.
Party: different validation and different splitting
Party training is intended for Apple Silicon/CPU. It needs rewritten lines from at least two source images and splits entire pages between training and validation. Default geometries are rectangles; baseline is not mandatory. The default batch is 1, allowed range 1β2 lines, AdamW with speed 1e-5, without augmentation, with frozen image encoder and adapter.
Party shows a validation loss that is not CER or a percentage of overwrite success. Don't compare her numerical size to the Kraken's percentages. When done, use Register Model. Automatic continuation of an interrupted checkpoint and independent automatic evaluation of Party are not part of the described UI.
Automatic evaluation and archive
Kraken can then evaluate the model on the selected test set and compare it to the default model. The independence of the test is verified in advance and at the start of the evaluation. A set change during training may be reflected in a later test; for a controllable experiment, do not change it during the run.
The archive stores parameters, distributions, sample lists, protocol and model. The project record does not replace a complete long-term backup of the archive and original media. Closing the view does not stop the work; closing the project has a different effect and may break the run.
Methodological background: Kraken, Training Tutorial. The definition of measurement errors and limits of independence is explained by Independent evaluation: CER, WER and error analysis.
Updated: 2026-11-03