File size: 1,165 Bytes
ab854b9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
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](https://docs.ultralytics.com/help/contributing/) ๐Ÿ› ๏ธ. Thank you ๐Ÿ™!

---
## ::: ultralytics.utils.loss.VarifocalLoss
<br><br>

---
## ::: ultralytics.utils.loss.FocalLoss
<br><br>

---
## ::: ultralytics.utils.loss.BboxLoss
<br><br>

---
## ::: ultralytics.utils.loss.KeypointLoss
<br><br>

---
## ::: ultralytics.utils.loss.v8DetectionLoss
<br><br>

---
## ::: ultralytics.utils.loss.v8SegmentationLoss
<br><br>

---
## ::: ultralytics.utils.loss.v8PoseLoss
<br><br>

---
## ::: ultralytics.utils.loss.v8ClassificationLoss
<br><br>