yolov8-cls-resnet101.yaml 994 B

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