yolov8-cls.yaml 920 B

1234567891011121314151617181920212223242526272829
  1. # Ultralytics YOLO 🚀, AGPL-3.0 license
  2. # YOLOv8-cls image classification model. For Usage examples see https://docs.ultralytics.com/tasks/classify
  3. # Parameters
  4. nc: 1000 # number of classes
  5. scales: # model compound scaling constants, i.e. 'model=yolov8n-cls.yaml' will call yolov8-cls.yaml with scale 'n'
  6. # [depth, width, max_channels]
  7. n: [0.33, 0.25, 1024]
  8. s: [0.33, 0.50, 1024]
  9. m: [0.67, 0.75, 1024]
  10. l: [1.00, 1.00, 1024]
  11. x: [1.00, 1.25, 1024]
  12. # YOLOv8.0n backbone
  13. backbone:
  14. # [from, repeats, module, args]
  15. - [-1, 1, Conv, [64, 3, 2]] # 0-P1/2
  16. - [-1, 1, Conv, [128, 3, 2]] # 1-P2/4
  17. - [-1, 3, C2f, [128, True]]
  18. - [-1, 1, Conv, [256, 3, 2]] # 3-P3/8
  19. - [-1, 6, C2f, [256, True]]
  20. - [-1, 1, Conv, [512, 3, 2]] # 5-P4/16
  21. - [-1, 6, C2f, [512, True]]
  22. - [-1, 1, Conv, [1024, 3, 2]] # 7-P5/32
  23. - [-1, 3, C2f, [1024, True]]
  24. # YOLOv8.0n head
  25. head:
  26. - [-1, 1, Classify, [nc]] # Classify