--- dataset_info: features: - name: image dtype: image - name: guide dtype: image - name: text dtype: string splits: - name: train num_bytes: 108590285.0 num_examples: 4800 - name: validation num_bytes: 28751724.0 num_examples: 1200 - name: test num_bytes: 26002267.54 num_examples: 1271 download_size: 163720649 dataset_size: 163344276.54 configs: - config_name: default data_files: - split: train path: data/train-* - split: validation path: data/validation-* - split: test path: data/test-* ---

Mitigating Long-tail Distribution in Oracle Bone Inscriptions: Dataset, Model, and Benchmark ☯️

_The first attempt to apply diffusion model in realistic and controllable OBI generation_
Jinhao Li1*, Zijian Chen2*, Runze Jiang3, Tingzhu Chen3†, Changbo Wang1†, Guangtao Zhai2
1School of Computer Science and Technology, East China Normal University
2Institute of Image Communication and Information Processing, Shanghai Jiao Tong University
3School of Humanities, Shanghai Jiao Tong University
*Both authors contributed equally to this research Corresponding authors

![teaser.png](https://cdn-uploads.huggingface.co/production/uploads/672cb2df758d4a53788847a7/TfNo5DhxlsUbtuqB-f2sT.png) > Overview of the proposed **Oracle-P15K** dataset. The dataset comprises 14,542 OBI images with structure-aligned expert-annotated glyphs. Based on this, we present a pseudo OBI image generator, namely **OBIDiff**, to alleviate the long-tail distribution problem in current OBI datasets. Extensive experiments demonstrate both the necessity of Oracle-P15K and the effectiveness of OBIDiff in improving the performance of downstream OBI tasks. ## Release πŸš€ - [2025/8/3] ⚑️ Dataset, code, pre-trained models are released ! - [2025/7/6] ⚑️ Our paper has been accepted by ACM MM 2025 ! - [2025/4/13] ⚑️ [Github repo](https://github.com/OBI-Future/Oracle-P15K) for **Oracle-P15K** is online ! ## Code πŸ’» Create a conda environment and install dependencies. Attach a control net to the SD model: ``` python tool_add_control.py ./models/v1-5-pruned.ckpt ./models/control_sd15_ini.ckpt ``` Organize the dataset into a JSON file: ``` python anno.py ``` Training & Testing. Dataset and checkpoint are available at [huggingface](https://huggingface.co/datasets/lomljhoax/Oracle-P15K) and [google drive](https://drive.google.com/file/d/18Hh0bzl-a5BfI1Z-56KmRF8ZOqIWwprB/view?usp=drive_link). We suggest to modify some logger settings when conducting evaluation. The notes are provided in [logger.py](obidiff/logger.py). ## Motivations πŸ’‘ The existing OBI datasets suffer from a long-tail distribution problem. Consequently, OBI-related models achieve superior performance in majority classes while underperforming in minority classes. Therefore, we construct **Oracle-P15K**, a large-scale structure-aligned OBI dataset comprising **14,542** images infused with domain knowledge from OBI experts. The Oracle-P15K dataset can also serve as a comprehensive benchmark for researchers to develop and evaluate their methods for dealing with other OBI information processing tasks, such as OBI denoising, recognition, etc. ![datasets.png](https://cdn-uploads.huggingface.co/production/uploads/672cb2df758d4a53788847a7/hMN1tc_UYqphasYyVgCTr.png) ## Construction Pipeline 🧩 Focusing on **structure-aligned** image pairs for OBI generation and denoising models. ![pipeline.png](https://cdn-uploads.huggingface.co/production/uploads/672cb2df758d4a53788847a7/nG7aIMjl0gWeBahD5gU5d.png) ## Pseudo OBI Generator πŸ€– Our **OBIDiff** consists of an autoencoder, a stable diffusion (SD) model, a glyph encoder, and a style encoder. Given a clean glyph image and a target rubbing-style image, it can effectively transfer the noise style of the original rubbing to the glyph image. ![method.png](https://cdn-uploads.huggingface.co/production/uploads/672cb2df758d4a53788847a7/mMht6lIkDFdjx2pZ1Fy22.png) ## Results on OBI Generation and Denoising Tasks πŸ“Œ
Qualitative results on the OBI generation tasks (click to expand) ![generation.png](https://cdn-uploads.huggingface.co/production/uploads/672cb2df758d4a53788847a7/GKkdRT641FzeHj4aiPy5f.png)
Quantitative results on the OBI generation tasks (click to expand) ![quant_gen.png](https://cdn-uploads.huggingface.co/production/uploads/672cb2df758d4a53788847a7/THbix48dYvmvqCMj53AX-.png) - Fitted kernel distribution of four low-level features including brightness, contrast, sharpness, and spatial information (SI): ![features.png](https://cdn-uploads.huggingface.co/production/uploads/672cb2df758d4a53788847a7/00yV_2IqNm-zFGLdFIoZH.png) - Recognition accuracy of augmented images generated by the proposed OBIDiff and other OBI generation methods w.r.t. the scale of data augmentation: ![scales.png](https://cdn-uploads.huggingface.co/production/uploads/672cb2df758d4a53788847a7/PdToI_nIYvBMzdS_6YuzR.png)
Qualitative results on the OBI denoising tasks (click to expand) ![denoising.png](https://cdn-uploads.huggingface.co/production/uploads/672cb2df758d4a53788847a7/NOK0l06u6o5KAMIvNmZzX.png)
Quantitative results on the OBI denoising tasks (click to expand) ![quant_den.png](https://cdn-uploads.huggingface.co/production/uploads/672cb2df758d4a53788847a7/nYtijzLeH9gbpRteZslZ8.png)
## User Preference Study πŸ‘₯ We develop a web-based [user interface](https://ljholyground.github.io/) with automated navigation to facilitate the evaluation process. ![user.png](https://cdn-uploads.huggingface.co/production/uploads/672cb2df758d4a53788847a7/IIzUfLmuUv8k0H5QSTVba.png)
## Contact βœ‰οΈ Please contact the first author of this paper for queries. - Jinhao Li, `lomljhoax@stu.ecnu.edu.cn` ## Citation πŸ“Ž If you find our work interesting, please feel free to cite our paper: ``` @misc{li2025mitigatinglongtaildistributionoracle, title={Mitigating Long-tail Distribution in Oracle Bone Inscriptions: Dataset, Model, and Benchmark}, author={Jinhao Li and Zijian Chen and Runze Dong and Tingzhu Chen and Changbo Wang and Guangtao Zhai}, year={2025}, eprint={2504.09555}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2504.09555}, } ``` ## Acknowledgements πŸ† This work was supported by the National Social Science Foundation of China (24Z300404220), Shanghai Jiao Tong University Key Project of Intelligent Humanities and Social Sciences (ZHWK2506), and the National Social Science Foundation (Arts) Major Project (22ZD05).