torchfont.transformsΒΆ
Transform primitives for manipulating tensorized glyph sequences.
Examples
Compose a preprocessing pipeline for glyph tensors:
from torchfont.transforms import Compose, LimitSequenceLength
transform = Compose([LimitSequenceLength(256)])
- Overview:
The re-exported classes cover sequencing, truncation, and patch-based reshaping.
Modules
Composable transforms for preprocessing tensor glyph sequences. |