All models

Transkribus HTR+

A handwritten text recognizer for single text lines: stacked convolutions, then three bidirectional LSTM layers.

Documents and OCR · 19 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (27 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
4.3M
Operations
19
Framework
PyTorch
Recurrent
No
Published
2018, READ H2020 Project 674943, Deliverable D7.9
Authors
Johannes Michael, Max Weidemann, Roger Labahn
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m21051
Graph hash
7c4f6e120e4ee8e9081a6e8e117b71d509fa1656f5b04430fcd5db4b2b858b74
Skeleton hash
7afd8dc6e441e271048c5aa26805f9d72c9a87fec05206183cb640c21566cd92
Architecture hash
d0da6e948a8118fbfdd3f4bf11b749cbe6afdac8b4a89f7ac3df263916224a43
Diagram SHA-256
abd51cdc70e0cf2f3f1793f041dace3ab217fcc0848dad7956b2acefec69b4ed
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

HTR+ is a handwritten text recognition model that reads images of single text lines. It belongs to the Transkribus framework, where users can train such models given a ground truth. The project report that introduces it describes HTR+ as an adaptation of the previous year's architecture, rearranged so that stacked bidirectional LSTM layers sit on top of stacked convolutional layers instead of a looser alternation.

The convolutional part reduces the size of the input image through strides in the first layer and pooling after the second and third layers. The convolutional blocks were simplified by leaving out utility layers such as batch normalization. Three bidirectional LSTM layers of 256 units follow, and the output layer provides a confidence matrix, called ConfMat, that is then decoded. Line images are normalized to a height of 64 pixels before recognition.

The report also tried temporal convolutional networks as a replacement for the LSTM layers and found them slower and not as good. A full training run from scratch on a single GTX 1080Ti GPU is reported to take 1/10th of the time that was previously necessary.

Key idea. HTR+ rearranges the earlier Transkribus recognizer into stacked convolutional layers followed by stacked bidirectional LSTM layers, giving a simplified but deeper network that trains faster.

  • Transkribus HTR+
  • HTR+
  • handwritten text recognition
  • HTR
  • Transkribus
  • text line recognition
  • Conv-BLSTM
  • ConfMat
  • READ project
  • historical documents

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{transkribushtr2018,
  title = {HTR Engine Based on NNs P3: Optimizing speed and performance - HTR+},
  author = {Johannes Michael and Max Weidemann and Roger Labahn},
  year = {2018},
  journal = {READ H2020 Project 674943, Deliverable D7.9}
}