Leo-Zheng commited on
Commit
56bc0a6
·
verified ·
1 Parent(s): bd21797

Add card and licence

Browse files
Files changed (2) hide show
  1. LICENSE +19 -0
  2. README.md +118 -0
LICENSE ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CivilCADBench Dataset Licence (draft, wording to be confirmed by the authors)
2
+
3
+ 1. Permitted use. You may download, use and reproduce the dataset for non-commercial research and for teaching.
4
+
5
+ 2. Not permitted. You may not use the dataset or any part of it for a commercial purpose, including training or
6
+ evaluating a product or service that is sold or licensed. You may not use the drawings for design, construction
7
+ or any other engineering work. You may not try to identify or contact the persons or organisations involved in
8
+ the projects the drawings come from, or try to restore information that was removed from the drawings.
9
+
10
+ 3. Redistribution. You may not redistribute the dataset or a modified copy of it. Point others to this repository
11
+ instead. Results, figures and short excerpts in research publications are allowed.
12
+
13
+ 4. Attribution. Publications that use the dataset cite the CivilCADBench paper.
14
+
15
+ 5. Removal. If the authors remove an item from the dataset, delete your copies of that item when you learn of it.
16
+
17
+ 6. No warranty. The dataset is provided as is. The drawings must not be relied on for any engineering purpose.
18
+
19
+ 7. The code in the CivilCADBench code repository is licensed separately.
README.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ # Draft for internal review. Wording and licence text are for the authors to decide.
3
+ pretty_name: CivilCADBench
4
+ language:
5
+ - zh
6
+ license: other
7
+ license_name: civilcadbench-research-only
8
+ license_link: LICENSE
9
+ task_categories:
10
+ - visual-question-answering
11
+ - image-to-text
12
+ tags:
13
+ - civil-engineering
14
+ - engineering-drawings
15
+ - cad
16
+ - dxf
17
+ - benchmark
18
+ size_categories:
19
+ - 1K<n<10K
20
+ configs:
21
+ - config_name: single_sheet
22
+ data_files: data/understanding/single_sheet/items.jsonl
23
+ - config_name: multi_sheet
24
+ data_files: data/understanding/multi_sheet/items.jsonl
25
+ ---
26
+
27
+ # CivilCADBench
28
+
29
+ CivilCADBench measures how much of the file behind a printed civil engineering drawing a multimodal model can
30
+ recover, in three tasks of rising difficulty: understanding a drawing set, reconstructing it as editable CAD, and
31
+ designing a new sheet for it. The drawings are real construction drawing sets of roads, bridges, tunnels and
32
+ municipal works; questions and answers are in Chinese.
33
+
34
+ - Project page and leaderboard: https://agenticivil.com/civilcadbench/
35
+ - Code, scorers and a small sample: https://github.com/AgentiCivil/CivilCADBench
36
+
37
+ ## Contents
38
+
39
+ | Part | Folder | Size |
40
+ |---|---|---|
41
+ | Understanding, Single-Sheet | `data/understanding/single_sheet` | 1,800 questions, one page image each |
42
+ | Understanding, Few-Sheet | `data/understanding/multi_sheet` | 379 questions, 1,935 sub-questions |
43
+ | Understanding, Full-Set | `data/understanding/multi_sheet` | 326 of the 379 questions posed on the whole set, 1,966 sub-questions |
44
+ | Reconstruction L1 | `data/reconstruction/L1` | 232 pages |
45
+ | Reconstruction L2 | `data/reconstruction/L2` | 28 sets, 230 pages |
46
+ | Design L3 | `data/reconstruction/L3` | 19 tasks |
47
+
48
+ Every item is self-contained: its folder or its row lists all the files it needs, and no item refers to the files
49
+ of another item. Pages that several questions use are stored once per question.
50
+
51
+ ### Understanding
52
+
53
+ ```
54
+ data/understanding/
55
+ single_sheet/items.jsonl one question per line
56
+ single_sheet/pages/SS-0001.png ... the page of that question
57
+ multi_sheet/items.jsonl one question per line, its sub-questions nested
58
+ multi_sheet/prompts.json the instructions used for questions and sub-questions
59
+ multi_sheet/images/<id>/few_sheet/01.png ... the pages shown in Few-Sheet, in the order shown
60
+ multi_sheet/images/<id>/full_set/p01.png ... every page of the set (questions posed in Full-Set only)
61
+ ```
62
+
63
+ All questions are multiple-response choice questions (one or more correct options); sub-questions ask for a
64
+ number, a count or a short label. Field descriptions are in `docs/DATA.md` of the code repository.
65
+
66
+ ### Reconstruction and design
67
+
68
+ One folder per task with `TASK.md`, the input (`input.pdf`, or `ref/` for L3) and the ground truth under `gt/`
69
+ (layered DXF files and their metadata).
70
+
71
+ ## How to use
72
+
73
+ ```bash
74
+ git clone https://github.com/AgentiCivil/CivilCADBench && cd CivilCADBench && pip install -e .
75
+ ccb --data <this dataset>/data selfcheck
76
+ ccb --data <this dataset>/data export understanding --tier single --out requests/
77
+ ccb --data <this dataset>/data grade understanding --tier single responses.jsonl
78
+ ccb --data <this dataset>/data export workspace --level L1 --out runs/my-agent
79
+ ccb score runs/my-agent
80
+ ```
81
+
82
+ `ccb` hands out the inputs as files and scores the outputs you hand back; it never calls a model.
83
+
84
+ Scoring is deterministic; no model is used as a judge. See `docs/PROTOCOL.md` and `docs/SCORING.md` in the code
85
+ repository.
86
+
87
+ ## How the drawings were prepared
88
+
89
+ The source drawings are real project documents. Before release:
90
+
91
+ - Personal information was removed: names, signatures, registration stamps, phone numbers, file metadata.
92
+ - Organisation information was removed: design offices, owners, title blocks, stamps and letterheads.
93
+ - Project-name fields were removed: the project name in title blocks and in the header fields of table pages.
94
+ - Engineering content was kept: road, bridge and place names inside the drawings and in the design notes (questions
95
+ refer to objects by these names), stake numbers, coordinates, dimensions.
96
+ - Single-Sheet pages are white outside the drawing area. Multi-sheet pages keep the sheet-title and
97
+ sheet-number cells of the title block, because questions refer to sheets by title.
98
+ - Pages of a set that are documents and that no question uses are released as blank pages, so that page numbers
99
+ stay the same.
100
+ - Ground-truth DXF files were cleaned of title-block text and metadata and score identically to the originals
101
+ under the released scorer; PDFs were re-saved without metadata.
102
+
103
+ Four multi-sheet questions of the evaluated benchmark are not part of the release: one asked for the names of
104
+ persons, and three were answered only from approval and review documents bound into a set.
105
+
106
+ If you find personal or organisation information that was missed, please open an issue in the code repository and
107
+ it will be removed.
108
+
109
+ ## Licence
110
+
111
+ Research use only. Commercial use is not permitted. The drawings may not be used to identify or contact the
112
+ persons or organisations involved in the projects. Full terms: `LICENSE`.
113
+
114
+ ## Citation
115
+
116
+ ```
117
+ (to be added)
118
+ ```