Datasets:
Chart2Code Quality Attention
Training data used for the yifei-12/charttocode model. It contains 11,712
chart-to-Matplotlib examples together with the chart images and the auxiliary
attention-supervision artifacts used by positive-teacher KL training.
Files
chart2code_quality_attn.json: ShareGPT-style user/assistant examples.archives/images_sharded.tar: the 11,712 chart images referenced by the dataset JSON, stored asimages_sharded/<prefix>/<id>.pngafter extraction.visual_token_masks.json: visual-token supervision masks.quality_block_index.json: chart-element block annotations.archives/enhanced_rois_sharded.tar: title/legend ROI crops, plusenhanced_rois/enhanced_roi_index.jsonafter extraction.
Extract both archives at the repository root before training:
tar -xf archives/images_sharded.tar
tar -xf archives/enhanced_rois_sharded.tar
All image and ROI references then resolve as repository-relative paths. Image IDs are sharded by their first three digits to stay within Hugging Face's per-directory file limit.
Load the records
from datasets import load_dataset
dataset = load_dataset(
"json",
data_files="chart2code_quality_attn.json",
split="train",
)
The records use messages and images fields. Resolve entries in images
relative to the downloaded repository root.
Related model
The corresponding fine-tuned model is available at
yifei-12/charttocode.
- Downloads last month
- 24