The dataset viewer is not available for this subset.
Exception: FileNotFoundError
Message: Couldn't find any data file at /src/services/worker/drone12/creasepattern. Couldn't find 'drone12/creasepattern' on the Hugging Face Hub either: LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 65, in compute_split_names_from_streaming_response
for split in get_dataset_split_names(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
info = get_dataset_config_info(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 268, in get_dataset_config_info
builder = load_dataset_builder(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1315, in load_dataset_builder
dataset_module = dataset_module_factory(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1203, in dataset_module_factory
raise FileNotFoundError(
FileNotFoundError: Couldn't find any data file at /src/services/worker/drone12/creasepattern. Couldn't find 'drone12/creasepattern' on the Hugging Face Hub either: LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.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.
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Origami Crease Pattern Dataset
The accompanying h5df file comprises the dataset of 8 million crease patterns used for the training of a VAE with normalizing flows as described in the paper: "Inverse Design of Origami for Trajectory Following", Journal of Mechanisms and Robotics, 2025.
Authors
- Nicolas Hochuli (a), nhochuli@ethz.ch
- Tino Stankovic (a,1), tinos@ethz.ch
(a) Engineering Design and Computing Laboratory, Department of Mechanical and Process
Engineering, ETH Zurich, Tannenstrasse 3, 8092 Zurich, Switzerland
(1) To whom correspondence should be addressed
Usage
The h5df file dataset.hdf5 can be opened in Python using the pip-installable h5py package.
The h5df format is a widely used format for storing large data in single files. Basic usage
is described in docs.h5py.org
The file dataset.hdf5 holds the connectivity information (edge_lists, shape: [Ex2], E=Number of edges)
and geometric vertex positions (vertex_coords, shape: [Nx2], N=Number of vertices) for all 8 million
planar crease patterns in two separate groups.
File Structure
The hierarchical file structure in dataset.hdf5 is organized as described here.
For efficiency reasons, the two groups edge_lists and vertex_coords are split into 400 subgroups each,
where each subgroup holds 20000 datasets (i.e. samples / crease patterns). The tree structure is defined as:
dataset.hdf5
βββ metadata (attributes)
βββ edge_lists/ β Connectivity information (edge lists) of all 8 million crease patterns, in 400 subgroups.
β βββ 0/ β In a nested group, holds 20000 samples (as so-called datasets)
β βββ 1/ β In a nested group, holds 20000 samples (as so-called datasets)
β βββ ...
β βββ 399/
βββ vertex_coords/ β Vertex position information (2D) of all 8 million crease patterns.
βββ 0/
βββ 1/
βββ ...
βββ 399/
Example
To load the dataset into memory using Python, printing the metadata, retrieving the geometry of a single crease pattern and generating a visualization, run this code:
import h5py
import matplotlib.pyplot as plt
h5 = h5py.File("dataset.hdf5", "r")
# Example: Get creasepattern 18340 from subgroup 20
edge_list = h5["edge_lists/20/18340"][:,:] # Numpy array (Ex2)
vertex_coords = h5["vertex_coords/20/18340"][:,:] # Numpy array (Nx2)
# Print all metadata attributes
print(h5["metadata"].attrs["Title"])
print(h5["metadata"].attrs["Journal"])
print(h5["metadata"].attrs["Authors"])
print(h5["metadata"].attrs["Year"])
print(h5["metadata"].attrs["Size"])
print(h5["metadata"].attrs["Version"])
### Create plot
plt.figure(figsize=(8, 6))
for edge in edge_list:
p1 = vertex_coords[edge[0]]
p2 = vertex_coords[edge[1]]
plt.plot([p1[0], p2[0]], [p1[1], p2[1]], "k-", lw=1)
plt.scatter(vertex_coords[:, 0], vertex_coords[:, 1], color="blue", zorder=3)
for idx, (x, y) in enumerate(vertex_coords):
plt.text(x, y, str(idx), fontsize=8, ha="right", va="bottom")
plt.axis("equal")
plt.title("Crease Pattern Visualization")
plt.grid(True)
plt.tight_layout()
plt.show()
- Downloads last month
- 11