public abstract class BaseImageLoader extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String[] |
ALLOWED_FORMATS |
static File |
BASE_DIR |
protected boolean |
centerCropIfNeeded |
protected int |
channels |
protected int |
height |
protected static org.slf4j.Logger |
log |
protected Random |
rng |
protected int |
width |
| Constructor and Description |
|---|
BaseImageLoader() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.nd4j.linalg.api.ndarray.INDArray |
asMatrix(File f) |
abstract org.nd4j.linalg.api.ndarray.INDArray |
asMatrix(InputStream inputStream) |
abstract org.nd4j.linalg.api.ndarray.INDArray |
asRowVector(File f) |
abstract org.nd4j.linalg.api.ndarray.INDArray |
asRowVector(InputStream inputStream) |
void |
downloadAndUntar(Map urlMap,
File fullDir) |
String[] |
getAllowedFormats() |
protected static final org.slf4j.Logger log
public static final File BASE_DIR
public static final String[] ALLOWED_FORMATS
protected Random rng
protected int height
protected int width
protected int channels
protected boolean centerCropIfNeeded
public String[] getAllowedFormats()
public abstract org.nd4j.linalg.api.ndarray.INDArray asRowVector(File f) throws IOException
IOExceptionpublic abstract org.nd4j.linalg.api.ndarray.INDArray asRowVector(InputStream inputStream) throws IOException
IOExceptionpublic abstract org.nd4j.linalg.api.ndarray.INDArray asMatrix(File f) throws IOException
IOExceptionpublic abstract org.nd4j.linalg.api.ndarray.INDArray asMatrix(InputStream inputStream) throws IOException
IOExceptionCopyright © 2016. All rights reserved.