public abstract class ZooModel<T> extends Object implements InstantiableModel
Constructor and Description |
---|
ZooModel() |
Modifier and Type | Method and Description |
---|---|
Model |
initPretrained()
By default, will return a pretrained ImageNet if available.
|
<M extends Model> |
initPretrained(PretrainedType pretrainedType)
Returns a pretrained model for the given dataset, if available.
|
String |
modelName() |
boolean |
pretrainedAvailable(PretrainedType pretrainedType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, metaData, modelType, pretrainedChecksum, pretrainedUrl, setInputShape
public boolean pretrainedAvailable(PretrainedType pretrainedType)
public Model initPretrained() throws IOException
IOException
public <M extends Model> M initPretrained(PretrainedType pretrainedType) throws IOException
pretrainedType
- IOException
public String modelName()
modelName
in interface InstantiableModel
Copyright © 2021. All rights reserved.