progress

Percentage of data read from a datastore

Description

example

progress(ds) returns a fraction between 0.0 and 1.0 to indicate the percentage of data read from the datastore.

Examples

collapse all

Load training data that contains bounding boxes with labels for vehicles.

data = load('vehicleTrainingData.mat');
trainingData = data.vehicleTrainingData;

Add fullpath to the local vehicle data folder.

dataDir = fullfile(toolboxdir('vision'), 'visiondata');
trainingData.imageFilename = fullfile(dataDir,...
                                       trainingData.imageFilename);
blds = boxLabelDatastore(trainingData(:,2:end));

Read a couple of times, before looking at the progress.

read(blds);
read(blds);

See the progress made by the boxLabelDatastore.

preview(blds)
ans = 1×2 cell array
    {1×4 double}    {[vehicle]}

Input Arguments

collapse all

Datastore with labeled data for training a semantic segmentation network or an object detection network, specified as a boxLabelDatastore object.

Introduced in R2019b