public class ImageNetRecordReader extends BaseImageRecordReader
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
eval |
protected String |
fileNameMapPath |
protected Map<String,String> |
labelFileIdMap |
protected String |
labelPath |
protected static org.slf4j.Logger |
log |
appendLabel, channels, CHANNELS, conf, CROP_IMAGE, cropImage, currentFile, fileNameMap, height, HEIGHT, hitImage, IMAGE_LOADER, imageLoader, inputSplit, iter, labels, pattern, patternPosition, record, width, WIDTH| Constructor and Description |
|---|
ImageNetRecordReader(int height,
int width,
int channels,
String labelPath) |
ImageNetRecordReader(int height,
int width,
int channels,
String labelPath,
boolean appendLabel) |
ImageNetRecordReader(int height,
int width,
int channels,
String labelPath,
boolean appendLabel,
String pattern) |
ImageNetRecordReader(int height,
int width,
int channels,
String labelPath,
boolean appendLabel,
String pattern,
int patternPosition) |
ImageNetRecordReader(int height,
int width,
int channels,
String labelPath,
String fileNameMapPath,
boolean appendLabel) |
ImageNetRecordReader(int height,
int width,
int channels,
String labelPath,
String fileNameMapPath,
boolean appendLabel,
String pattern,
int patternPosition) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(org.canova.api.split.InputSplit split) |
Collection<org.canova.api.writable.Writable> |
next() |
Collection<org.canova.api.writable.Writable> |
record(URI uri,
DataInputStream dataInputStream) |
accumulateLabel, close, containsFormat, getConf, getCurrentFile, getLabel, getLabels, hasNext, initialize, numLabels, reset, setConf, setCurrentFileprotected static org.slf4j.Logger log
protected String labelPath
protected String fileNameMapPath
protected boolean eval
public ImageNetRecordReader(int height,
int width,
int channels,
String labelPath)
public ImageNetRecordReader(int height,
int width,
int channels,
String labelPath,
boolean appendLabel)
public ImageNetRecordReader(int height,
int width,
int channels,
String labelPath,
boolean appendLabel,
String pattern)
public ImageNetRecordReader(int height,
int width,
int channels,
String labelPath,
boolean appendLabel,
String pattern,
int patternPosition)
public ImageNetRecordReader(int height,
int width,
int channels,
String labelPath,
String fileNameMapPath,
boolean appendLabel)
public void initialize(org.canova.api.split.InputSplit split)
throws IOException
initialize in interface org.canova.api.records.reader.RecordReaderinitialize in class BaseImageRecordReaderIOExceptionpublic Collection<org.canova.api.writable.Writable> next()
next in interface org.canova.api.records.reader.RecordReadernext in class BaseImageRecordReaderpublic Collection<org.canova.api.writable.Writable> record(URI uri, DataInputStream dataInputStream) throws IOException
record in interface org.canova.api.records.reader.RecordReaderrecord in class BaseImageRecordReaderIOExceptionCopyright © 2016. All rights reserved.