Main Content

progress

Percentage of data read from a datastore

Description

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

example

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
    {[126 78 20 16]}    {[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.

Version History

Introduced in R2019b