torchfont.datasets.repoΒΆ
Dataset wrapper that materializes fonts from remote Git repositories.
Notes
Synchronization relies on pygit2/libgit2 bindings and does not
require the git CLI. Network access is still necessary when download
is True to refresh the on-disk shallow clone.
Examples
Synchronize a Git-based font corpus locally:
repo_ds = FontRepo(
root="data/fonts",
url="https://example.com/fonts.git",
ref="main",
patterns=("**/*.ttf",),
download=True,
)
Classes
|
Font dataset that synchronizes glyphs from a shallow Git clone. |