public class YOLOOutputAdapter extends Object implements MultiOutputAdapter<org.nd4j.linalg.api.ndarray.INDArray[]>
| Constructor and Description |
|---|
YOLOOutputAdapter(double threshold,
InputStream labels,
int numLabels) |
YOLOOutputAdapter(double threshold,
int numLabels) |
YOLOOutputAdapter(double threshold,
int[] inputShape,
org.deeplearning4j.zoo.util.Labels labels,
int numLabels,
double[][] boundingBoxPriors) |
YOLOOutputAdapter(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 |
List<Class<? extends OutputAdapter<?>>> |
outputAdapterTypes()
Returns a map of the strings by output name
to the
OutputAdapter
for each output |
public YOLOOutputAdapter(double threshold,
int[] inputShape,
org.deeplearning4j.zoo.util.Labels labels,
int numLabels,
double[][] boundingBoxPriors)
public YOLOOutputAdapter(double threshold,
org.deeplearning4j.zoo.util.Labels labels,
int numLabels)
public YOLOOutputAdapter(double threshold,
int numLabels)
public YOLOOutputAdapter(double threshold,
InputStream labels,
int numLabels)
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.