Class ImageRecordReader

    • Constructor Detail

      • ImageRecordReader

        public ImageRecordReader()
        Loads images with height = 28, width = 28, and channels = 1, appending no labels. Output format is NCHW (channels first) - [numExamples, 1, 28, 28]
      • ImageRecordReader

        public ImageRecordReader​(long height,
                                 long width,
                                 long channels,
                                 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]
      • ImageRecordReader

        public ImageRecordReader​(long height,
                                 long width,
                                 long channels,
                                 PathMultiLabelGenerator 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]
      • ImageRecordReader

        public ImageRecordReader​(long height,
                                 long width,
                                 long channels)
        Loads images with given height, width, and channels, appending no labels - in NCHW (channels first) format
      • ImageRecordReader

        public 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

        public 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. Output format is NCHW (channels first) - [numExamples, channels, height, width]
      • ImageRecordReader

        public 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

        public ImageRecordReader​(long height,
                                 long width,
                                 long channels,
                                 ImageTransform imageTransform)
        Loads images with given height, width, and channels, appending no labels. Output format is NCHW (channels first) - [numExamples, channels, height, width]
      • ImageRecordReader

        public 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]
      • ImageRecordReader

        public ImageRecordReader​(long height,
                                 long width)
        Loads images with given height, width, and channels = 1, appending no labels. Output format is NCHW (channels first) - [numExamples, channels, height, width]