voxel51/fiftyone-skills/fiftyone-dataset-export
Claude Code and agent skill by voxel51/fiftyone-skills
- community
Checking that the SKILL.md file is still in the repository.
Exports FiftyOne datasets to standard formats (COCO, YOLO, VOC, CVAT, CSV, etc.) and Hugging Face Hub. Use when converting datasets, exporting for training, creating archives, sharing data in specific formats, or publishing datasets to Hugging Face.
Install
npx vskill@latest install voxel51/fiftyone-skills/fiftyone-dataset-exportSKILL.md
Export FiftyOne Datasets
Key Directives
ALWAYS follow these rules:
1. Load and understand the dataset first
2. Confirm export settings with user
Before exporting, present:
- Dataset name and sample count
- Available label fields and their types
- Proposed export format
- Export directory path
3. Match format to label types
Different formats support different label types:
| Format | Label Types | |
|---|---|---|
| COCO | detections, segmentations, keypoints | |
| YOLO (v4, v5) | detections | |
| VOC | detections | |
| CVAT | classifications, detections, polylines, keypoints | |
| CSV | all (custom fields) | |
| Image Classification Directory Tree | classification |
4. Use absolute paths
Always use absolute paths for export directories:
5. Warn about overwriting
Check if export directory exists before exporting. If it does, ask user whether to overwrite.
Complete Workflow
Step 1: Load Dataset and Understand Content
Identify:
- Total sample count
- Media type (images, videos, point clouds)
- Available label fields and their types (Detections, Classifications, etc.)
Step 2: Get Export Operator Schema
Step 3: Present Export Options to User
Before exporting, confirm with the user:
Step 4: Execute Export
Export media and labels:
Export labels only (no media copy):
Export media only (no labels):
Step 5: Verify Export
After export, verify the output:
Report exported file count and structure to user.
Supported Export Formats
Detection Formats
| Format | dataset_type Value | Label Types | Labels-Only | |
|---|---|---|---|---|
| COCO | "COCO" | detections, segmentations, keypoints | Yes | |
| YOLOv4 | "YOLOv4" | detections | Yes | |
| YOLOv5 | "YOLOv5" | detections | No | |
| VOC | "VOC" | detections | Yes | |
| KITTI | "KITTI" | detections | Yes | |
| CVAT Image | "CVAT Image" | classifications, detections, polylines, keypoints | Yes | |
| CVAT Video | "CVAT Video" | frame labels | Yes | |
| TF Object Detection | "TF Object Detection" | detections | No |
Classification Formats
| Format | dataset_type Value | Media Type | Labels-Only | |
|---|---|---|---|---|
| Image Classification Directory Tree | "Image Classification Directory Tree" | image | No | |
| Video Classification Directory Tree | "Video Classification Directory Tree" | video | No | |
| TF Image Classification | "TF Image Classification" | image | No |
Segmentation Formats
| Format | dataset_type Value | Label Types | Labels-Only | |
|---|---|---|---|---|
| Image Segmentation | "Image Segmentation" | segmentation | Yes |
General Formats
| Format | dataset_type Value | Best For | Labels-Only | |
|---|---|---|---|---|
| CSV | "CSV" | Custom fields, spreadsheet analysis | Yes | |
| GeoJSON | "GeoJSON" | Geolocation data | Yes | |
| FiftyOne Dataset | "FiftyOne Dataset" | Full dataset backup with all metadata | Yes |
Note: Formats with "Labels-Only: No" require export_type: "MEDIA_AND_LABELS" (cannot export labels without media).
Export Type Options
export_type Value | Description | |
|---|---|---|
"MEDIA_AND_LABELS" | Export both media files and labels | |
"LABELS_ONLY" | Export labels only (use labels_path instead of export_dir) | |
"MEDIA_ONLY" | Export media files only (no labels) | |
"FILEPATHS_ONLY" | Export CSV with filepaths only |
Target Options
Export from different sources:
target Value | Description | |
|---|---|---|
"DATASET" | Export entire dataset (default) | |
"CURRENT_VIEW" | Export current filtered view | |
"SELECTED_SAMPLES" | Export selected samples only |
Common Use Cases
Use Case 1: Export to COCO Format
For training with frameworks that use COCO format:
Output structure:
Use Case 2: Export to YOLO Format
For training YOLOv5/v8 models:
Output structure:
Use Case 3: Export Filtered View
Export only a subset of samples:
Use Case 4: Export Labels Only
When media should stay in place:
Use Case 5: Export for Classification Training
For image classification datasets:
Output structure:
Use Case 6: Export to CSV
For analysis in spreadsheets:
Use Case 7: Export FiftyOne Dataset (Full Backup)
For complete dataset backup including all metadata:
Output structure:
Python SDK Alternative
For more control, guide users to use the Python SDK directly:
Python SDK dataset types:
fot.COCODetectionDataset- COCO formatfot.YOLOv4Dataset- YOLOv4 formatfot.YOLOv5Dataset- YOLOv5 formatfot.VOCDetectionDataset- Pascal VOC formatfot.KITTIDetectionDataset- KITTI formatfot.CVATImageDataset- CVAT image formatfot.CVATVideoDataset- CVAT video formatfot.TFObjectDetectionDataset- TensorFlow Object Detection formatfot.ImageClassificationDirectoryTree- Classification folder structurefot.VideoClassificationDirectoryTree- Video classification foldersfot.TFImageClassificationDataset- TensorFlow classification formatfot.ImageSegmentationDirectory- Segmentation masksfot.CSVDataset- CSV formatfot.GeoJSONDataset- GeoJSON formatfot.FiftyOneDataset- Native FiftyOne format
Exporting to Hugging Face Hub
For complete HF Hub export documentation, see HF-HUB-EXPORT.md.
Quick reference:
| Method | Use Case | |
|---|---|---|
push_to_hub() | Personal accounts, simple upload | |
| Manual upload | Organizations, private org repos |
Quick start:
IMPORTANT: Always generate and get user approval for dataset card before uploading. See HF-HUB-EXPORT.md for complete documentation including authentication setup, dataset card workflow, parameters reference, use cases, and troubleshooting.
Troubleshooting
Error: "Export directory already exists"
- Add
"overwrite": trueto params - Or specify a different export directory
Error: "Label field not found"
- Use
dataset_summary()to see available label fields - Verify the field name spelling
Error: "Unsupported label type for format"
- Check that the export format supports your label type
- COCO: detections, segmentations, keypoints
- YOLO: detections only
- Classification formats: classification labels only
Error: "Permission denied"
- Verify write permissions for the export directory
- Check parent directory exists
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/fiftyone-dataset-export/SKILL.md
Popularity
- Repository stars
- 23
- Repository forks
- 4
- 7-day trend score
- 16
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 8 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
[](https://verified-skill.com/skills/voxel51/fiftyone-skills/fiftyone-dataset-export)