--- license: other task_categories: - image-to-text - text-to-image tags: - art - chinese-painting - museum - caption - ocr - parquet size_categories: - 10K`, the layout the `datasets` library uses for its `Image` feature, so every image can be previewed in the dataset viewer: ```python from datasets import load_dataset ds = load_dataset("kaupane/chinese-painting-collection", split="train") ds[0]["image"].size # the photograph ds[0]["caption_long"] # long caption, or None ``` Columns: `image_id`, `shard`, `source`, `object_no`, `title`, `artist`, `category`, `culture`, `view_type`, `caption_zh`, `caption_en`, `caption_long`, `ocr_text`, `artifacts` (list), `bbox` (list of four floats), `image`. `bbox` is a normalised `[x_min, y_min, x_max, y_max]` in per-mille coordinates (0–1000). Crop with `img.crop((x0*W//1000, y0*H//1000, x1*W//1000, y1*H//1000))`; when it is empty, use the image as it is. `previews/` shows twelve before/after pairs so the effect of the crop can be seen without loading the data. View-type distribution: `mounted` 43,548 · `full` 36,253 · `detail` 11,637. ## Suggested filtering - **Training on artwork only**: apply the `bbox` crop (recommended). Images with an empty `bbox` need no crop. - **Cleanest subset**: also drop rows whose `artifacts` is non-empty. - **Exclude mounting borders**: keep `view_type == "full"` or `"detail"`. - **Chinese paintings only**: keep `culture == "chinese"`. - **Long-text training**: use `caption_long` where present. ## Caveats - Captions and OCR are machine-generated by lightweight VLMs; expect occasional errors, especially in cursive-script calligraphy transcription. Where a transcription is quoted in a caption, it is the model's reading, not a scholarly edition. - The crop box is the model's answer to "where is the artwork". It usually removes the color chart, ruler and label strip, and in most cases leaves a thin strip of the photograph's background along one edge. - `detail` views are close-ups of larger works and may duplicate content present in `full` views of the same object (same `object_no`). - A small number of images have artifacts but no box (171) and are shipped uncropped. ## Licensing Images retain the licenses of their sources (see table above). The NPM portion requires attribution to 國立故宮博物院 (National Palace Museum, Taipei) under the Taiwan Open Government Data License v1. Annotations (captions, OCR, classifications, boxes) are released under CC-BY-4.0.