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 |
---|---|
DataSet |
convertListPairs(List<DataSet> images) |
DataSet |
fromImageFile(int label,
File image) |
DataSet |
getAllImagesAsMatrix() |
DataSet |
getAllImagesAsMatrix(int numRows) |
DataSet |
getDataFor(int i) |
List<DataSet> |
getFirst(int num)
Get the first num found images
|
void |
getIfNotExists() |
List<DataSet> |
getImages(int label,
File file) |
List<DataSet> |
getImagesAsList() |
int |
getNumNames() |
int |
getNumPixelColumns() |
static void |
gunzipFile(File baseDir,
File gzFile) |
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 DataSet getDataFor(int i)
public List<DataSet> getFirst(int num) throws Exception
num
- the number of images to getException
public DataSet getAllImagesAsMatrix(int numRows) throws Exception
Exception
public DataSet fromImageFile(int label, File image) throws Exception
Exception
public void untarFile(File baseDir, File tarFile) throws IOException
IOException
public static void gunzipFile(File baseDir, File gzFile) throws IOException
IOException
public int getNumNames()
public int getNumPixelColumns()
Copyright © 2014. All Rights Reserved.