Dataset Viewer
The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code: ConfigNamesError
Exception: TypeError
Message: 'str' object is not a mapping
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 66, in compute_config_names_response
config_names = get_dataset_config_names(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
dataset_module = dataset_module_factory(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1029, in dataset_module_factory
raise e1 from None
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1004, in dataset_module_factory
).get_module()
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 603, in get_module
metadata_configs = MetadataConfigs.from_dataset_card_data(dataset_card_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/utils/metadata.py", line 157, in from_dataset_card_data
param: value if param != "features" else Features._from_yaml_list(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 2045, in _from_yaml_list
return cls.from_dict(from_yaml_inner(yaml_data))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 2038, in from_yaml_inner
return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'str' object is not a mappingNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Figma2Code Dataset
This dataset contains preprocessed Figma design files for the task of generating UI code from Figma designs.
Dataset Structure
The dataset is divided into two splits: test and rest. Each sample in the dataset includes the following features:
root: The main screenshot of the UI page as a PIL Image object.page_url: The original URL of the Figma page.annotation: A JSON string containing manual annotations about the UI's content and description.metadata: A JSON string containing the complete preprocessed Figma node tree and properties.image_refs: A list of dictionaries, where each dictionary contains the relativepathand theimagedata (as a PIL Image) for bitmap assets.svg_assets: A list of dictionaries, where each dictionary contains the relativepathand the stringcontentfor SVG vector assets.
How to Use
You can load the dataset using the datasets library:
from datasets import load_dataset
# Load the dataset
ds = load_dataset("anonymousauthor001/ds001")
# Access the different splits
test_split = ds["test"]
rest_split = ds["rest"]
# Get the first sample from the test split
sample = test_split[0]
print(sample.keys())
# dict_keys(['root', 'page_url', 'annotation', 'metadata', 'image_refs', 'svg_assets'])
- Downloads last month
- 3