org.canova.image.lfw

Class LFWLoader



  • public class LFWLoaderextends Object
    Loads LFW faces data transform. You can customize the size of the images as well
    Author:
    Adam Gibson
    • Constructor Detail

      • LFWLoader

        public LFWLoader()
      • LFWLoader

        public LFWLoader(int imageWidth,                 int imageHeight)
    • Method Detail

      • convertListPairs

        public org.nd4j.linalg.dataset.DataSet convertListPairs(List<org.nd4j.linalg.dataset.DataSet> images)
      • getDataFor

        public org.nd4j.linalg.dataset.DataSet getDataFor(int i)
      • getFeatureMatrix

        public List<org.nd4j.linalg.dataset.DataSet> getFeatureMatrix(int num)                                                       throws Exception
        Get the first num found images
        Parameters:
        num - the number of images to getFromOrigin
        Returns:
        Throws:
        Exception
      • getAllImagesAsMatrix

        public org.nd4j.linalg.dataset.DataSet getAllImagesAsMatrix()                                                     throws Exception
        Throws:
        Exception
      • getAllImagesAsMatrix

        public org.nd4j.linalg.dataset.DataSet getAllImagesAsMatrix(int numRows)                                                     throws Exception
        Throws:
        Exception
      • getImagesAsList

        public List<org.nd4j.linalg.dataset.DataSet> getImagesAsList()                                                      throws Exception
        Throws:
        Exception
      • fromImageFile

        public org.nd4j.linalg.dataset.DataSet fromImageFile(int label,                                                     File image)                                              throws Exception
        Throws:
        Exception
      • getNumNames

        public int getNumNames()
      • getNumPixelColumns

        public int getNumPixelColumns()

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