public static class Yolo2OutputLayer.Builder extends Layer.Builder<Yolo2OutputLayer.Builder>
allParamConstraints, biasConstraints, iDropout, layerName, weightConstraints| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Yolo2OutputLayer.Builder |
boundingBoxPriors(INDArray boundingBoxes)
Bounding box priors dimensions [width, height].
|
Yolo2OutputLayer |
build() |
Yolo2OutputLayer.Builder |
lambdaCoord(double lambdaCoord)
Loss function coefficient for position and size/scale components of the loss function.
|
Yolo2OutputLayer.Builder |
lambdaNoObj(double lambdaNoObj)
Loss function coefficient for the "no object confidence" components of the loss function.
|
Yolo2OutputLayer.Builder |
lossClassPredictions(ILossFunction lossClassPredictions)
Loss function for the class predictions - defaults to L2 loss (i.e., sum of squared errors, as per the
paper), however Loss MCXENT could also be used (which is more common for classification).
|
Yolo2OutputLayer.Builder |
lossPositionScale(ILossFunction lossPositionScale)
Loss function for position/scale component of the loss function
|
constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, namepublic Yolo2OutputLayer.Builder lambdaCoord(double lambdaCoord)
lambdaCoord - Lambda value for size/scale component of loss functionpublic Yolo2OutputLayer.Builder lambdaNoObj(double lambdaNoObj)
lambdaNoObj - Lambda value for no-object (confidence) component of the loss functionpublic Yolo2OutputLayer.Builder lossPositionScale(ILossFunction lossPositionScale)
lossPositionScale - Loss function for position/scalepublic Yolo2OutputLayer.Builder lossClassPredictions(ILossFunction lossClassPredictions)
lossClassPredictions - Loss function for the class prediction error component of the YOLO loss functionpublic Yolo2OutputLayer.Builder boundingBoxPriors(INDArray boundingBoxes)
boundingBoxes - Bounding box prior dimensions (width, height)public Yolo2OutputLayer build()
build in class Layer.Builder<Yolo2OutputLayer.Builder>Copyright © 2020. All rights reserved.