org.canova.image.recordreader

Class ImageNetRecordReader

  • All Implemented Interfaces:
    Closeable, Serializable, AutoCloseable, org.canova.api.conf.Configurable, org.canova.api.records.reader.RecordReader


    public class ImageNetRecordReaderextends BaseImageRecordReader
    Record reader to handle ImageNet dataset Built to avoid changing api at this time. Api should change to track labels that are only referenced by id in filename Creates a hashmap for label name to id and references that with filename to generate matching lables.
    See Also:
    Serialized Form
    • Field Detail

      • log

        protected static org.slf4j.Logger log
      • allowedFormats

        protected final List<String> allowedFormats
      • labelPath

        protected String labelPath
      • fileNameMapPath

        protected String fileNameMapPath
      • eval

        protected boolean eval
    • Constructor Detail

      • ImageNetRecordReader

        public ImageNetRecordReader(int width,                            int height,                            int channels,                            String labelPath)
      • ImageNetRecordReader

        public ImageNetRecordReader(int width,                            int height,                            int channels,                            boolean appendLabel,                            String labelPath)
      • ImageNetRecordReader

        public ImageNetRecordReader(int width,                            int height,                            int channels,                            boolean appendLabel,                            String labelPath,                            String fileNameMapPath)
    • Method Detail

      • numLabels

        public int numLabels()
      • next

        public Collection<org.canova.api.writable.Writable> next()
        Specified by:
        next in interface org.canova.api.records.reader.RecordReader
        Overrides:
        next in class BaseImageRecordReader
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface org.canova.api.records.reader.RecordReader
        Overrides:
        hasNext in class BaseImageRecordReader
      • reset

        public void reset()
        Specified by:
        reset in interface org.canova.api.records.reader.RecordReader
        Overrides:
        reset in class BaseImageRecordReader

Copyright © 2015. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14