public class ImageRecordReader extends BaseImageRecordReader
appendLabel, channels, CHANNELS, conf, CROP_IMAGE, cropImage, currentFile, fileNameMap, finishedInputStreamSplit, height, HEIGHT, hitImage, IMAGE_LOADER, imageLoader, imageTransform, inputSplit, iter, labelGenerator, labelMultiGenerator, labels, logLabelCountOnInit, nchw_channels_first, pattern, patternPosition, record, width, WIDTH, writeLabellisteners, streamCreatorFnAPPEND_LABEL, LABELS, NAME_SPACE| Constructor and Description |
|---|
ImageRecordReader()
Loads images with height = 28, width = 28, and channels = 1, appending no labels.
|
ImageRecordReader(long height,
long width)
Loads images with given height, width, and channels = 1, appending no labels.
|
ImageRecordReader(long height,
long width,
long channels)
Loads images with given height, width, and channels, appending no labels - in NCHW (channels first) format
|
ImageRecordReader(long height,
long width,
long channels,
boolean nchw_channels_first)
Loads images with given height, width, and channels, appending no labels - in specified format
If nchw_channels_first == true output format is NCHW (channels first) - [numExamples, channels, height, width]If nchw_channels_first == false output format is NHWC (channels last) - [numExamples, height, width, channels] |
ImageRecordReader(long height,
long width,
long channels,
boolean nchw_channels_first,
PathLabelGenerator labelGenerator,
ImageTransform imageTransform)
Loads images with given height, width, and channels, appending labels returned by the generator.
If nchw_channels_first == true output format is NCHW (channels first) - [numExamples, channels, height, width]If nchw_channels_first == false output format is NHWC (channels last) - [numExamples, height, width, channels] |
ImageRecordReader(long height,
long width,
long channels,
ImageTransform imageTransform)
Loads images with given height, width, and channels, appending no labels.
|
ImageRecordReader(long height,
long width,
long channels,
PathLabelGenerator labelGenerator)
Loads images with given height, width, and channels, appending labels returned by the generator.
|
ImageRecordReader(long height,
long width,
long channels,
PathLabelGenerator labelGenerator,
ImageTransform imageTransform)
Loads images with given height, width, and channels, appending labels returned by the generator.
|
ImageRecordReader(long height,
long width,
long channels,
PathMultiLabelGenerator labelGenerator)
Loads images with given height, width, and channels, appending labels returned by the generator.
|
ImageRecordReader(long height,
long width,
PathLabelGenerator labelGenerator)
Loads images with given height, width, and channels, appending labels returned by the generator
Output format is NCHW (channels first) - [numExamples, channels, height, width]
|
accumulateLabel, batchesSupported, close, containsFormat, getConf, getCurrentFile, getLabel, getLabels, hasNext, initialize, initialize, initialize, initialize, loadFromMetaData, loadFromMetaData, next, next, nextRecord, numLabels, record, reset, resetSupported, setConf, setCurrentFile, setLabelsgetListeners, invokeListeners, setListeners, setListenerspublic ImageRecordReader()
public ImageRecordReader(long height,
long width,
long channels,
PathLabelGenerator labelGenerator)
public ImageRecordReader(long height,
long width,
long channels,
PathMultiLabelGenerator labelGenerator)
public ImageRecordReader(long height,
long width,
long channels)
public ImageRecordReader(long height,
long width,
long channels,
boolean nchw_channels_first)
nchw_channels_first == true output format is NCHW (channels first) - [numExamples, channels, height, width]nchw_channels_first == false output format is NHWC (channels last) - [numExamples, height, width, channels]public ImageRecordReader(long height,
long width,
long channels,
PathLabelGenerator labelGenerator,
ImageTransform imageTransform)
public ImageRecordReader(long height,
long width,
long channels,
boolean nchw_channels_first,
PathLabelGenerator labelGenerator,
ImageTransform imageTransform)
nchw_channels_first == true output format is NCHW (channels first) - [numExamples, channels, height, width]nchw_channels_first == false output format is NHWC (channels last) - [numExamples, height, width, channels]public ImageRecordReader(long height,
long width,
long channels,
ImageTransform imageTransform)
public ImageRecordReader(long height,
long width,
PathLabelGenerator labelGenerator)
public ImageRecordReader(long height,
long width)
Copyright © 2022. All rights reserved.