Path: blob/master/models/hub/yolov5-fpn.yaml
1643 views
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license12# Parameters3nc: 80 # number of classes4depth_multiple: 1.0 # model depth multiple5width_multiple: 1.0 # layer channel multiple6anchors:7- [10,13, 16,30, 33,23] # P3/88- [30,61, 62,45, 59,119] # P4/169- [116,90, 156,198, 373,326] # P5/321011# YOLOv5 v6.0 backbone12backbone:13# [from, number, module, args]14[[-1, 1, Conv, [64, 6, 2, 2]], # 0-P1/215[-1, 1, Conv, [128, 3, 2]], # 1-P2/416[-1, 3, C3, [128]],17[-1, 1, Conv, [256, 3, 2]], # 3-P3/818[-1, 6, C3, [256]],19[-1, 1, Conv, [512, 3, 2]], # 5-P4/1620[-1, 9, C3, [512]],21[-1, 1, Conv, [1024, 3, 2]], # 7-P5/3222[-1, 3, C3, [1024]],23[-1, 1, SPPF, [1024, 5]], # 924]2526# YOLOv5 v6.0 FPN head27head:28[[-1, 3, C3, [1024, False]], # 10 (P5/32-large)2930[-1, 1, nn.Upsample, [None, 2, 'nearest']],31[[-1, 6], 1, Concat, [1]], # cat backbone P432[-1, 1, Conv, [512, 1, 1]],33[-1, 3, C3, [512, False]], # 14 (P4/16-medium)3435[-1, 1, nn.Upsample, [None, 2, 'nearest']],36[[-1, 4], 1, Concat, [1]], # cat backbone P337[-1, 1, Conv, [256, 1, 1]],38[-1, 3, C3, [256, False]], # 18 (P3/8-small)3940[[18, 14, 10], 1, Detect, [nc, anchors]], # Detect(P3, P4, P5)41]424344