Add YOLOv9 Docs page (#8478)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
2d75f72598
commit
0efbd2d7cf
4 changed files with 120 additions and 7 deletions
|
|
@ -597,7 +597,12 @@ class v8ClassificationLoss:
|
|||
|
||||
|
||||
class v8OBBLoss(v8DetectionLoss):
|
||||
def __init__(self, model): # model must be de-paralleled
|
||||
def __init__(self, model):
|
||||
"""
|
||||
Initializes v8OBBLoss with model, assigner, and rotated bbox loss.
|
||||
|
||||
Note model must be de-paralleled.
|
||||
"""
|
||||
super().__init__(model)
|
||||
self.assigner = RotatedTaskAlignedAssigner(topk=10, num_classes=self.nc, alpha=0.5, beta=6.0)
|
||||
self.bbox_loss = RotatedBboxLoss(self.reg_max - 1, use_dfl=self.use_dfl).to(self.device)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue