public class Darknet19 extends ZooModel
ImageNet weights for this model are available and have been converted from https://pjreddie.com/darknet/imagenet/ using https://github.com/allanzelener/YAD2K .
There are 2 pretrained models, one for 224x224 images and one fine-tuned for 448x448 images. Call setInputShape() with either {3, 224, 224} or {3, 448, 448} before initialization. The channels of the input images need to be in RGB order (not BGR), with values normalized within [0, 1]. The output labels are as per https://github.com/pjreddie/darknet/blob/master/data/imagenet.shortnames.list .Modifier and Type | Method and Description |
---|---|
ComputationGraphConfiguration |
conf() |
ComputationGraph |
init() |
ModelMetaData |
metaData() |
Class<? extends Model> |
modelType() |
long |
pretrainedChecksum(PretrainedType pretrainedType) |
String |
pretrainedUrl(PretrainedType pretrainedType) |
void |
setInputShape(int[][] inputShape) |
initPretrained, initPretrained, modelName, pretrainedAvailable
public String pretrainedUrl(PretrainedType pretrainedType)
public long pretrainedChecksum(PretrainedType pretrainedType)
public ComputationGraphConfiguration conf()
public ComputationGraph init()
public ModelMetaData metaData()
public void setInputShape(int[][] inputShape)
Copyright © 2019. All rights reserved.