voxel51/fiftyone-skills/fiftyone-dataset-import

Claude Code and agent skill by voxel51/fiftyone-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Imports datasets into FiftyOne with automatic format detection. Supports all media types (images, videos, point clouds, MCAP multimodal recordings), label formats (COCO, YOLO, VOC, KITTI), multimodal grouped datasets, LeRobot v3 robot-learning episode datasets, and Hugging Face Hub datasets. Use when importing datasets from local files or Hugging Face, loading autonomous driving data, importing robotics/AV sensor logs (MCAP, ROS bag), importing LeRobot robot-learning episodes (teleop recordings, observation.state/action data), or creating grouped datasets.

Install

npx vskill@latest install voxel51/fiftyone-skills/fiftyone-dataset-import

SKILL.md

Universal Dataset Import for FiftyOne

Key Directives

ALWAYS follow these rules:

1. Scan folder FIRST

Before any import, deeply scan the directory to understand its structure:

bash
# Use bash to explore
find /path/to/data -type f | head -50
ls -la /path/to/data
2. Auto-detect everything

Detect media types, label formats, and grouping patterns automatically. Never ask the user to specify format if it can be inferred.

3. Detect multimodal groups

Look for patterns that indicate grouped data:

  • Scene folders containing multiple media files
  • Filename patterns with common prefixes (e.g., scene_001_left.jpg, scene_001_right.jpg)
  • Mixed media types that should be grouped (images + point clouds)
4. Detect and install required packages

Named autonomous-driving devkit formats (PandaSet, nuScenes, Waymo Open, Argoverse, KITTI 3D, Lyft L5, A2D2) need an external Python package. Check with pip show <package>, ask the user before installing, then verify with a smoke-test import. Full package table, directory-pattern detection, and the complete conversion workflow are in SPECIALIZED-3D-FORMATS.md.

No package is required to import or render MCAP (`.mcap`/`.bag`/`.rrd`) files. The file extension alone sets media_type == "multimodal", and channel decoding and rendering happen client-side in the FiftyOne App. Do not tell users to pip install mcap for this. The only optional use for a Python-side package is reading channel schemas before opening the App, covered in Step 9D below.

Additional packages for 3D processing: open3d (PCD conversion), pyntcloud, laspy (LAS/LAZ). For Hugging Face Hub: huggingface_hub, pyarrow, Pillow.

5. Confirm before importing

Present findings to user and explicitly ask for confirmation before creating the dataset. Always end your scan summary with a clear question like:

  • "Proceed with import?"
  • "Should I create the dataset with these settings?"

Wait for user response before proceeding. Do not create the dataset until the user confirms.

6. Check for existing datasets and generate names

Before creating a dataset, check if the proposed name already exists:

python
list_datasets()

If the dataset name exists, ask the user:

  • Overwrite: Delete existing and create new
  • Rename: Use a different name (suggest alternatives like dataset-name-v2)
  • Abort: Cancel the import

If no dataset name was provided by the user, generate a fun unique name using the pattern {ADJECTIVE}_{NOUN}_{VERB}:

  • squiggly_sky_floats
  • droopy_horse_slams
  • smooth_grass_grumbles
  • nervous_hamburger_yodels

Cross-check against list_datasets() to ensure uniqueness. Always inform the user of the generated name before proceeding.

7. Validate after import

Compare imported sample count with source file count. Report any discrepancies.

8. Report errors minimally to user

Keep error messages simple for the user. Use detailed error info internally to diagnose issues.

Complete Workflow

Before scanning, identify what kind of source this is — most sources are local directories and follow Steps 1-12 below, but two formats are detected up front instead of by scanning loose files:

  • A lerobot/... Hugging Face Hub repo id, or a local directory with meta/info.json at its

root → LeRobot. Skip straight to Step 9E and LEROBOT-IMPORT.md; do not run Step 1's folder scan on a bare repo id first since there is nothing local to scan until it's downloaded.

  • Any other Hugging Face Hub repo id (owner/name) or huggingface.co/datasets/... URL → see

Importing from Hugging Face Hub below.

  • A local directory of .mcap/.bag/.rrd files → Steps 1-8 apply for the scan/confirm/create

steps, then jump to Step 9D for the import itself.

  • Everything else (a local path to images, videos, point clouds, or an existing label format) →

continue with Step 1.

Step 1: Deep Folder Scan

Scan the target directory to understand its structure:

bash
# Count files by extension
find /path/to/data -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn
# List directory structure (2 levels deep)
find /path/to/data -maxdepth 2 -type d
# Sample some files
ls -la /path/to/data/* | head -20
# IMPORTANT: Scan for ALL annotation/label directories
ls -la /path/to/data/annotations/ 2>/dev/null || ls -la /path/to/data/labels/ 2>/dev/null

Build an inventory of:

  • Media files by type (images, videos, point clouds, 3D)
  • Label files by format (JSON, XML, TXT, YAML, PKL)
  • Directory structure (flat vs nested vs scene-based)
  • ALL annotation types present (cuboids, segmentation, tracking, etc.)

For 3D/Autonomous Driving datasets, specifically check:

bash
# List all annotation subdirectories
find /path/to/data -type d -name "annotations" -o -name "labels" | xargs -I {} ls -la {}
# Sample an annotation file to understand its structure
python3 -c "import pickle, gzip; print(pickle.load(gzip.open('path/to/annotation.pkl.gz', 'rb'))[:2])"
Step 2: Identify Media Types

Classify files by extension:

ExtensionsMedia TypeFiftyOne Type
.jpg, .jpeg, .png, .gif, .bmp, .webp, .tiffImageimage
.mp4, .avi, .mov, .mkv, .webmVideovideo
.pcd, .ply, .las, .lazPoint Cloudpoint-cloud
.fo3d, .obj, .gltf, .glb3D Scene3d
.mcap, .bag, .rrdMultimodal (robotics/AV sensor log)multimodal

MCAP recordings are a special case. A single .mcap file is one self-contained multimodal episode that can hold many time-synchronized streams internally (camera images, LIDAR, IMU, GPS, transforms, diagnostics), each as its own channel/topic. There is no separate MCAP dataset type and no labels file to import: one .mcap file is one sample. See Step 9D below.

LeRobot datasets are also a special case. A LeRobot source is a directory (or lerobot/... Hugging Face Hub repo) with meta/info.json at its root, not a pile of loose media files — do not scan it file-by-file like the patterns above. One sample = one episode, built with fo.Dataset.from_dir(..., dataset_type=fo.types.LeRobotDataset), never add_samples. See Step 9E below.

Step 3: Detect Label Format

Identify label format from file patterns:

PatternFormatDataset Type
annotations.json or instances*.json with COCO structureCOCOCOCO
*.xml files with Pascal VOC structureVOCVOC
*.txt per image + classes.txtYOLOv4YOLOv4
data.yaml + labels/*.txtYOLOv5YOLOv5
*.txt per image (KITTI format)KITTIKITTI
Single annotations.xml (CVAT format)CVATCVAT Image
*.json with OpenLABEL structureOpenLABELOpenLABEL Image
Folder-per-class structureClassificationImage Classification Directory Tree
*.csv with filepath columnCSVCSV
*.json with GeoJSON structureGeoJSONGeoJSON
.dcm DICOM filesDICOMDICOM
.tiff with geo metadataGeoTIFFGeoTIFF
meta/info.json + meta/episodes/*.parquet at the source root (or a lerobot/... HF repo)LeRobotLeRobotDataset

LeRobot robot-learning datasets are directory-based, not file-based: detect them by the presence of meta/info.json at the source root (or an HF repo id under the lerobot/ namespace) before falling back to any of the patterns above. There is no labels file to import separately — episodes, tasks, and observation.state/action data all come from the LeRobot importer. See Step 9E.

Specialized autonomous driving formats (PandaSet, nuScenes, Waymo Open, Argoverse, KITTI 3D, Lyft L5, A2D2) need an external devkit and a conversion step. See SPECIALIZED-3D-FORMATS.md for directory-pattern detection, the package table, and the complete conversion workflow.

Step 4: Detect Required Packages

Check whether the detected format's package is already installed (pip show <package>), inform the user what's needed and why, ask permission before installing, then verify with a smoke-test import. Full detail in SPECIALIZED-3D-FORMATS.md.

Step 5: Detect Grouping Pattern

Determine if data should be grouped:

Pattern A: Scene Folders (Most Common for Multimodal)

/data/
├── scene_001/
│ ├── left.jpg
│ ├── right.jpg
│ ├── lidar.pcd
│ └── labels.json
├── scene_002/
│ └── ...

Detection: Each subfolder = one group, files inside = slices

Pattern B: Filename Prefix

/data/
├── 001_left.jpg
├── 001_right.jpg
├── 001_lidar.pcd
├── 002_left.jpg
├── 002_right.jpg
├── 002_lidar.pcd

Detection: Common prefix = group ID, suffix = slice name

Pattern C: No Grouping (Flat)

/data/
├── image_001.jpg
├── image_002.jpg
├── image_003.jpg

Detection: Single media type, no clear grouping pattern

Pattern D: MCAP Multimodal Recordings (No Grouping Needed)

/data/
├── episode-0001.mcap
├── episode-0002.mcap
├── episode-0003.mcap

Detection: Each .mcap/.bag/.rrd file is already a self-contained multimodal recording (cameras, LIDAR, IMU, GPS, etc. are internal channels within the file). Do not try to group these with other files — import each recording as a single sample. See Step 9D.

Step 6: Present Findings to User

Before importing, present a clear summary that includes ALL detected labels:

Scan Results for /path/to/data:
Media Found:
- 3,000 images (.jpg, .png)
- 1,000 point clouds (.pkl.gz → will convert to .pcd)
- 0 videos
Grouping Detected:
- Pattern: Scene folders
- Groups: 1,000 scenes
- Slices: left (image), right (image), front (image), lidar (point-cloud)
ALL Labels Detected:
├── cuboids/ (3D bounding boxes, 1,000 files)
│ └── Format: pickle, Fields: label, position, dimensions, rotation, track_id
├── semseg/ (Semantic segmentation, 1,000 files)
│ └── Format: pickle, point-wise class labels
└── instances.json (2D detections, COCO format)
└── Classes: 10 (car, pedestrian, cyclist, ...)
Required Packages:
- ✅ pandaset (installed)
- ⚠️ open3d (needed for PCD conversion) → pip install open3d
Proposed Configuration:
- Dataset name: my-dataset
- Type: Grouped (multimodal)
- Default slice: front_camera
- Labels to import:
- detections_3d (from cuboids/)
- point_labels (from semseg/)
- detections (from instances.json)
Proceed with import? (yes/no)

IMPORTANT:

  • List ALL annotation types found during the scan
  • Show the format/structure of each label type
  • Indicate which labels will be imported and how
  • Wait for user confirmation before proceeding
Step 7: Check for Existing Dataset and Generate Name

Before creating, check if the dataset name already exists:

python
# Check existing datasets
list_datasets()

If the user didn't provide a name, generate one using the {ADJECTIVE}_{NOUN}_{VERB} pattern (e.g., smooth_grass_grumbles). Cross-check against list_datasets() for uniqueness. Always inform the user of the generated name before proceeding.

If the proposed dataset name exists in the list:

  1. Inform the user: "A dataset named 'my-dataset' already exists with X samples."
  2. Ask for their preference:
  • Overwrite: Delete existing dataset first
  • Rename: Suggest alternatives (e.g., my-dataset-v2, my-dataset-20240107)
  • Abort: Cancel the import

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
27
Repository forks
5
7-day trend score
17

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 May 2026, 6 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/voxel51/fiftyone-skills/fiftyone-dataset-import/badge)](https://verified-skill.com/skills/voxel51/fiftyone-skills/fiftyone-dataset-import)

Something wrong with this skill or its page? Tell us.