--- description: Explore Ultralytics' versatile loss functions - VarifocalLoss, BboxLoss, v8DetectionLoss, v8PoseLoss. Improve your accuracy on YOLO implementations. keywords: Ultralytics, Loss functions, VarifocalLoss, BboxLoss, v8DetectionLoss, v8PoseLoss, YOLO, Ultralytics Documentation --- # Reference for `ultralytics/utils/loss.py` !!! note Full source code for this file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/loss.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/loss.py). Help us fix any issues you see by submitting a [Pull Request](/help/contributing/) 🛠️. Thank you 🙏! --- ## ::: ultralytics.utils.loss.VarifocalLoss

--- ## ::: ultralytics.utils.loss.FocalLoss

--- ## ::: ultralytics.utils.loss.BboxLoss

--- ## ::: ultralytics.utils.loss.KeypointLoss

--- ## ::: ultralytics.utils.loss.v8DetectionLoss

--- ## ::: ultralytics.utils.loss.v8SegmentationLoss

--- ## ::: ultralytics.utils.loss.v8PoseLoss

--- ## ::: ultralytics.utils.loss.v8ClassificationLoss