Datasets:
The dataset viewer is not available for this subset.
Exception: SplitsNotFoundError
Message: The split names could not be parsed from the dataset config.
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
for split_generator in builder._split_generators(
~~~~~~~~~~~~~~~~~~~~~~~~~^
StreamingDownloadManager(base_path=builder.base_path, download_config=download_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/folder_based_builder/folder_based_builder.py", line 251, in _split_generators
raise ValueError(
"`file_name`, `*_file_name`, `file_names` or `*_file_names` must be present as dictionary key in metadata files"
)
ValueError: `file_name`, `*_file_name`, `file_names` or `*_file_names` must be present as dictionary key in metadata files
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 68, in compute_split_names_from_streaming_response
for split in get_dataset_split_names(
~~~~~~~~~~~~~~~~~~~~~~~^
path=dataset,
^^^^^^^^^^^^^
config_name=config,
^^^^^^^^^^^^^^^^^^^
token=hf_token,
^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
info = get_dataset_config_info(
path,
...<6 lines>...
**config_kwargs,
)
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 291, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
ShapeMatte
ShapeMatte pairs 50,000 original geometric graphics with 250,000 synthetic background-removal examples. Each graphic is available as a transparent PNG and an editable SVG. The same graphic is also rendered on five backgrounds to create five lossless WebP inputs. The PNG provides the original foreground colors and per-pixel opacity.
Dataset Details
ShapeMatte is designed for recovering geometric graphics from flattened images and for reusing the original artwork. The graphics include simple shapes, compound arrangements, cutouts, thin linework, and translucent layers. Raster images are 256 × 256 pixels. The dataset was curated by Bodhisatta Maiti and is released under Creative Commons Attribution 4.0 International (CC BY 4.0).
| Shape family | Example subtypes | Original assets | Paired examples |
|---|---|---|---|
| Triangles and quadrilaterals | Right triangles, squares, rectangles, and trapezoids | 6,250 | 31,250 |
| Circles and curved shapes | Circles, ellipses, crescents, and capsules | 6,250 | 31,250 |
| Polygons and stars | Pentagons, concave polygons, starbursts, and rosettes | 6,250 | 31,250 |
| Arrows and linework | Zigzag arrows, brackets, chevrons, and branching paths | 6,250 | 31,250 |
| Rings, frames, and cutouts | Circular rings, polygonal frames, stencils, and offset holes | 6,250 | 31,250 |
| Badges, tabs, and ribbons | Shields, seals, notched banners, and folded ribbons | 6,250 | 31,250 |
| Interlocking and repeating shapes | Linked rings, tile clusters, radial patterns, and geometric chains | 6,250 | 31,250 |
| Layered compositions | Overlapping diamonds, stacked polygons, layered frames, and layered arrows | 6,250 | 31,250 |
| Total | 64 subtypes | 50,000 | 250,000 |
Uses
Direct Use
- Train or evaluate image-matting and foreground-extraction models on a flattened WebP input paired with its transparent PNG target.
- Predict opacity from the input and use the target PNG's alpha channel as supervision. For full transparent-graphic recovery, use both foreground color and alpha from the PNG.
- Reuse the original transparent PNGs or edit the SVGs for interface graphics, diagrams, slides, or design prototypes.
Out-of-Scope Use
ShapeMatte is designed around synthetic 2D graphics. For photographic backgrounds, fine natural details such as hair or fur, and glass with reflections or refraction, use evaluation data that represents those conditions.
Dataset Structure
| Location | Contents | Count |
|---|---|---|
assets/ |
Transparent RGBA PNGs with original foreground color and alpha | 50,000 |
vectors/ |
Editable SVGs for the same original graphics | 50,000 |
composites/ |
Flattened RGB inputs encoded as lossless WebP | 250,000 |
metadata.csv |
One row per composite and its linked original files | 250,000 rows |
Each asset_id appears in exactly five rows. Those rows have distinct pair_id and input_webp values and share a single target_png and editable_svg. File paths in the CSV are relative to the dataset root.
Data Fields
| Field | Meaning |
|---|---|
pair_id |
Unique ID for one flattened input and its target |
asset_id |
ID for the original graphic shared by its five pairs |
input_webp |
Relative path to the flattened WebP input |
target_png |
Relative path to the original transparent PNG |
editable_svg |
Relative path to the editable vector source |
shape_family |
Primary shape family assigned during generation |
shape_subtype |
More specific construction label within the family |
construction |
Construction style, such as standalone, compound, stroke, or layered |
background_type |
One of solid, gradient, stripes, grid_or_dots, or geometric_texture |
width, height |
Raster dimensions in pixels |
For example, pair_000001 uses composites/000/pair_000001.webp as input and assets/000/asset_000001.png as the target. Its vector source is vectors/000/asset_000001.svg. This pair shows a right-triangle graphic on a solid background.
Splits
ShapeMatte is released as one collection. When creating train, validation, or test splits, group rows by asset_id so all five variants of a graphic stay together. For a stricter generalization test, hold out entire shape_subtype values.
Dataset Creation
Curation Rationale
Flattened graphics bake the background into the visible pixels, including where it shows through a translucent layer. ShapeMatte retains the original graphic, so models can be evaluated on whether they preserve opacity, transparent holes, fine strokes, and foreground colors. Five backgrounds per asset let users compare foreground recovery while varying the background.
Source Data and Annotations
The foreground graphics and backgrounds were created procedurally for ShapeMatte. The SVG is the original vector source. It is rendered to a transparent PNG and composited onto one background of each of the five types to produce the WebP inputs. Asset labels and file relationships come from the generation process. The ground-truth alpha is the alpha channel of the target PNG.
Quality Checks
Every released PNG and SVG was checked for render correspondence, and each WebP was decoded and compared pixel for pixel with a recomposite of its linked PNG and background. Automated checks also covered raster dimensions, foreground visibility, duplicate rendered originals, file references, and exactly five background types per asset. A geometry-based similarity pass replaced 2,036 candidates flagged as too similar. The replacements passed the same file and pixel checks. Final verification confirmed the asset, pair, and family counts.
Personal and Sensitive Information
The dataset consists of procedurally generated geometric graphics and backgrounds. The CSV contains generated IDs, relative file paths, and technical labels.
Bias, Risks, and Limitations
The dataset is balanced by shape family and background type. Visual complexity, coverage, color, and opacity still vary across examples. The procedural layouts and fixed raster resolution limit how well a score on ShapeMatte predicts performance on designs from other sources. A single flattened image may admit multiple plausible combinations of foreground color and opacity. The source PNG provides the reference used to generate each input.
For evaluation, report results on asset-disjoint splits and include performance by shape family and background type. For deployment on real designs, evaluate on independently authored graphics and the backgrounds you expect in use.
Citation
@misc{maiti2026shapematte,
author = {Maiti, Bodhisatta},
title = {ShapeMatte},
year = {2026},
howpublished = {Dataset}
}
Dataset Card Contact
- Downloads last month
- 45