public abstract class KerasZooModel
extends org.deeplearning4j.zoo.ZooModel
implements java.io.Serializable
Constructor and Description |
---|
KerasZooModel() |
Modifier and Type | Method and Description |
---|---|
org.deeplearning4j.nn.graph.ComputationGraph |
init() |
org.deeplearning4j.nn.graph.ComputationGraph |
initPretrained(org.deeplearning4j.zoo.PretrainedType pretrainedType) |
org.deeplearning4j.zoo.ModelMetaData |
metaData() |
abstract java.lang.String |
modelFamily()
Get the model family.
|
abstract java.lang.String |
modelPrettyName()
Get the pretty name of the model (e.g., ResNet 50)
|
java.lang.Class<? extends org.deeplearning4j.nn.api.Model> |
modelType() |
long |
pretrainedChecksum(org.deeplearning4j.zoo.PretrainedType pretrainedType) |
java.lang.String |
pretrainedUrl(org.deeplearning4j.zoo.PretrainedType pretrainedType) |
void |
setInputShape(int[][] inputShape) |
abstract void |
setVariation(java.lang.Enum variation) |
public abstract java.lang.String modelFamily()
public abstract java.lang.String modelPrettyName()
public abstract void setVariation(java.lang.Enum variation)
public java.lang.Class<? extends org.deeplearning4j.nn.api.Model> modelType()
modelType
in interface org.deeplearning4j.zoo.InstantiableModel
public org.deeplearning4j.nn.graph.ComputationGraph init()
init
in interface org.deeplearning4j.zoo.InstantiableModel
public java.lang.String pretrainedUrl(org.deeplearning4j.zoo.PretrainedType pretrainedType)
pretrainedUrl
in interface org.deeplearning4j.zoo.InstantiableModel
public long pretrainedChecksum(org.deeplearning4j.zoo.PretrainedType pretrainedType)
pretrainedChecksum
in interface org.deeplearning4j.zoo.InstantiableModel
public org.deeplearning4j.nn.graph.ComputationGraph initPretrained(org.deeplearning4j.zoo.PretrainedType pretrainedType) throws java.io.IOException
initPretrained
in class org.deeplearning4j.zoo.ZooModel
java.io.IOException
public void setInputShape(int[][] inputShape)
setInputShape
in interface org.deeplearning4j.zoo.InstantiableModel
public org.deeplearning4j.zoo.ModelMetaData metaData()
metaData
in interface org.deeplearning4j.zoo.InstantiableModel