coco_openpose.py 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. dataset_info = dict(
  2. dataset_name='coco_openpose',
  3. paper_info=dict(
  4. author='Zhe, Cao and Tomas, Simon and '
  5. 'Shih-En, Wei and Yaser, Sheikh',
  6. title='OpenPose: Realtime Multi-Person 2D Pose '
  7. 'Estimation using Part Affinity Fields',
  8. container='IEEE Transactions on Pattern Analysis '
  9. 'and Machine Intelligence',
  10. year='2019',
  11. homepage='https://github.com/CMU-Perceptual-Computing-Lab/openpose/',
  12. ),
  13. keypoint_info={
  14. 0:
  15. dict(name='nose', id=0, color=[255, 0, 85], type='upper', swap=''),
  16. 1:
  17. dict(name='neck', id=1, color=[255, 0, 0], type='upper', swap=''),
  18. 2:
  19. dict(
  20. name='right_shoulder',
  21. id=2,
  22. color=[255, 85, 0],
  23. type='upper',
  24. swap='left_shoulder'),
  25. 3:
  26. dict(
  27. name='right_elbow',
  28. id=3,
  29. color=[255, 170, 0],
  30. type='upper',
  31. swap='left_elbow'),
  32. 4:
  33. dict(
  34. name='right_wrist',
  35. id=4,
  36. color=[255, 255, 0],
  37. type='upper',
  38. swap='left_wrist'),
  39. 5:
  40. dict(
  41. name='left_shoulder',
  42. id=5,
  43. color=[170, 255, 0],
  44. type='upper',
  45. swap='right_shoulder'),
  46. 6:
  47. dict(
  48. name='left_elbow',
  49. id=6,
  50. color=[85, 255, 0],
  51. type='upper',
  52. swap='right_elbow'),
  53. 7:
  54. dict(
  55. name='left_wrist',
  56. id=7,
  57. color=[0, 255, 0],
  58. type='upper',
  59. swap='right_wrist'),
  60. 8:
  61. dict(
  62. name='right_hip',
  63. id=8,
  64. color=[255, 0, 170],
  65. type='lower',
  66. swap='left_hip'),
  67. 9:
  68. dict(
  69. name='right_knee',
  70. id=9,
  71. color=[255, 0, 255],
  72. type='lower',
  73. swap='left_knee'),
  74. 10:
  75. dict(
  76. name='right_ankle',
  77. id=10,
  78. color=[170, 0, 255],
  79. type='lower',
  80. swap='left_ankle'),
  81. 11:
  82. dict(
  83. name='left_hip',
  84. id=11,
  85. color=[85, 255, 0],
  86. type='lower',
  87. swap='right_hip'),
  88. 12:
  89. dict(
  90. name='left_knee',
  91. id=12,
  92. color=[0, 0, 255],
  93. type='lower',
  94. swap='right_knee'),
  95. 13:
  96. dict(
  97. name='left_ankle',
  98. id=13,
  99. color=[0, 85, 255],
  100. type='lower',
  101. swap='right_ankle'),
  102. 14:
  103. dict(
  104. name='right_eye',
  105. id=14,
  106. color=[0, 255, 170],
  107. type='upper',
  108. swap='left_eye'),
  109. 15:
  110. dict(
  111. name='left_eye',
  112. id=15,
  113. color=[0, 255, 255],
  114. type='upper',
  115. swap='right_eye'),
  116. 16:
  117. dict(
  118. name='right_ear',
  119. id=16,
  120. color=[0, 170, 255],
  121. type='upper',
  122. swap='left_ear'),
  123. 17:
  124. dict(
  125. name='left_ear',
  126. id=17,
  127. color=[0, 170, 255],
  128. type='upper',
  129. swap='right_ear'),
  130. },
  131. skeleton_info={
  132. 0: dict(link=('neck', 'right_shoulder'), id=0, color=[255, 0, 85]),
  133. 1: dict(link=('neck', 'left_shoulder'), id=1, color=[255, 0, 0]),
  134. 2:
  135. dict(link=('right_shoulder', 'right_elbow'), id=2, color=[255, 85, 0]),
  136. 3:
  137. dict(link=('right_elbow', 'right_wrist'), id=3, color=[255, 170, 0]),
  138. 4:
  139. dict(link=('left_shoulder', 'left_elbow'), id=4, color=[255, 255, 0]),
  140. 5: dict(link=('left_elbow', 'left_wrist'), id=5, color=[170, 255, 0]),
  141. 6: dict(link=('neck', 'right_hip'), id=6, color=[85, 255, 0]),
  142. 7: dict(link=('right_hip', 'right_knee'), id=7, color=[0, 255, 0]),
  143. 8: dict(link=('right_knee', 'right_ankle'), id=8, color=[0, 255, 85]),
  144. 9: dict(link=('neck', 'left_hip'), id=9, color=[0, 255, 170]),
  145. 10: dict(link=('left_hip', 'left_knee'), id=10, color=[0, 255, 225]),
  146. 11: dict(link=('left_knee', 'left_ankle'), id=11, color=[0, 170, 255]),
  147. 12: dict(link=('neck', 'nose'), id=12, color=[0, 85, 255]),
  148. 13: dict(link=('nose', 'right_eye'), id=13, color=[0, 0, 255]),
  149. 14: dict(link=('right_eye', 'right_ear'), id=14, color=[255, 0, 170]),
  150. 15: dict(link=('nose', 'left_eye'), id=15, color=[170, 0, 255]),
  151. 16: dict(link=('left_eye', 'left_ear'), id=16, color=[255, 0, 255]),
  152. },
  153. joint_weights=[1.] * 18,
  154. sigmas=[
  155. 0.026, 0.025, 0.025, 0.035, 0.035, 0.079, 0.079, 0.072, 0.072, 0.062,
  156. 0.062, 0.107, 0.107, 0.087, 0.087, 0.089, 0.089, 0.082
  157. ])