yolo11-pose.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
  2. # Ultralytics YOLO11-pose keypoints/pose estimation model with P3/8 - P5/32 outputs
  3. # Model docs: https://docs.ultralytics.com/models/yolo11
  4. # Task docs: https://docs.ultralytics.com/tasks/pose
  5. # Parameters
  6. nc: 80 # number of classes
  7. kpt_shape: [17, 3] # number of keypoints, number of dims (2 for x,y or 3 for x,y,visible)
  8. scales: # model compound scaling constants, i.e. 'model=yolo11n-pose.yaml' will call yolo11.yaml with scale 'n'
  9. # [depth, width, max_channels]
  10. n: [0.50, 0.25, 1024] # summary: 344 layers, 2908507 parameters, 2908491 gradients, 7.7 GFLOPs
  11. s: [0.50, 0.50, 1024] # summary: 344 layers, 9948811 parameters, 9948795 gradients, 23.5 GFLOPs
  12. m: [0.50, 1.00, 512] # summary: 434 layers, 20973273 parameters, 20973257 gradients, 72.3 GFLOPs
  13. l: [1.00, 1.00, 512] # summary: 656 layers, 26230745 parameters, 26230729 gradients, 91.4 GFLOPs
  14. x: [1.00, 1.50, 512] # summary: 656 layers, 58889881 parameters, 58889865 gradients, 204.3 GFLOPs
  15. # YOLO11n backbone
  16. backbone:
  17. # [from, repeats, module, args]
  18. - [-1, 1, Conv, [64, 3, 2]] # 0-P1/2
  19. - [-1, 1, Conv, [128, 3, 2]] # 1-P2/4
  20. - [-1, 2, C3k2, [256, False, 0.25]]
  21. - [-1, 1, Conv, [256, 3, 2]] # 3-P3/8
  22. - [-1, 2, C3k2, [512, False, 0.25]]
  23. - [-1, 1, Conv, [512, 3, 2]] # 5-P4/16
  24. - [-1, 2, C3k2, [512, True]]
  25. - [-1, 1, Conv, [1024, 3, 2]] # 7-P5/32
  26. - [-1, 2, C3k2, [1024, True]]
  27. - [-1, 1, SPPF, [1024, 5]] # 9
  28. - [-1, 2, C2PSA, [1024]] # 10
  29. # YOLO11n head
  30. head:
  31. - [-1, 1, nn.Upsample, [None, 2, "nearest"]]
  32. - [[-1, 6], 1, Concat, [1]] # cat backbone P4
  33. - [-1, 2, C3k2, [512, False]] # 13
  34. - [-1, 1, nn.Upsample, [None, 2, "nearest"]]
  35. - [[-1, 4], 1, Concat, [1]] # cat backbone P3
  36. - [-1, 2, C3k2, [256, False]] # 16 (P3/8-small)
  37. - [-1, 1, Conv, [256, 3, 2]]
  38. - [[-1, 13], 1, Concat, [1]] # cat head P4
  39. - [-1, 2, C3k2, [512, False]] # 19 (P4/16-medium)
  40. - [-1, 1, Conv, [512, 3, 2]]
  41. - [[-1, 10], 1, Concat, [1]] # cat head P5
  42. - [-1, 2, C3k2, [1024, True]] # 22 (P5/32-large)
  43. - [[16, 19, 22], 1, Pose, [nc, kpt_shape]] # Detect(P3, P4, P5)