算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
dataset-workflows【设计与创意】Inspect, validate, create, load, stream, transform, visualize, and safely plan operations on LeRobot Dataset v3 repositories.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when the request mentions LeRobotDataset, LeRobotDatasetMetadata, a
LeRobot dataset root or repository, episodes, feature schemas, Parquet, MP4, image
transforms, statistics, streaming, porting, lerobot-edit-dataset,
lerobot-dataset-viz, lerobot-imgtransform-viz, or lerobot-convert-dcp.
This skill covers dataset storage and read/write planning. Route policy, training,
evaluation, and inference to policy-training-inference; route physical recording,
replay, cameras, robots, and teleoperators to robot-control-data-collection; route
Hub jobs, credentials, uploads, and other remote services to
extensions-and-services.
meta/, data/, and, for
video features, videos/. Pass it explicitly as root; preflight
meta/info.json and data shards before constructing a reader so a malformed
local fixture cannot silently trigger a Hub download.push_to_hub, modify_tasks, or an in-place edit without explicit
user consent, an output/overwrite decision, and a rollback or backup plan.finalize() is mandatory after recording or conversion before reading or
pushing. A missing Parquet footer can make an apparently complete dataset
unreadable.Collect the LeRobot version, source kind (local fixture, local full dataset, Hub repo, or Storage Bucket), exact root/repo/revision, intended episodes, feature keys and shapes, FPS, image/video/depth status, decoder choice, transforms, statistics provenance, operation/output directory, overwrite intent, optional extras, and network/credential consent. Produce one of:
Load the detailed contracts from data-formats.md, api-reference.md, and workflows.md. Use cli-reference.md for commands and troubleshooting.md for recovery. The bundled read-only helpers are load_local_dataset.py, transform_probe.py, and dataset_operation_plan.py.
repo_type="bucket" and
streaming; non-streaming LeRobotDataset cannot consume bucket data.meta/info.json, meta/stats.json when
normalization is needed, meta/tasks.parquet when tasks exist,
meta/episodes/*/*.parquet, data/*/*.parquet, and the MP4 files named by
episode metadata for every video feature. Check that the declared v3 version,
FPS, paths, and counts agree.info.features;
verify numeric dtype/shape, image shape/order, task indices, contiguous episode
ranges, dataset_from_index/dataset_to_index, and length. Missing or
malformed episode index is a metadata/data contract failure, not a reason to
guess a repair.LeRobotDataset(repo_id, root=...) for random access and
DataLoader; select episodes, episode_filter, delta_timestamps,
image_transforms, return_uint8, video_backend, or depth output deliberately.
Use StreamingLeRobotDataset for bounded Hub/bucket iteration, shuffling, and
delta windows; it is an IterableDataset, not an indexable random-access set.<feature>_is_pad; offsets must be multiples of 1/fps
within tolerance.modify_tasks is in-place in the current tool contract. Prefer dry-run helper
output before lerobot-edit-dataset.Create with LeRobotDataset.create(repo_id, fps, features, root=..., use_videos=...).
Feature entries need dtype and shape; numeric values must match NumPy dtype and
shape, image/video frames accept HWC or CHW arrays (or PIL), and every frame needs a
task. Recording code adds the standard timestamp, frame_index,
episode_index, index, and task_index features. Call add_frame repeatedly,
save_episode, then finalize; only after that call __getitem__, compute/verify
stats, or push. Use resume only with an explicit writable root.
Video storage uses MP4 per camera stream; image storage embeds image data in
Parquet. RGB encoding is PyAV-backed and needs the dataset/AV extra plus a codec
available in the FFmpeg/PyAV build. Depth video is a separate quantized 12-bit
stream with persisted depth parameters; decode to mm or m explicitly. An
image-only dataset is a valid CPU fallback, but it does not prove MP4 support.
info.codebase_version is v3-compatible; feature keys, dtypes, shapes, FPS, and
task/episode counts agree with Parquet.