JakubMode's picture
Publish complete optical-switch pairs and remove unfinished uploads
05129ea verified
|
Raw History Blame Contribute Delete
9.03 kB
metadata
pretty_name: Optical Switch 01 — Cable Insertions
tags:
  - robotics
  - computer-vision
  - video
  - image-segmentation
  - tracking
configs:
  - config_name: preview
    default: true
    data_files:
      - split: capture
        path:
          - preview/pair_01.parquet
          - preview/pair_10.parquet
          - preview/pair_11.parquet
          - preview/pair_13.parquet
          - preview/pair_14.parquet
          - preview/pair_15.parquet
          - preview/pair_16.parquet
  - config_name: frames
    data_files:
      - split: capture
        path:
          - frames/pair_01/*.parquet
          - frames/pair_10/*.parquet
          - frames/pair_11/*.parquet
          - frames/pair_13/*.parquet
          - frames/pair_14/*.parquet
          - frames/pair_15/*.parquet
          - frames/pair_16/*.parquet
  - config_name: episodes
    data_files:
      - split: capture
        path: metadata/episodes.parquet
  - config_name: recordings
    data_files:
      - split: capture
        path: metadata/recordings.parquet
  - config_name: pair_01
    data_files:
      - split: capture
        path:
          - frames/pair_01/*.parquet
  - config_name: pair_10
    data_files:
      - split: capture
        path:
          - frames/pair_10/*.parquet
  - config_name: pair_11
    data_files:
      - split: capture
        path:
          - frames/pair_11/*.parquet
  - config_name: pair_13
    data_files:
      - split: capture
        path:
          - frames/pair_13/*.parquet
  - config_name: pair_14
    data_files:
      - split: capture
        path:
          - frames/pair_14/*.parquet
  - config_name: pair_15
    data_files:
      - split: capture
        path:
          - frames/pair_15/*.parquet
  - config_name: pair_16
    data_files:
      - split: capture
        path:
          - frames/pair_16/*.parquet

Optical Switch 01 — Cable Insertions

Paired camera recordings of a person connecting and disconnecting one to four optical cable assemblies at a switch. This dataset supports a cable instance segmentation challenge and temporal tracking research in real handling footage. Cable crossings, overlap, and occlusion by hands or hardware make it useful for testing whether a method can keep individual cables identifiable as the scene changes.

Researchers are invited to run their segmentation and tracking methods on these recordings and share results, including difficult or failed cases.

The dataset contains 7 pairs, 14 recordings, and 96,169 full-resolution JPEG frames. Pair 5 is excluded because it is an incomplete take with unequal camera coverage.

Each listed pair includes both original MOVs and its complete full-resolution JPEG sequences. Only complete pairs are published. Pair IDs retain their capture identifiers, so the published IDs do not need to be consecutive.

Contact sheet of the two camera recordings from Pair 1

Contents

Subset Contents
preview Smaller JPEGs sampled from every recording at approximately five-second intervals for browsing.
frames Full-resolution JPEG sequences, one image per decoded frame, across all pairs.
pair_XX Full-resolution JPEG sequences for one pair, such as pair_01.
episodes Browsing intervals in each camera's own timeline: coarse phases for Pair 1 and full-take intervals for the other pairs.
recordings Camera models, durations, frame counts, original-video paths, and SHA-256 checksums.

The complete source recordings are available as ProRes 422 MOV files. Every pair uses the same camera identifiers:

Camera ID Camera model
cam1 iPhone 15 Pro
cam2 iPhone 16 Pro
Pair Cable assemblies cam1 / cam2 duration Frames, both cameras Original MOVs Preview
pair_01 4 250.76 / 250.84 s 30,104 cam1 / cam2 Contact sheet
pair_10 2 146.28 / 146.38 s 17,564 cam1 / cam2 Contact sheet
pair_11 2 89.79 / 89.75 s 10,775 cam1 / cam2 Contact sheet
pair_13 3 150.53 / 150.56 s 18,070 cam1 / cam2 Contact sheet
pair_14 1 29.20 / 29.13 s 3,501 cam1 / cam2 Contact sheet
pair_15 1 26.94 / 26.95 s 3,234 cam1 / cam2 Contact sheet
pair_16 2 107.63 / 107.66 s 12,921 cam1 / cam2 Contact sheet

All recordings are 3840 × 2160, 10-bit ProRes 422, BT.709, at a nominal 60 fps. Their timing varies slightly. Treat each recording's time base independently. The same frame index across two recordings does not establish synchronization. The originals include the captured audio. The sync_offset_seconds field is null because inter-camera alignment has not been calibrated.

Recording metadata and source checksums are in metadata/recordings.parquet and metadata/pair_XX/camN.json.

Load or export the frames

from pathlib import Path

from datasets import Image, load_dataset

repo = "ModeMaisonLabs/optical-switch-01-cable-insertions"
preview = load_dataset(repo, "preview", split="capture", streaming=True)
next(iter(preview))["image"].show()

episodes = load_dataset(repo, "episodes", split="capture", streaming=True)

frames = load_dataset(repo, "frames", split="capture", streaming=True)
# To load just one pair, use "pair_01" instead of "frames".
frames = frames.cast_column("image", Image(decode=False))
for row in frames:
    directory = Path("jpeg_sequences") / row["pair_id"] / row["camera_id"]
    directory.mkdir(parents=True, exist_ok=True)
    (directory / f"{row['frame_index']:06d}.jpg").write_bytes(row["image"]["bytes"])

To work with a ProRes recording from Python, download it with huggingface_hub.hf_hub_download(repo, filename="videos/pair_01/cam1.mov", repo_type="dataset"). The returned local path can be opened with FFmpeg or with datasets.Video and TorchCodec.

Every pair uses the same folder structure: videos/pair_XX/camN.mov for originals, frames/pair_XX/camN-NNN.parquet for JPEG sequences, preview/pair_XX.parquet for browsing images, and previews/pair_XX.jpg for a contact sheet.

frame_index is zero-based and follows presentation order within its recording_id, which identifies the pair and camera, such as pair_01_cam1. The exact source timestamp in seconds is source_pts * time_base_num / time_base_den. timestamp_seconds is the floating-point form for filtering and display. episode_id is nullable.

Episode intervals are start-inclusive and end-exclusive. Pair 1's coarse insertion, connected-handling, and removal intervals were selected from visual review at five-second intervals and include lead-in or settling time; they are marked annotation_granularity="coarse_phase". Other pairs have one interval per recording, marked annotation_granularity="full_take". These intervals do not mark individual connector contact events or establish camera synchronization.

Image processing

The JPEG sequences are encoded directly from ProRes with FFmpeg, preserving resolution and presentation order. The pipeline converts limited-range BT.709 to full-range JPEG YCbCr, uses 4:4:4 sampling, and sets the encoder quality scale to 1. Standard JPEG uses 8-bit samples and adds quantization. Use the original MOVs for work that needs source precision. Preview images are resized to 960 × 540 for quick browsing.

Eight sample JPEGs across both cameras in Pair 1 measured 44.99–46.16 dB RGB PSNR against an 8-bit RGB decode of the corresponding ProRes frames. Mean absolute channel error was 0.91–1.05 on a 0–255 scale.

Original MOVs are verified with SHA-256. Frame counts and ordered timestamps are checked against source metadata, and JPEG bytes are checked after Parquet serialization.

Scope

The segmentation challenge is to distinguish individual optical cable assemblies and keep each cable's identity consistent through time, including through cable crossings and occlusion. These recordings provide the source footage for running and comparing segmentation and tracking methods.

The dataset contains multiple paired takes of one switch setup. It provides no segmentation masks, cable trajectories, camera calibration, or force measurements. An evaluation protocol is not included. Use the single capture split for qualitative development and exploration. Adjacent frames and both camera views of the same pair should stay together if you use this data in a larger evaluation.

Citation · Mode Maison Labs, Optical Switch 01 — Cable Insertions, 2026.