public class LFWLoader extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LFW |
static String |
LFW_URL |
Constructor and Description |
---|
LFWLoader() |
LFWLoader(int imageWidth,
int imageHeight) |
Modifier and Type | Method and Description |
---|---|
org.nd4j.linalg.dataset.DataSet |
convertListPairs(List<org.nd4j.linalg.dataset.DataSet> images) |
org.nd4j.linalg.dataset.DataSet |
fromImageFile(int label,
File image) |
org.nd4j.linalg.dataset.DataSet |
getAllImagesAsMatrix() |
org.nd4j.linalg.dataset.DataSet |
getAllImagesAsMatrix(int numRows) |
org.nd4j.linalg.dataset.DataSet |
getDataFor(int i) |
List<org.nd4j.linalg.dataset.DataSet> |
getFeatureMatrix(int num)
Get the first num found images
|
void |
getIfNotExists() |
List<org.nd4j.linalg.dataset.DataSet> |
getImages(int label,
File file) |
List<org.nd4j.linalg.dataset.DataSet> |
getImagesAsList() |
int |
getNumNames() |
int |
getNumPixelColumns() |
void |
untarFile(File baseDir,
File tarFile) |
public static final String LFW
public static final String LFW_URL
public LFWLoader()
public LFWLoader(int imageWidth, int imageHeight)
public org.nd4j.linalg.dataset.DataSet convertListPairs(List<org.nd4j.linalg.dataset.DataSet> images)
public org.nd4j.linalg.dataset.DataSet getDataFor(int i)
public List<org.nd4j.linalg.dataset.DataSet> getFeatureMatrix(int num) throws Exception
num
- the number of images to getFromOriginException
public org.nd4j.linalg.dataset.DataSet getAllImagesAsMatrix() throws Exception
Exception
public org.nd4j.linalg.dataset.DataSet getAllImagesAsMatrix(int numRows) throws Exception
Exception
public List<org.nd4j.linalg.dataset.DataSet> getImagesAsList() throws Exception
Exception
public List<org.nd4j.linalg.dataset.DataSet> getImages(int label, File file) throws Exception
Exception
public org.nd4j.linalg.dataset.DataSet fromImageFile(int label, File image) throws Exception
Exception
public void untarFile(File baseDir, File tarFile) throws IOException
IOException
public int getNumNames()
public int getNumPixelColumns()
Copyright © 2015. All Rights Reserved.