CoolFace
Datasetpublic

busy-pig/ChinaPaint

CCPP Evaluating and Benchmarking Classical Chinese Poetry-to-Painting for Multimodal Large Language Models CCPP: Classical Chinese Poetry-to-Painting Project A comprehensive project supporting the research on Classical Chinese Poetry-to-Painting (CCPP) generation and evaluation, including benchmark datasets, human painting references, model outputs, and auxiliary scripts. This project serves as the official code & data repository for the corresponding academic… See the full description on the dataset page: https://huggingface.co/datasets/busy-pig/ChinaPaint.

sourceHugging Faceupdated 20h agoView on Hugging Face
1likes217downloads
Dataset Card

CCPP

Evaluating and Benchmarking Classical Chinese Poetry-to-Painting for Multimodal Large Language Models

CCPP: Classical Chinese Poetry-to-Painting Project

A comprehensive project supporting the research on Classical Chinese Poetry-to-Painting (CCPP) generation and evaluation, including benchmark datasets, human painting references, model outputs, and auxiliary scripts. This project serves as the official code & data repository for the corresponding academic paper, focusing on assessing Multi-Modal Large Language Models (MLLMs)’ ability to understand traditional Chinese culture and generate context-aligned paintings.

Table of Contents

Project Overview

The CCPP project is designed to facilitate research on "Classical Chinese Poetry-to-Painting" generation. It provides a high-quality benchmark (CCPP-Bench), human-created painting samples, MLLM-generated painting outputs, and tools for data processing/evaluation. The project aims to enable reproducible research on evaluating MLLMs’ understanding of classical Chinese culture (poetry, idioms, classical prose) and their cross-modal generation capabilities. We provide a partial dataset (300 samples) and human-painting. The full dataset will be released upon paper acceptance.

Key Data Files (Priority Order)

1. CCPP-Bench: all_imge_meta.xlsx

Located in: benchmark/CCPP-Bench/ As the core metadata file of CCPP-Bench (the project’s benchmark dataset), this Excel file contains structured metadata for all samples in the dataset, supporting traceability, categorization, and statistical analysis. Its key contents include:

  • Text Metadata:
  • Text-Style: Classification of textual content (382 Idioms, 466 Shi/Ci Poetry, 231 Wen Yan Wen (Classical Prose)).
  • Text-Dynasty: Historical period of the text (Warring States, Han, Tang, Song, Yuan, Ming, Qing, and Wei/Jin/Southern-Northern Dynasties).
  • Poetry-Theme: Thematic category of the text (Frontier and Warfare, Landscape and Countryside, Lyricism and Self-Expression, etc.).
  • Image Metadata:
  • Painting-Object: Subject of the painting (Taoist and Buddhist, Genre, Flower-and-Bird, Landscape, Portrait, Figure).
  • Painting-Technique: Traditional Chinese painting techniques (Bai Miao, Gongbi Dan Cai, Gongbi Zhong Cai, Xieyi Shuimo).
  • Mapping Relationships: Links each textual sample to its corresponding human/MLLM-generated painting, enabling targeted evaluation (e.g., assessing MLLMs’ performance on Tang Dynasty poetry or Xieyi-style paintings).

This file is the foundation for dataset usage—researchers can filter samples by metadata (e.g., "Tang Dynasty + Landscape theme") to conduct grouped experiments.

2. Human Painting References: human_painting.zip

Located in: human_paintings/ A compressed archive of human-created paintings inspired by classical Chinese poetry, serving as the "gold standard" for evaluating MLLM-generated paintings. Key details:

  • Collection Sources(Human score on six dimensions:`CCPP_image_scoring_annotations.xlsx`):
  • Public platforms (classical poetry websites, educational/cultural portals, Xiaohongshu).
  • Authorized electronic scrolls (via copyright email communication).
  • Chinese textbook illustrations (PEP edition, junior/senior high school).
  • Sample Characteristics:
  • Total samples: ~650 (300 from public poetry sites, 100 from educational platforms, 50 from other sites, 50 from authorized scrolls, 100 from textbooks).
  • Artistic styles: Covers core traditional Chinese painting styles (ink wash, Gongbi, blue-and-green landscape, etc.).
  • Usage: Unzip to the human_paintings/ folder (automatically organized by Painting-Technique or Text-Theme). These paintings are used to compare with MLLM outputs in 6-dimensional human evaluation (Relevance, Accuracy, Aesthetic, etc.).

Folder Structure & Description

The project follows a modular folder structure for clarity and usability:

Folder NamePurpose & Key Contents
benchmark/Stores the CCPP-Bench dataset. Includes: <br> - all_imge_meta.xlsx (core metadata). <br> - prompt_templates/ (T2I prompts for MLLMs: "Poetry-only" and "Poetry+Explanation" modes).
human_paintings/Unzipped directory of human_painting.zip. Organized into subfolders: <br> - style_based/ (BaiMiao/, GongbiDanCai/, XieyiShuimo/). <br> - theme_based/ (Landscape/, FrontierWarfare/, etc.).
model_outputs/MLLM-generated paintings for comparison. Subfolders by model: <br> - Qwen-Image/ (outputs of Alibaba Qwen-Image 20B). <br> - SD-3.5/ (outputs of Stable Diffusion 3.5 Medium). <br> - DALL-E-3/ (outputs via OpenAI API). <br> - Imagen4/ (outputs via Google AI Studio).
docs/Project documentation. Includes: <br> - dataset_guide.md (detailed CCPP-Bench usage). <br> - evaluation_guide.md (6-dimensional human evaluation protocol). <br> - appendix_figures/ (supplementary figures from the paper).
scripts/Auxiliary scripts for data processing and evaluation: <br> - data_filter.py (filter samples by metadata). <br> - eval_metrics.py (calculate quantitative metrics for model outputs). <br> - prompt_generator.py (generate standardized T2I prompts).

File Details

Beyond the key files/folders above, the project includes the following root-level files:

File NamePurpose
README.mdThis file—project overview, usage guide, and file structure.
LICENSEProject license (Apache 2.0, allows non-commercial academic use).
requirements.txtDependencies for running auxiliary scripts: <br> - Python 3.10+ <br> - Pandas (metadata processing) <br> - Pillow (image handling) <br> - OpenAI/Google API clients (model inference).
citation.bibBibTeX entry for citing the corresponding paper (if used in research).
.env.exampleTemplate for environment variables (e.g., API keys for DALL-E 3/Imagen4). Copy to .env and fill in your keys.

Quick Start

1. Clone the Repository

bash
git clone https://github.com/yyy1103/CCPP.git
cd CCPP

### 2. Install Dependencies

pip install -r requirements.txt

3. Access Key Data

·CCPP-Bench Metadata: Open benchmark/allimgemeta.xlsx with Excel/LibreOffice to explore sample metadata. · Human Paintings: Unzip humanpainting.zip to humanpaintings/ using:

bash
unzip human_painting.zip -d human_paintings/
Model Outputs: Navigate to model_outputs/ to access pre-generated paintings from different MLLMs.


This project is licensed under the Apache License 2.0—see the LICENSE file for details. Non-commercial academic use is permitted; for commercial use, please contact the project maintainers.