PascalVocDataLoader<T>

Models & Types · AiDotNet.Data.Vision.Benchmarks

Loads the Pascal VOC object detection dataset (20 categories, XML annotations).

Inheritance: DataLoaderBase<T> → InputOutputDataLoaderBase<T, Tensor<T>, Tensor<T>> → PascalVocDataLoader<T>

How It Works

Pascal VOC expects a standard directory structure:

Each XML annotation file contains bounding boxes with class names. Labels are stored as Tensor[N, MaxDetections, 5] (class_id, x, y, w, h) normalized to [0, 1].

Constructors

Constructor Summary
PascalVocDataLoader(PascalVocDataLoaderOptions options) Creates a new Pascal VOC data loader.

Properties

Property Summary
IReadOnlyList<string> ClassNames { get; } Gets the class names.
int FeatureCount { get; }
int OutputDimension { get; }
int TotalCount { get; }
string Description { get; }
string Name { get; }

Methods

Method Summary
ValueTuple<IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>> Split(double trainRatio, double validationRatio, int? seed)