Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

fiftyone-dataset-export五十一个数据集导出

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

259

周安装

11

GitHub Stars

25

下载量

91
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fiftyone-dataset-export(五十一个数据集导出)
来源仓库:https://github.com/voxel51/fiftyone-skills
仓库路径:skills/fiftyone-dataset-export
安装命令:
npx skills add https://github.com/voxel51/fiftyone-skills --skill fiftyone-dataset-export
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/voxel51/fiftyone-skills --skill fiftyone-dataset-export

简介

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。

  • 适合生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码。
  • 使用时需结合项目设计系统、路由和构建方式,避免孤立片段。
  • 涉及页面改动时应配合本地预览和构建检查确认视觉效果。
  • fiftyone-dataset-export 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Export FiftyOne Datasets

Key Directives

ALWAYS follow these rules:

1. Load and understand the dataset first

set_context(dataset_name="my-dataset")
dataset_summary(name="my-dataset")

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:

FormatLabel Types
COCOdetections, segmentations, keypoints
YOLO (v4, v5)detections
VOCdetections
CVATclassifications, detections, polylines, keypoints
CSVall (custom fields)
Image Classification Directory Treeclassification

4. Use absolute paths

Always use absolute paths for export directories:

params={
    "export_dir": {"absolute_path": "/path/to/export"}
}

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

# Set context
set_context(dataset_name="my-dataset")

# Get dataset summary to see fields and label types
dataset_summary(name="my-dataset")

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

# Discover export parameters dynamically
get_operator_schema(operator_uri="@voxel51/io/export_samples")

Step 3: Present Export Options to User

Before exporting, confirm with the user:

Dataset: my-dataset (5,000 samples)
Media type: image

Available label fields:
  - ground_truth (Detections)
  - predictions (Detections)

Export options:
  - Format: COCO (recommended for detections)
  - Export directory: /path/to/export
  - Label field: ground_truth

Proceed with export?

Step 4: Execute Export

Export media and labels:

execute_operator(
    operator_uri="@voxel51/io/export_samples",
    params={
        "export_type": "MEDIA_AND_LABELS",
        "dataset_type": "COCO",
        "export_dir": {"absolute_path": "/path/to/export"},
        "label_field": "ground_truth"
    }
)

Export labels only (no media copy):

execute_operator(
    operator_uri="@voxel51/io/export_samples",
    params={
        "export_type": "LABELS_ONLY",
        "dataset_type": "COCO",
        "labels_path": {"absolute_path": "/path/to/labels.json"},
        "label_field": "ground_truth"
    }
)

Export media only (no labels):

execute_operator(
    operator_uri="@voxel51/io/export_samples",
    params={
        "export_type": "MEDIA_ONLY",
        "export_dir": {"absolute_path": "/path/to/media"}
    }
)

Step 5: Verify Export

After export, verify the output:

ls -la /path/to/export

Report exported file count and structure to user.

Supported Export Formats

Detection Formats

Formatdataset_type ValueLabel TypesLabels-Only
COCO"COCO"detections, segmentations, keypointsYes
YOLOv4"YOLOv4"detectionsYes
YOLOv5"YOLOv5"detectionsNo
VOC"VOC"detectionsYes
KITTI"KITTI"detectionsYes
CVAT Image"CVAT Image"classifications, detections, polylines, keypointsYes
CVAT Video"CVAT Video"frame labelsYes
TF Object Detection"TF Object Detection"detectionsNo

Classification Formats

Formatdataset_type ValueMedia TypeLabels-Only
Image Classification Directory Tree"Image Classification Directory Tree"imageNo
Video Classification Directory Tree"Video Classification Directory Tree"videoNo
TF Image Classification"TF Image Classification"imageNo

Segmentation Formats

Formatdataset_type ValueLabel TypesLabels-Only
Image Segmentation"Image Segmentation"segmentationYes

General Formats

Formatdataset_type ValueBest ForLabels-Only
CSV"CSV"Custom fields, spreadsheet analysisYes
GeoJSON"GeoJSON"Geolocation dataYes
FiftyOne Dataset"FiftyOne Dataset"Full dataset backup with all metadataYes

Note: Formats with "Labels-Only: No" require export_type: "MEDIA_AND_LABELS" (cannot export labels without media).

Export Type Options

export_type ValueDescription
"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 ValueDescription
"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:

set_context(dataset_name="my-dataset")

execute_operator(
    operator_uri="@voxel51/io/export_samples",
    params={
        "export_type": "MEDIA_AND_LABELS",
        "dataset_type": "COCO",
        "export_dir": {"absolute_path": "/path/to/coco_export"},
        "label_field": "ground_truth"
    }
)

Output structure:

coco_export/
├── data/
│   ├── image1.jpg
│   └── image2.jpg
└── labels.json

Use Case 2: Export to YOLO Format

For training YOLOv5/v8 models:

set_context(dataset_name="my-dataset")

execute_operator(
    operator_uri="@voxel51/io/export_samples",
    params={
        "export_type": "MEDIA_AND_LABELS",
        "dataset_type": "YOLOv5",
        "export_dir": {"absolute_path": "/path/to/yolo_export"},
        "label_field": "ground_truth"
    }
)

Output structure:

yolo_export/
├── images/
│   └── train/
│       └── image1.jpg
├── labels/
│   └── train/
│       └── image1.txt
└── dataset.yaml

Use Case 3: Export Filtered View

Export only a subset of samples:

# Set context
set_context(dataset_name="my-dataset")

# Filter samples in the App
set_view(tags=["validated"])

# Export the filtered view
execute_operator(
    operator_uri="@voxel51/io/export_samples",
    params={
        "target": "CURRENT_VIEW",
        "export_type": "MEDIA_AND_LABELS",
        "dataset_type": "COCO",
        "export_dir": {"absolute_path": "/path/to/validated_export"},
        "label_field": "ground_truth"
    }
)

Use Case 4: Export Labels Only

When media should stay in place:

set_context(dataset_name="my-dataset")

execute_operator(
    operator_uri="@voxel51/io/export_samples",
    params={
        "export_type": "LABELS_ONLY",
        "dataset_type": "COCO",
        "labels_path": {"absolute_path": "/path/to/annotations.json"},
        "label_field": "ground_truth"
    }
)

Use Case 5: Export for Classification Training

For image classification datasets:

set_context(dataset_name="my-classification-dataset")

execute_operator(
    operator_uri="@voxel51/io/export_samples",
    params={
        "export_type": "MEDIA_AND_LABELS",
        "dataset_type": "Image Classification Directory Tree",
        "export_dir": {"absolute_path": "/path/to/classification_export"},
        "label_field": "ground_truth"
    }
)

Output structure:

classification_export/
├── cat/
│   ├── cat1.jpg
│   └── cat2.jpg
└── dog/
    ├── dog1.jpg
    └── dog2.jpg

Use Case 6: Export to CSV

For analysis in spreadsheets:

set_context(dataset_name="my-dataset")

execute_operator(
    operator_uri="@voxel51/io/export_samples",
    params={
        "export_type": "LABELS_ONLY",
        "dataset_type": "CSV",
        "labels_path": {"absolute_path": "/path/to/data.csv"},
        "csv_fields": ["filepath", "ground_truth.detections.label"]
    }
)

Use Case 7: Export FiftyOne Dataset (Full Backup)

For complete dataset backup including all metadata:

set_context(dataset_name="my-dataset")

execute_operator(
    operator_uri="@voxel51/io/export_samples",
    params={
        "export_type": "MEDIA_AND_LABELS",
        "dataset_type": "FiftyOne Dataset",
        "export_dir": {"absolute_path": "/path/to/backup"}
    }
)

Output structure:

backup/
├── metadata.json
├── samples.json
├── data/
│   └── ...
├── annotations/
├── brain/
└── evaluations/

Python SDK Alternative

For more control, guide users to use the Python SDK directly:

import fiftyone as fo
import fiftyone.types as fot

# Load dataset
dataset = fo.load_dataset("my-dataset")

# Export to COCO format
dataset.export(
    export_dir="/path/to/export",
    dataset_type=fot.COCODetectionDataset,
    label_field="ground_truth",
)

# Export labels only
dataset.export(
    labels_path="/path/to/labels.json",
    dataset_type=fot.COCODetectionDataset,
    label_field="ground_truth",
)

# Export a filtered view
view = dataset.match_tags("validated")
view.export(
    export_dir="/path/to/validated",
    dataset_type=fot.YOLOv5Dataset,
    label_field="ground_truth",
)

Python SDK dataset types:

  • fot.COCODetectionDataset - COCO format
  • fot.YOLOv4Dataset - YOLOv4 format
  • fot.YOLOv5Dataset - YOLOv5 format
  • fot.VOCDetectionDataset - Pascal VOC format
  • fot.KITTIDetectionDataset - KITTI format
  • fot.CVATImageDataset - CVAT image format
  • fot.CVATVideoDataset - CVAT video format
  • fot.TFObjectDetectionDataset - TensorFlow Object Detection format
  • fot.ImageClassificationDirectoryTree - Classification folder structure
  • fot.VideoClassificationDirectoryTree - Video classification folders
  • fot.TFImageClassificationDataset - TensorFlow classification format
  • fot.ImageSegmentationDirectory - Segmentation masks
  • fot.CSVDataset - CSV format
  • fot.GeoJSONDataset - GeoJSON format
  • fot.FiftyOneDataset - Native FiftyOne format

Exporting to Hugging Face Hub

For complete HF Hub export documentation, see HF-HUB-EXPORT.md.

Quick reference:

MethodUse Case
push_to_hub()Personal accounts, simple upload
Manual uploadOrganizations, private org repos

Quick start:

from fiftyone.utils.huggingface import push_to_hub

# Personal account
push_to_hub(dataset, repo_name="my-dataset", private=False)

# With options
push_to_hub(
    dataset,
    repo_name="my-dataset",
    description="My dataset description",
    license="apache-2.0",
    private=True,
)

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": true to 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

Export is slow

  • Large datasets take time; consider exporting a view first
  • Export to local disk rather than network drives
  • For labels only, use LABELS_ONLY export type

Best Practices

  1. Understand your data first - Use dataset_summary() to know what fields and label types exist
  2. Match format to purpose - Use COCO/YOLO for training, CSV for analysis, FiftyOne Dataset for backups
  3. Confirm with user - Present export settings before executing
  4. Export filtered views - Only export what's needed rather than entire datasets
  5. Verify after export - Check exported file counts match expectations
  6. Use labels_path for LABELS_ONLY - When exporting labels only, use labels_path not export_dir

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.47%
按下载量换算32

Claude

33.81%
按下载量换算31

Cursor

17.9%
按下载量换算16

Gemini CLI

8.8%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills