MPSCNNYOLOLoss(3) | MetalPerformanceShaders.framework | MPSCNNYOLOLoss(3) |
MPSCNNYOLOLoss
#import <MPSCNNLoss.h>
Inherits MPSCNNKernel.
(nonnull instancetype) - initWithDevice:
(nonnull instancetype) - initWithDevice:lossDescriptor:
(nullable instancetype) - initWithCoder:device:
(void) - encodeToCommandBuffer:sourceImage:labels:destinationImage:
(MPSImage *__nonnull) -
encodeToCommandBuffer:sourceImage:labels:
(void) -
encodeBatchToCommandBuffer:sourceImages:labels:destinationImages:
(MPSImageBatch *__nonnull) -
encodeBatchToCommandBuffer:sourceImages:labels:
MPSCNNLoss * lossXY
MPSCNNLoss * lossWH
MPSCNNLoss * lossConfidence
MPSCNNLoss * lossClasses
float scaleXY
float scaleWH
float scaleNoObject
float scaleObject
float scaleClass
float minIOUForObjectPresence
float maxIOUForObjectAbsence
MPSCNNReductionType reductionType
NSUInteger numberOfAnchorBoxes
NSData * anchorBoxes
Encode a MPSCNNLoss filter and return a gradient. This -encode call is similar to the encodeToCommandBuffer:sourceImage:labels:destinationImage: above, except that it creates and returns the MPSImage with the loss gradient result.
Parameters:
Returns:
Encode a MPSCNNYOLOLoss filter and return a gradient in the destinationImage. This filter consumes the output of a previous layer and the MPSCNNLossLabels object containing the target data (labels) and optionally, weights for the labels. The destinationImage contains the computed gradient for the loss layer. It serves as a source gradient input image to the first gradient layer (in the backward direction). For information on the data-layout see MPSCNNYOLOLossDescriptor.
Parameters:
<NSSecureCoding> support
Reimplemented from MPSCNNKernel.
Standard init with default properties per filter type
Parameters:
Returns:
Reimplemented from MPSCNNKernel.
Initialize the loss filter with a loss descriptor.
Parameters:
Returns:
loss filter for prediction of bounding box predicted class of the detected object
loss filter for prediction of bounding box probability of presence of object
loss filter for prediction of bounding box size
loss filter for prediction of bounding box position
See MPSCNNYOLOLossDescriptor for information about the following properties.
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Mon Jul 9 2018 | Version MetalPerformanceShaders-119.3 |