Skip to content

Commit

Permalink
yolov8 class working
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobeltrami committed Jan 11, 2024
1 parent 2ba9318 commit 5d3fbd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion micromind/networks/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,9 @@ class YOLOv8(nn.Module):
def __init__(self, w, r, d, num_classes=80):
super().__init__()
self.net = Darknet(w, r, d)
self.fpn = Yolov8Neck(w, r, d)
self.fpn = Yolov8Neck(
filters=[int(256 * w), int(512 * w), int(512 * w * r)], d=d
)
self.head = DetectionHead(
num_classes, filters=(int(256 * w), int(512 * w), int(512 * w * r))
)
Expand Down

0 comments on commit 5d3fbd3

Please sign in to comment.