<!--
{
  "availability" : [
    "*: -",
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNS/LossFunction/YoloParameters",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4BNNSO12LossFunctionO14YoloParametersV"
  },
  "title" : "BNNS.LossFunction.YoloParameters"
}
-->

# BNNS.LossFunction.YoloParameters

A structure that contains the parameters for You Only Look Once (YOLO) loss computation.

```
struct YoloParameters
```

## Topics

### Instance Properties

[`anchorBoxCount`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/anchorBoxCount)

The number of anchor boxes in each cell.

[`anchorBoxSize`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/anchorBoxSize)

The size of the anchor box.

[`anchorsData`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/anchorsData)

Maximum IOU for treating as no object.

[`classificationScale`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/classificationScale)

The value that specifies the classification scaling factor.

[`gridColumnCount`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/gridColumnCount)

The number of columns in the grid.

[`gridRowsCount`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/gridRowsCount)

The number of rows in the grid.

[`huberDelta`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/huberDelta)

A value that’s interpreted as width-height loss.

[`noObjectMaximumIoU`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/noObjectMaximumIoU)

The value that specifies intersection over union (IOU) that’s the maximum the function treats as not an object.

[`noObjectScale`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/noObjectScale)

The value that specifies the no-object confidence scaling factor.

[`objectMinimumIoU`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/objectMinimumIoU)

The value that specifies intersection over union (IOU) that’s the minimum the function treats as an object.

[`objectScale`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/objectScale)

The value that specifies the object confidence loss-scaling factor.

[`rescore`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/rescore)

A Boolean value that determines whether to rescore confidence according to prediction verus ground truth Intersection Over Union (IOU).

[`whScale`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/whScale)

A Boolean value that determines whether to rescore confidence according to prediction verus ground truth Intersection Over Union (IOU).

[`xyScale`](/documentation/Accelerate/BNNS/LossFunction/YoloParameters/xyScale)

The value that specifies the x, y loss-scaling factor.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)