public class SSDOutputAdapter extends Object implements MultiOutputAdapter<org.nd4j.linalg.api.ndarray.INDArray[]>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LABELS_RESOURCE_NAME |
| Constructor and Description |
|---|
SSDOutputAdapter(double threshold,
InputStream labels,
int numLabels) |
SSDOutputAdapter(double threshold,
int numLabels) |
SSDOutputAdapter(double threshold,
org.deeplearning4j.zoo.util.Labels labels,
int numLabels) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,BatchOutput> |
adapt(org.nd4j.linalg.api.ndarray.INDArray[] input,
List<String> outputNames,
io.vertx.ext.web.RoutingContext routingContext)
Adapt a pair of
INDArray
and the output names,
with the array input ordered by the output name |
static org.deeplearning4j.zoo.util.Labels |
getLabels() |
static org.deeplearning4j.zoo.util.Labels |
getLabels(InputStream is,
int numLabels) |
List<Class<? extends OutputAdapter<?>>> |
outputAdapterTypes()
Returns a map of the strings by output name
to the
OutputAdapter
for each output |
public static final String DEFAULT_LABELS_RESOURCE_NAME
public SSDOutputAdapter(double threshold,
org.deeplearning4j.zoo.util.Labels labels,
int numLabels)
public SSDOutputAdapter(double threshold,
int numLabels)
public SSDOutputAdapter(double threshold,
InputStream labels,
int numLabels)
public static org.deeplearning4j.zoo.util.Labels getLabels(InputStream is, int numLabels)
public static org.deeplearning4j.zoo.util.Labels getLabels()
public Map<String,BatchOutput> adapt(org.nd4j.linalg.api.ndarray.INDArray[] input, List<String> outputNames, io.vertx.ext.web.RoutingContext routingContext)
MultiOutputAdapterINDArray
and the output names,
with the array input ordered by the output nameadapt in interface MultiOutputAdapter<org.nd4j.linalg.api.ndarray.INDArray[]>input - the arrays to adaptoutputNames - the output names to adaptroutingContext - routing contextpublic List<Class<? extends OutputAdapter<?>>> outputAdapterTypes()
MultiOutputAdapterOutputAdapter
for each outputoutputAdapterTypes in interface MultiOutputAdapter<org.nd4j.linalg.api.ndarray.INDArray[]>Copyright © 2022. All rights reserved.