File size: 1,843 Bytes
ed53b63 fab5785 ed53b63 fab5785 ed53b63 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
---
license: apache-2.0
---
# GlyphByT5 Pretraining
This is the pretraining data for [Glyph-ByT5](https://glyph-byt5.github.io/).
## Dataset Details
> [**Glyph-ByT5: A Customized Text Encoder for Accurate Visual Text Rendering**](https://glyph-byt5.github.io/)
> [Zeyu Liu](https://github.com/lzy-tony), [Weicong Liang](https://scholar.google.com/citations?user=QvHDIygAAAAJ&hl=zh-CN), [Zhanhao Liang](https://github.com/RockeyCoss), [Chong Luo](https://www.microsoft.com/en-us/research/people/cluo/), [Ji Li](https://sites.google.com/a/usc.edu/jili/), [Gao Huang](https://www.gaohuang.net/), [Yuhui Yuan](https://www.microsoft.com/en-us/research/people/yuyua/)
> Microsoft Research Asia; Tsinghua University; Peking University; The Australian National University
> Preprint
### Dataset Description
- **Repository:** [https://github.com/AIGText/Glyph-ByT5]
- **Paper:** [https://arxiv.org/abs/2403.09622]
- **Project Page:** [https://glyph-byt5.github.io/]
## Dataset Structure
This dataset contains a json file containing the annotation file needed for Glyph-ByT5 pretraining. The json file is organized as a list of dicts. Each dict contains the following fields:
**Note: As font family and color are randomly selected during pretraining, 'color' and 'font-family' fields are None and later filled randomly in the corresponding dataset code.**
Currently, we release a subset of fonts that we use, containing 100 with free commercial use license, see [repo](https://github.com/AIGText/Glyph-ByT5) for more details.
```
{
'texts': [
text_1,
...
text_k,
],
'styles': [
{
'color': color_1,
'font-family': 'font_1',
},
...
{
'color': color_k,
'font-family': 'font_k',
},
],
'bbox': [
[x1, y1, w1, h1, a1],
...
[xk, yk, wk, hk, ak],
]
}
```
|