Skip to content

Viewer

Inspect a finished dataset in FiftyOne with the bundled script:

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 a project dependency, so no extra install is required.

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.

Detection precedence is merged, then shard, then yolo, then coco. 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