public class CustomNet extends AbstractZooModel
Constructor and Description |
---|
CustomNet() |
Modifier and Type | Method and Description |
---|---|
org.nd4j.linalg.dataset.api.preprocessor.ImagePreProcessingScaler |
getImagePreprocessingScaler()
By default, training a model uses the below scaler for the Dl4jMlpClassifier.
|
int[] |
getInputShape()
Get the input shape of this zoomodel
|
java.lang.Enum |
getVariation()
Get the current variation of the zoo model (e.g., Resnet50 or Resnet101)
|
org.deeplearning4j.nn.graph.ComputationGraph |
init(int numLabels,
long seed,
int[] shape,
boolean filterMode)
Initialize the ZooModel as MLP.
|
getChannelsLast, getDefaultGraph, getExtraLayersToRemove, getFeatureExtractionLayer, getNumFExtractOutputs, getOptions, getOutputlayer, getPretrainedType, getPrettyName, initZooModel, isPretrained, isRequiresPooling, listOptions, requiresPreProcessing, setChannelsLast, setExtraLayersToRemove, setFeatureExtractionLayer, setNumFExtractOutputs, setOptions, setOutputLayer, setPretrainedType, setRequiresPooling
public org.deeplearning4j.nn.graph.ComputationGraph init(int numLabels, long seed, int[] shape, boolean filterMode) throws java.lang.UnsupportedOperationException
AbstractZooModel
init
in class AbstractZooModel
numLabels
- Number of labels to adjust the outputseed
- Seedshape
- shapefilterMode
- True if creating for feature extractionjava.lang.UnsupportedOperationException
- Init(...) was not supported (only CustomNet)public int[] getInputShape()
AbstractZooModel
getInputShape
in class AbstractZooModel
public java.lang.Enum getVariation()
getVariation
in class AbstractZooModel
public org.nd4j.linalg.dataset.api.preprocessor.ImagePreProcessingScaler getImagePreprocessingScaler()
getImagePreprocessingScaler
in class AbstractZooModel