Skip to content

Viewer ​

Inspect a finished dataset in FiftyOne with the bundled script:

bash
python -m pip install -e ".[viewer]"
bash
python examples/view_dataset.py

Set DATASET_DIR (and optionally DATASET_NAME) at the top of the script first. The script detects the layout, imports the dataset, prints per-split sample counts and a class-distribution table, then opens the FiftyOne app. FiftyOne is provided by the optional viewer extra, not the base package.

Supported Layouts ​

LayoutDetected byDATASET_DIR should be
mergedmerged_coco_annotations.json at the rootThe dataset root produced by merge_shards().
shardcoco_annotations.json plus images/A single shard_* directory.
coco_annotations.coco.json at the root or in train/valid/testThe DatasetConverter COCO output root, or one split.
yolodata.yaml at the rootThe DatasetConverter YOLO output root.
bopNumbered scene directories containing scene_gt_coco.jsonA BOP root, or a root with train/val/test scene directories.

Detection precedence is merged, shard, YOLO, COCO, then BOP. The console table reports, per class, the count and share within each split, the total instances, the number of distinct images containing the class, and that class's share of the grand total. For interactive charts, add a Histograms panel next to the Samples tab in the app.

Quick previews

The lightweight tkinter viewer used by the quickstart examples is a preview tool only. Use FiftyOne for final dataset inspection.

Next Steps ​