g41 commited on
Commit
12d9af1
·
1 Parent(s): 69b5153
README.md CHANGED
@@ -28,101 +28,98 @@ configs:
28
  path: card_samples/parquet/qa.parquet
29
  ---
30
 
31
- # KnowCP
32
 
33
- KnowCP is a benchmark for Chinese painting understanding and reasoning.
34
- It supports recognition-style tasks (region/text extraction) and knowledge/reasoning tasks (open QA, multiple choice, and multi-turn QA).
35
 
36
- ## Dataset Summary
 
37
 
38
- - Name: KnowCP
39
- - Modality: image + text
40
- - Language: Chinese
41
- - License: CC BY 4.0
42
- - Total images: 2331
43
- - Total question items (full set): 26137
44
 
45
- ## Dataset Viewer Layout
46
 
47
- The dataset card has two simple series:
48
 
49
- - `image`: first 100 single-image artworks with metadata
50
- - `qa`: 14 question types, 10 items per type (140 total)
51
 
52
- The card data is generated only from core folders:
53
 
54
- - `images/`
55
- - `kb/`
56
- - `annotations/`
57
- - `questions/`
 
 
 
58
 
59
- ## Repository Structure
60
 
61
- - `images/**`: image assets
62
- - `kb/knowledge_base.json`: artwork metadata (`title`, `artist`, `dynasty`, `institution`)
63
- - `annotations/*.json`: seal/inscription/object/technique annotation exports
64
- - `questions/by_type/*.jsonl`: source questions by type
65
- - `card_samples/parquet/image.parquet`: image series table
66
- - `card_samples/parquet/qa.parquet`: qa series table
67
 
68
- ## Data Fields in Viewer
 
69
 
70
- ### `image`
 
 
71
 
72
- - `image` (rendered image)
73
- - `image_id`
74
- - `title`
75
- - `artist`
76
- - `dynasty`
77
- - `institution`
78
- - `material`
79
 
80
- ### `qa`
 
 
 
 
 
 
 
 
 
 
 
 
 
81
 
82
- - `image` (rendered image)
83
- - `qid`
84
- - `type`
85
- - `question`
86
- - `ground_truth`
87
 
88
- ## Usage
 
 
 
89
 
90
- ```python
91
- from datasets import load_dataset
 
 
 
92
 
93
- repo_id = "g41/KnowCP"
 
 
 
94
 
95
- image_ds = load_dataset(repo_id, name="image")
96
- qa_ds = load_dataset(repo_id, name="qa")
97
 
98
- print(image_ds["train"][0]["title"])
99
- print(qa_ds["train"][0]["qid"])
100
- ```
101
 
102
- To regenerate the dataset-card samples:
 
103
 
104
- ```bash
105
- python for_hf/scripts/build_dataset_card_samples.py \
106
- --hf-repo hf_repo \
107
- --out-dir hf_repo/card_samples \
108
- --images-limit 100 \
109
- --qa-per-type 10
110
- ```
111
 
112
- ## Evaluation with This Project
 
 
 
 
113
 
114
- To run the full benchmark with local files:
115
 
116
- ```bash
117
- python github_repo/run_eval_for_hf.py \
118
- --workspace-root D:/mylib/benchmark \
119
- --items-dir D:/mylib/benchmark/hf_repo/questions/by_type \
120
- --model bytedance-seed/seed-2.0-lite \
121
- --api-base https://openrouter.ai/api/v1 \
122
- --api-key YOUR_API_KEY
123
- ```
124
-
125
- ## Citation
126
-
127
- - Code: https://github.com/41-edu/KnowCP
128
- - Dataset: https://huggingface.co/datasets/g41/KnowCP
 
28
  path: card_samples/parquet/qa.parquet
29
  ---
30
 
31
+ # KnowCP Dataset Repository
32
 
33
+ Project homepage and benchmark details:
34
+ https://41-edu.github.io/KnowCP-Benchmark/
35
 
36
+ Script repository:
37
+ https://github.com/41-edu/KnowCP
38
 
39
+ ## Project Overview
 
 
 
 
 
40
 
41
+ KnowCP is a comprehensive benchmark for evaluating multimodal large language models on Chinese painting understanding, from basic recognition to deep reasoning.
42
 
43
+ This repository is the dataset repository of KnowCP. It stores the image corpus, annotation resources, question sets, and knowledge-base metadata used by the benchmark.
44
 
45
+ ## Dataset Scale
 
46
 
47
+ The following counts are aligned with the benchmark website configuration and public content files.
48
 
49
+ 1. Paintings: 1210
50
+ 2. Images: 2331
51
+ 3. Seal annotations: 8690
52
+ 4. Colophon or inscription annotations: 2434
53
+ 5. Object or element annotations: 5052
54
+ 6. Technique annotations: 1312
55
+ 7. Total question items used by the benchmark website: 38044
56
 
57
+ ## Repository Contents
58
 
59
+ 1. images
60
+ All painting images and related sub-images used by the benchmark.
 
 
 
 
61
 
62
+ 2. questions
63
+ All benchmark QA files. We provide 14 question files under [hf_repo/questions/by_type](hf_repo/questions/by_type), and each file corresponds to one question source type.
64
 
65
+ All QA content is in Chinese.
66
+ For concrete QA presentation style and English-facing examples, see:
67
+ http://localhost:5173/#question-distribution
68
 
69
+ 14 question files and counts used in the website benchmark view:
 
 
 
 
 
 
70
 
71
+ - ITT_MHQA_choice.jsonl: 4232
72
+ - ITT_MHQA_fillin.jsonl: 4232
73
+ - MITT_MHQA_choice.jsonl: 608
74
+ - MITT_MHQA_fillin.jsonl: 608
75
+ - TTI.jsonl: 1210
76
+ - SR.jsonl: 1792
77
+ - IR.jsonl: 2351
78
+ - ER_choice.jsonl: 11359
79
+ - ER_fillin.jsonl: 5052
80
+ - TR_choice.jsonl: 1312
81
+ - TR_fillin.jsonl: 1312
82
+ - VA.jsonl: 922
83
+ - CC.jsonl: 922
84
+ - PR.jsonl: 922
85
 
86
+ Simple task descriptions, following the website organization:
 
 
 
 
87
 
88
+ Foundational Knowledge
89
+ - ITT and MITT style tasks: identify title-level information from one image or multiple images.
90
+ - TTI: retrieve the matching image from title information.
91
+ - MHQA: multi-step reasoning over image and context, provided in choice and fill-in formats.
92
 
93
+ Visual Content
94
+ - SR: seal recognition.
95
+ - IR: inscription or colophon recognition.
96
+ - ER: element recognition, provided in multiple-choice and fill-in formats.
97
+ - TR: painting technique recognition, provided in multiple-choice and fill-in formats.
98
 
99
+ Deep Reasoning
100
+ - VA: visual analysis.
101
+ - CC: cultural context reasoning.
102
+ - PR: provenance research reasoning.
103
 
104
+ 3. annotations
105
+ Fine-grained annotations produced by our annotators for each painting image, including seals, inscriptions, elements, and techniques.
106
 
107
+ Annotation visualization references:
108
+ http://localhost:5173/#distribution
 
109
 
110
+ 4. kb
111
+ Core metadata per painting, including identity and background attributes used by benchmark tasks.
112
 
113
+ ## Folder Reference
 
 
 
 
 
 
114
 
115
+ - [hf_repo/images](hf_repo/images): all images
116
+ - [hf_repo/questions](hf_repo/questions): question sets
117
+ - [hf_repo/annotations](hf_repo/annotations): fine-grained annotations
118
+ - [hf_repo/kb](hf_repo/kb): painting metadata knowledge base
119
+ - [hf_repo/mappings](hf_repo/mappings): mapping resources used in processing and alignment
120
 
121
+ ## If You Want to Run Evaluation
122
 
123
+ This repository provides data only.
124
+ For actual model benchmarking and score computation, please use the script repository:
125
+ https://github.com/41-edu/KnowCP
 
 
 
 
 
 
 
 
 
 
annotations/objects_annotation_applied.json CHANGED
The diff for this file is too large to render. See raw diff
 
images/IMG000077_0.jpg CHANGED

Git LFS Details

  • SHA256: 5deee8bb0648bcc54a0371a30af98b051fdc839dcd497911801e281d92ac3745
  • Pointer size: 129 Bytes
  • Size of remote file: 4.09 kB

Git LFS Details

  • SHA256: 087c46520b5c8e680cb03b72521299131bea7aa275f1142095420250e3984044
  • Pointer size: 132 Bytes
  • Size of remote file: 1.25 MB
questions/by_type/ER_choice.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
questions/by_type/ER_fillin.jsonl CHANGED
The diff for this file is too large to render. See raw diff