Update README.md
Browse files
README.md
CHANGED
|
@@ -10,4 +10,44 @@ tags:
|
|
| 10 |
- art
|
| 11 |
size_categories:
|
| 12 |
- 1K<n<10K
|
| 13 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
- art
|
| 11 |
size_categories:
|
| 12 |
- 1K<n<10K
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
# 🧠 CalliReader: Contextualizing Chinese Calligraphy via an Embedding-aligned Vision Language Model
|
| 18 |
+
<div align="center">
|
| 19 |
+
<a href="https://github.com/LoYuXr/CalliReader">📂 Code</a>
|
| 20 |
+
<a href="https://arxiv.org/pdf/2503.06472">📄 Paper</a>
|
| 21 |
+
</div>
|
| 22 |
+
|
| 23 |
+
**CalliBench** is aimed to comprehensively evaluate VLMs' performance on the recognition and understanding of Chinese calligraphy.
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
## 📦 Dataset Summary
|
| 28 |
+
|
| 29 |
+
* **Samples**: 3,192 image–annotation pairs
|
| 30 |
+
* **Tasks**: **Full-page recognition** and **Contextual VQA** (choice of author/layout/style, bilingual interpretation, and intent analysis).
|
| 31 |
+
* **Annotations**:
|
| 32 |
+
|
| 33 |
+
* Metadata of author, layout, and style.
|
| 34 |
+
* Fine-grained annotations of **character-wise bounding boxes and labels**.
|
| 35 |
+
* Certain samples include **contextual VQA**.
|
| 36 |
+
|
| 37 |
+
## 🧪 How To Use
|
| 38 |
+
All **.parqeut** files of different tiers can be found in the sub-folders of **data**. **Pandas** can be used to parse and further process those files.
|
| 39 |
+
|
| 40 |
+
For example, to load a sample and convert its image into a .jpg file:
|
| 41 |
+
```
|
| 42 |
+
import pandas as pd
|
| 43 |
+
import io
|
| 44 |
+
from PIL import Image
|
| 45 |
+
df = pd.read_parquet('./data/train.parquet')
|
| 46 |
+
image_data = df.iloc[0]['image']
|
| 47 |
+
image = Image.open(io.BytesIO(image_data['bytes']))
|
| 48 |
+
image.save('output_image.jpg')
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## 🤗 License
|
| 52 |
+
|
| 53 |
+
Apache 2.0 – open for research and commercial use.
|