Datasets:
Add pilot dataset: 4,000 shaped Devanagari samples + masks, fonts, generator (part 14)
Browse files4,000 synthetic 512x512 image/text pairs with HarfBuzz-shaped Devanagari, exact transcriptions and glyph masks.
- 72 train words, 20 held out and never rendered
- 22 OFL fonts, all audited for coverage and conjunct formation
- font em size >=32px enforced (measured SD1.5 VAE floor)
- generator included; dataset is reproducible from seed 42
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +22 -0
- FINDINGS.md +53 -0
- README.md +200 -1
- data/masks/003748.png +3 -0
- data/masks/003749.png +3 -0
- data/masks/003750.png +3 -0
- data/masks/003751.png +3 -0
- data/masks/003752.png +3 -0
- data/masks/003753.png +3 -0
- data/masks/003754.png +3 -0
- data/masks/003755.png +3 -0
- data/masks/003756.png +3 -0
- data/masks/003757.png +3 -0
- data/masks/003758.png +3 -0
- data/masks/003759.png +3 -0
- data/masks/003760.png +3 -0
- data/masks/003761.png +3 -0
- data/masks/003762.png +3 -0
- data/masks/003763.png +3 -0
- data/masks/003764.png +3 -0
- data/masks/003765.png +3 -0
- data/masks/003766.png +3 -0
- data/masks/003767.png +3 -0
- data/masks/003768.png +3 -0
- data/masks/003769.png +3 -0
- data/masks/003770.png +3 -0
- data/masks/003771.png +3 -0
- data/masks/003772.png +3 -0
- data/masks/003773.png +3 -0
- data/masks/003774.png +3 -0
- data/masks/003775.png +3 -0
- data/masks/003776.png +3 -0
- data/masks/003777.png +3 -0
- data/masks/003778.png +3 -0
- data/masks/003779.png +3 -0
- data/masks/003780.png +3 -0
- data/masks/003781.png +3 -0
- data/masks/003782.png +3 -0
- data/masks/003783.png +3 -0
- data/masks/003784.png +3 -0
- data/masks/003785.png +3 -0
- data/masks/003786.png +3 -0
- data/masks/003787.png +3 -0
- data/masks/003788.png +3 -0
- data/masks/003789.png +3 -0
- data/masks/003790.png +3 -0
- data/masks/003791.png +3 -0
- data/masks/003792.png +3 -0
- data/masks/003793.png +3 -0
- data/masks/003794.png +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,25 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
fonts/Amita-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
fonts/Baloo2-Variable.ttf filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
fonts/Biryani-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
fonts/Halant-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
fonts/Halant-SemiBold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
fonts/Hind-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
fonts/Hind-SemiBold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
fonts/Kalam-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
fonts/Khand-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
fonts/Martel-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
fonts/Modak-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
fonts/Mukta-Bold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
fonts/Mukta-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
fonts/NotoSansDevanagari-Variable.ttf filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
fonts/NotoSerifDevanagari-Variable.ttf filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
fonts/Palanquin-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
fonts/Poppins-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
fonts/RozhaOne-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
fonts/Sahitya-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
fonts/Teko-Variable.ttf filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
fonts/TiroDevanagariHindi-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
fonts/YatraOne-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
FINDINGS.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Feasibility findings — Hindi text LoRA on SD1.5
|
| 2 |
+
|
| 3 |
+
Measured 2026-09-28, CPU-only, on this machine. Scripts in `src/diag/`.
|
| 4 |
+
|
| 5 |
+
## 1. Shaping (`verify_shaping.py`) — SOLVED
|
| 6 |
+
Pillow's wheel ships **without Raqm/HarfBuzz**, so `ImageDraw.text()` renders
|
| 7 |
+
Devanagari unshaped (broken conjuncts, ि on the wrong side). Silent corruption:
|
| 8 |
+
it looks plausible unless you check.
|
| 9 |
+
|
| 10 |
+
Fix: `src/render/shaper.py` = uharfbuzz (shaping) + freetype-py (raster).
|
| 11 |
+
Verified: क्ष/त्र/ज्ञ collapse 3 cp -> 1 glyph; ि reorders before its consonant;
|
| 12 |
+
स्त्री -> 2 glyphs. Continuous shirorekha confirmed visually.
|
| 13 |
+
|
| 14 |
+
## 2. VAE capacity (`vae_size_sweep.py`, `vae_visual.py`) — HARD FLOOR AT ~32px EM
|
| 15 |
+
SD1.5's 4-ch VAE round-trip, measured inside the ink box:
|
| 16 |
+
|
| 17 |
+
| font em size | result |
|
| 18 |
+
|---|---|
|
| 19 |
+
| 12-20px | destroyed; nuktas gone, conjuncts illegible |
|
| 20 |
+
| 24px | marginal; nukta merges into stroke |
|
| 21 |
+
| **32px** | **clean — minimum safe size** |
|
| 22 |
+
| 48-64px | near-perfect |
|
| 23 |
+
|
| 24 |
+
=> Every training sample must render text at **font em size >= 32px**
|
| 25 |
+
(FreeType set_pixel_sizes). NOT ink-box height: the measured ink/em ratio
|
| 26 |
+
varies 0.67 (bhaarat, no tall matras) to 1.08 (hindii) depending on which
|
| 27 |
+
matras a word carries, so ink height is content-dependent and a bad assert
|
| 28 |
+
target. Em size controls stroke width and is what the sweep actually varied.
|
| 29 |
+
=> At 512 canvas this caps usable text at roughly 2-4 words.
|
| 30 |
+
=> SD1.5 can do headline/signage text. It cannot do small body text. Ever.
|
| 31 |
+
|
| 32 |
+
## 3. Text conditioning (`tokenizer_test.py`) — THE REAL BOTTLENECK
|
| 33 |
+
CLIP ViT-L/14 tokenizer vs Devanagari:
|
| 34 |
+
- **0 of 49,408 vocab entries contain any Devanagari codepoint.**
|
| 35 |
+
- Falls back to raw UTF-8 byte BPE: ~1-2 tokens per character.
|
| 36 |
+
- Character identity IS preserved (decode round-trips), so the signal is not
|
| 37 |
+
information-theoretically lost — but CLIP never trained on these tokens, so
|
| 38 |
+
the *embeddings* are meaningless.
|
| 39 |
+
- 77-token cap: MEASURED ~1.1 tokens/char even for conjunct-heavy strings
|
| 40 |
+
(kshatriya 8ch->9tok; pradhanmantri karyalaya 21ch->23tok). BPE merges the
|
| 41 |
+
3-byte UTF-8 sequences efficiently -- there is no conjunct blowup. With a
|
| 42 |
+
12-token caption template that leaves ~65 tokens = ~55-60 chars.
|
| 43 |
+
|
| 44 |
+
=> Must train the **text encoder** alongside the UNet. A UNet-only LoRA cannot
|
| 45 |
+
work: the conditioning vectors it would read are noise.
|
| 46 |
+
=> The token cap is NOT the binding constraint. At em 32px (~17.6px/char
|
| 47 |
+
advance) only ~27 chars fit across a 512px line, so PIXELS bind first.
|
| 48 |
+
Enforce length in tokens anyway (exact, template included), but scope is
|
| 49 |
+
set by the VAE floor.
|
| 50 |
+
|
| 51 |
+
## Verdict
|
| 52 |
+
Viable, scope bounded by the VAE floor: short, large Devanagari text
|
| 53 |
+
(~1-4 words, <=~27 chars per 512px line). Not viable: small or dense text.
|
README.md
CHANGED
|
@@ -1,3 +1,202 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- hi
|
| 5 |
+
tags:
|
| 6 |
+
- devanagari
|
| 7 |
+
- hindi
|
| 8 |
+
- text-rendering
|
| 9 |
+
- synthetic
|
| 10 |
+
- diffusion
|
| 11 |
+
- stable-diffusion
|
| 12 |
+
task_categories:
|
| 13 |
+
- text-to-image
|
| 14 |
+
size_categories:
|
| 15 |
+
- 1K<n<10K
|
| 16 |
+
pretty_name: HindiText Pilot
|
| 17 |
---
|
| 18 |
+
|
| 19 |
+
# HindiText-Pilot
|
| 20 |
+
|
| 21 |
+
4,000 synthetic 512×512 image/text pairs for training diffusion models to render
|
| 22 |
+
**Hindi text in Devanagari script**. Correct HarfBuzz shaping, exact ground-truth
|
| 23 |
+
transcriptions, per-sample glyph masks.
|
| 24 |
+
|
| 25 |
+
Built as a feasibility pilot for a Stable Diffusion 1.5 LoRA, and released
|
| 26 |
+
because the hard parts — correct shaping and the VAE size floor — are reusable
|
| 27 |
+
regardless of what you train.
|
| 28 |
+
|
| 29 |
+
> **Note on scale.** This is a *pilot*: 72 distinct words. It exists to answer
|
| 30 |
+
> "can a model learn Devanagari glyph shapes at all", not to teach the script
|
| 31 |
+
> broadly. See [Limitations](#limitations) before using it as a training set.
|
| 32 |
+
|
| 33 |
+
## Why this exists
|
| 34 |
+
|
| 35 |
+
Most Devanagari datasets target **recognition** (OCR) and are deliberately
|
| 36 |
+
adversarial — blur, occlusion, low resolution. A *generator* trained on those
|
| 37 |
+
learns to produce blurry text. This is the opposite: clean, sharp, and
|
| 38 |
+
size-constrained so every sample is something a generator should aim to match.
|
| 39 |
+
|
| 40 |
+
## What makes Devanagari hard
|
| 41 |
+
|
| 42 |
+
- **Shirorekha** — a continuous horizontal bar joins letters across a word.
|
| 43 |
+
Latin-trained models produce broken or wavy bars.
|
| 44 |
+
- **Conjuncts** — क् + ष → क्ष. Hundreds of ligatures whose shapes are not
|
| 45 |
+
compositional from their parts.
|
| 46 |
+
- **Reordering** — the matra ि is *written before* the consonant it follows
|
| 47 |
+
logically.
|
| 48 |
+
- **Three vertical zones** — matras sit above and below the base line.
|
| 49 |
+
- **Fine diacritics** — nukta ़, anusvara ं, chandrabindu ँ are 2–8 pixel
|
| 50 |
+
features that vanish under aggressive downsampling.
|
| 51 |
+
|
| 52 |
+
## Contents
|
| 53 |
+
|
| 54 |
+
```
|
| 55 |
+
data/images/ 4,000 × 512×512 JPEG (quality 95)
|
| 56 |
+
data/masks/ 4,000 × 512×512 PNG, 8-bit glyph coverage masks
|
| 57 |
+
data/metadata.jsonl one record per sample
|
| 58 |
+
data/train_words.txt 72 words used in the images
|
| 59 |
+
data/holdout_words.txt 20 words deliberately NOT rendered
|
| 60 |
+
fonts/ 22 OFL Devanagari fonts + fonts/licenses/
|
| 61 |
+
corpus/pilot_words.txt the source word list
|
| 62 |
+
src/ the generator — this dataset is reproducible
|
| 63 |
+
FINDINGS.md the measurements behind the design
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
### `metadata.jsonl`
|
| 67 |
+
|
| 68 |
+
| field | meaning |
|
| 69 |
+
|---|---|
|
| 70 |
+
| `file` | path relative to `data/` |
|
| 71 |
+
| `text` | the Hindi string rendered — exact ground truth |
|
| 72 |
+
| `caption` | training caption (varied template) |
|
| 73 |
+
| `tokens` | CLIP token count of the caption, template included |
|
| 74 |
+
| `font` | filename in `fonts/` |
|
| 75 |
+
| `em` | font em size in pixels |
|
| 76 |
+
| `x`, `y`, `w`, `h` | text bounding box |
|
| 77 |
+
| `glyphs` | shaped glyph count — differs from character count due to ligatures |
|
| 78 |
+
|
| 79 |
+
```json
|
| 80 |
+
{"file": "images/000000.jpg", "text": "रुकें",
|
| 81 |
+
"caption": "Hindi text \"रुकें\" on a board, flat design", "tokens": 18,
|
| 82 |
+
"font": "Khand-Regular.ttf", "em": 40, "x": 150, "y": 405,
|
| 83 |
+
"w": 62, "h": 48, "glyphs": 3}
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
## Statistics
|
| 87 |
+
|
| 88 |
+
| | |
|
| 89 |
+
|---|---|
|
| 90 |
+
| samples | 4,000 |
|
| 91 |
+
| resolution | 512 × 512 |
|
| 92 |
+
| words | 72 train, 20 held out (never rendered) |
|
| 93 |
+
| fonts | 22, evenly sampled (156–211 samples each) |
|
| 94 |
+
| font em size | 32–120 px, mean 75.5 |
|
| 95 |
+
| text box | 44–454 px wide, 30–161 px tall |
|
| 96 |
+
| caption tokens | 11–29 of CLIP's 77 |
|
| 97 |
+
| glyphs per sample | 2–8 |
|
| 98 |
+
|
| 99 |
+
Vocabulary spans four groups: simple no-conjunct words, real signage terms,
|
| 100 |
+
conjunct-bearing words (क्ष ज्ञ त्र श्र द्व ह्म), and diacritic stress cases
|
| 101 |
+
(nukta, anusvara, chandrabindu, visarga).
|
| 102 |
+
|
| 103 |
+
## How it was generated
|
| 104 |
+
|
| 105 |
+
Text is shaped with **HarfBuzz** (`uharfbuzz`) and rasterised per-glyph with
|
| 106 |
+
**FreeType** (`freetype-py`).
|
| 107 |
+
|
| 108 |
+
> ### ⚠️ If you extend this, do not use Pillow for the text
|
| 109 |
+
>
|
| 110 |
+
> Pillow's published wheels ship **without Raqm**, so `ImageDraw.text()` renders
|
| 111 |
+
> Devanagari **unshaped**: conjuncts break into separate letters and pre-base ि
|
| 112 |
+
> lands on the wrong side of its consonant. The output looks plausible to a
|
| 113 |
+
> non-reader while being wrong, and silently corrupts the dataset.
|
| 114 |
+
>
|
| 115 |
+
> Check with `PIL.features.check('raqm')`. If it returns `False`, use
|
| 116 |
+
> `src/render/shaper.py` here instead.
|
| 117 |
+
|
| 118 |
+
Verified by `src/diag/verify_shaping.py`, which passes on all 22 fonts: क्ष / त्र /
|
| 119 |
+
ज्ञ each collapse 3 codepoints → 1 glyph, and the base consonant lands *second*
|
| 120 |
+
in कि, proving the matra reordered ahead of it.
|
| 121 |
+
|
| 122 |
+
Backgrounds are flat, gradient or lightly textured, with foreground/background
|
| 123 |
+
luminance contrast **enforced** (≥ 0.35) rather than sampled and hoped for.
|
| 124 |
+
Captions use 10 templates × 12 surface nouns with the quoted Hindi string as the
|
| 125 |
+
single invariant anchor; the phrase "Hindi text" is dropped in ~20% of samples so
|
| 126 |
+
a model does not become dependent on a trigger phrase.
|
| 127 |
+
|
| 128 |
+
## The 32px rule
|
| 129 |
+
|
| 130 |
+
**Every sample renders text at font em size ≥ 32px, asserted at generation
|
| 131 |
+
time.** SD1.5's 4-channel VAE downsamples 8×; measured encode→decode round-trips
|
| 132 |
+
show Devanagari diacritics are destroyed below ~24px em and clean at 32px:
|
| 133 |
+
|
| 134 |
+
| font em size | VAE reconstruction |
|
| 135 |
+
|---|---|
|
| 136 |
+
| 12–20 px | destroyed — nuktas gone, conjuncts illegible |
|
| 137 |
+
| 24 px | marginal — nukta merges into the stroke |
|
| 138 |
+
| **32 px** | **clean — minimum safe size** |
|
| 139 |
+
| 48–64 px | near-perfect |
|
| 140 |
+
|
| 141 |
+
Note this is **em size**, not ink-box height: the measured ink/em ratio varies
|
| 142 |
+
0.67–1.08 depending on which matras a word carries, so ink height is
|
| 143 |
+
content-dependent and unsuitable as a threshold.
|
| 144 |
+
|
| 145 |
+
Consequence: this covers **headline- and signage-sized text**, roughly 1–4 words.
|
| 146 |
+
It is not suitable for training small or body-sized text rendering on a
|
| 147 |
+
4-channel VAE at 512px — that is a reconstruction limit no training run can
|
| 148 |
+
overcome.
|
| 149 |
+
|
| 150 |
+
## Intended use
|
| 151 |
+
|
| 152 |
+
- Fine-tuning diffusion models (LoRA or full) for Devanagari text
|
| 153 |
+
- Evaluating text-rendering quality, with exact transcriptions as ground truth
|
| 154 |
+
- Glyph-conditioned approaches (ControlNet, GlyphControl, AnyText) — masks are
|
| 155 |
+
included for this
|
| 156 |
+
- The 20 held-out words test generalisation rather than memorisation
|
| 157 |
+
|
| 158 |
+
**Not suitable for** OCR / scene-text recognition training (these are clean
|
| 159 |
+
synthetic renders, not photographs), or small-text rendering.
|
| 160 |
+
|
| 161 |
+
## Limitations
|
| 162 |
+
|
| 163 |
+
- **Synthetic only.** No photographic backgrounds, perspective, occlusion or
|
| 164 |
+
real-world lighting. A model trained solely on this renders clean text but may
|
| 165 |
+
not composite convincingly into photographs.
|
| 166 |
+
- **72 words is pilot scale** — far too small to teach the script broadly.
|
| 167 |
+
- **Partial conjunct coverage.** श्च has zero coverage in the rendered samples.
|
| 168 |
+
- **One script, one language.** Devanagari as used for Hindi. Marathi and Nepali
|
| 169 |
+
share the script with minor differences and are not specifically covered.
|
| 170 |
+
|
| 171 |
+
## Licensing
|
| 172 |
+
|
| 173 |
+
- **Images, masks, metadata, generator code** — generated from the hand-written
|
| 174 |
+
word list in `corpus/pilot_words.txt` using OFL fonts. No third-party data.
|
| 175 |
+
**CC BY 4.0.**
|
| 176 |
+
- **`fonts/`** — 22 families from Google Fonts under the **SIL Open Font License
|
| 177 |
+
1.1**, which permits redistribution. Full licence texts are included in
|
| 178 |
+
`fonts/licenses/`. The OFL applies to those files, not CC BY.
|
| 179 |
+
|
| 180 |
+
Nothing in this repository is derived from any dataset whose terms prohibit
|
| 181 |
+
redistribution.
|
| 182 |
+
|
| 183 |
+
## Reproducing
|
| 184 |
+
|
| 185 |
+
```bash
|
| 186 |
+
pip install uharfbuzz freetype-py pillow numpy transformers
|
| 187 |
+
python src/diag/get_fonts.py # fetch the 22 OFL fonts
|
| 188 |
+
python src/diag/font_audit.py # coverage + conjunct-formation check
|
| 189 |
+
python src/diag/verify_shaping.py # prove HarfBuzz shaping is active
|
| 190 |
+
python src/data/gen_pilot.py --n 4000 --out data/pilot --masks --seed 42
|
| 191 |
+
```
|
| 192 |
+
|
| 193 |
+
## Citation
|
| 194 |
+
|
| 195 |
+
```bibtex
|
| 196 |
+
@misc{hinditext_pilot_2026,
|
| 197 |
+
title = {HindiText-Pilot: synthetic Devanagari text-rendering pairs},
|
| 198 |
+
author = {Sinhal},
|
| 199 |
+
year = {2026},
|
| 200 |
+
url = {https://huggingface.co/datasets/sinhal/HindiText-Pilot}
|
| 201 |
+
}
|
| 202 |
+
```
|
data/masks/003748.png
ADDED
|
Git LFS Details
|
data/masks/003749.png
ADDED
|
Git LFS Details
|
data/masks/003750.png
ADDED
|
Git LFS Details
|
data/masks/003751.png
ADDED
|
Git LFS Details
|
data/masks/003752.png
ADDED
|
Git LFS Details
|
data/masks/003753.png
ADDED
|
Git LFS Details
|
data/masks/003754.png
ADDED
|
Git LFS Details
|
data/masks/003755.png
ADDED
|
Git LFS Details
|
data/masks/003756.png
ADDED
|
Git LFS Details
|
data/masks/003757.png
ADDED
|
Git LFS Details
|
data/masks/003758.png
ADDED
|
Git LFS Details
|
data/masks/003759.png
ADDED
|
Git LFS Details
|
data/masks/003760.png
ADDED
|
Git LFS Details
|
data/masks/003761.png
ADDED
|
Git LFS Details
|
data/masks/003762.png
ADDED
|
Git LFS Details
|
data/masks/003763.png
ADDED
|
Git LFS Details
|
data/masks/003764.png
ADDED
|
Git LFS Details
|
data/masks/003765.png
ADDED
|
Git LFS Details
|
data/masks/003766.png
ADDED
|
Git LFS Details
|
data/masks/003767.png
ADDED
|
Git LFS Details
|
data/masks/003768.png
ADDED
|
Git LFS Details
|
data/masks/003769.png
ADDED
|
Git LFS Details
|
data/masks/003770.png
ADDED
|
Git LFS Details
|
data/masks/003771.png
ADDED
|
Git LFS Details
|
data/masks/003772.png
ADDED
|
Git LFS Details
|
data/masks/003773.png
ADDED
|
Git LFS Details
|
data/masks/003774.png
ADDED
|
Git LFS Details
|
data/masks/003775.png
ADDED
|
Git LFS Details
|
data/masks/003776.png
ADDED
|
Git LFS Details
|
data/masks/003777.png
ADDED
|
Git LFS Details
|
data/masks/003778.png
ADDED
|
Git LFS Details
|
data/masks/003779.png
ADDED
|
Git LFS Details
|
data/masks/003780.png
ADDED
|
Git LFS Details
|
data/masks/003781.png
ADDED
|
Git LFS Details
|
data/masks/003782.png
ADDED
|
Git LFS Details
|
data/masks/003783.png
ADDED
|
Git LFS Details
|
data/masks/003784.png
ADDED
|
Git LFS Details
|
data/masks/003785.png
ADDED
|
Git LFS Details
|
data/masks/003786.png
ADDED
|
Git LFS Details
|
data/masks/003787.png
ADDED
|
Git LFS Details
|
data/masks/003788.png
ADDED
|
Git LFS Details
|
data/masks/003789.png
ADDED
|
Git LFS Details
|
data/masks/003790.png
ADDED
|
Git LFS Details
|
data/masks/003791.png
ADDED
|
Git LFS Details
|
data/masks/003792.png
ADDED
|
Git LFS Details
|
data/masks/003793.png
ADDED
|
Git LFS Details
|
data/masks/003794.png
ADDED
|
Git LFS Details
|