macaque.py 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. dataset_info = dict(
  2. dataset_name='macaque',
  3. paper_info=dict(
  4. author='Labuguen, Rollyn and Matsumoto, Jumpei and '
  5. 'Negrete, Salvador and Nishimaru, Hiroshi and '
  6. 'Nishijo, Hisao and Takada, Masahiko and '
  7. 'Go, Yasuhiro and Inoue, Ken-ichi and Shibata, Tomohiro',
  8. title='MacaquePose: A novel "in the wild" macaque monkey pose dataset '
  9. 'for markerless motion capture',
  10. container='bioRxiv',
  11. year='2020',
  12. homepage='http://www.pri.kyoto-u.ac.jp/datasets/'
  13. 'macaquepose/index.html',
  14. ),
  15. keypoint_info={
  16. 0:
  17. dict(name='nose', id=0, color=[51, 153, 255], type='upper', swap=''),
  18. 1:
  19. dict(
  20. name='left_eye',
  21. id=1,
  22. color=[51, 153, 255],
  23. type='upper',
  24. swap='right_eye'),
  25. 2:
  26. dict(
  27. name='right_eye',
  28. id=2,
  29. color=[51, 153, 255],
  30. type='upper',
  31. swap='left_eye'),
  32. 3:
  33. dict(
  34. name='left_ear',
  35. id=3,
  36. color=[51, 153, 255],
  37. type='upper',
  38. swap='right_ear'),
  39. 4:
  40. dict(
  41. name='right_ear',
  42. id=4,
  43. color=[51, 153, 255],
  44. type='upper',
  45. swap='left_ear'),
  46. 5:
  47. dict(
  48. name='left_shoulder',
  49. id=5,
  50. color=[0, 255, 0],
  51. type='upper',
  52. swap='right_shoulder'),
  53. 6:
  54. dict(
  55. name='right_shoulder',
  56. id=6,
  57. color=[255, 128, 0],
  58. type='upper',
  59. swap='left_shoulder'),
  60. 7:
  61. dict(
  62. name='left_elbow',
  63. id=7,
  64. color=[0, 255, 0],
  65. type='upper',
  66. swap='right_elbow'),
  67. 8:
  68. dict(
  69. name='right_elbow',
  70. id=8,
  71. color=[255, 128, 0],
  72. type='upper',
  73. swap='left_elbow'),
  74. 9:
  75. dict(
  76. name='left_wrist',
  77. id=9,
  78. color=[0, 255, 0],
  79. type='upper',
  80. swap='right_wrist'),
  81. 10:
  82. dict(
  83. name='right_wrist',
  84. id=10,
  85. color=[255, 128, 0],
  86. type='upper',
  87. swap='left_wrist'),
  88. 11:
  89. dict(
  90. name='left_hip',
  91. id=11,
  92. color=[0, 255, 0],
  93. type='lower',
  94. swap='right_hip'),
  95. 12:
  96. dict(
  97. name='right_hip',
  98. id=12,
  99. color=[255, 128, 0],
  100. type='lower',
  101. swap='left_hip'),
  102. 13:
  103. dict(
  104. name='left_knee',
  105. id=13,
  106. color=[0, 255, 0],
  107. type='lower',
  108. swap='right_knee'),
  109. 14:
  110. dict(
  111. name='right_knee',
  112. id=14,
  113. color=[255, 128, 0],
  114. type='lower',
  115. swap='left_knee'),
  116. 15:
  117. dict(
  118. name='left_ankle',
  119. id=15,
  120. color=[0, 255, 0],
  121. type='lower',
  122. swap='right_ankle'),
  123. 16:
  124. dict(
  125. name='right_ankle',
  126. id=16,
  127. color=[255, 128, 0],
  128. type='lower',
  129. swap='left_ankle')
  130. },
  131. skeleton_info={
  132. 0:
  133. dict(link=('left_ankle', 'left_knee'), id=0, color=[0, 255, 0]),
  134. 1:
  135. dict(link=('left_knee', 'left_hip'), id=1, color=[0, 255, 0]),
  136. 2:
  137. dict(link=('right_ankle', 'right_knee'), id=2, color=[255, 128, 0]),
  138. 3:
  139. dict(link=('right_knee', 'right_hip'), id=3, color=[255, 128, 0]),
  140. 4:
  141. dict(link=('left_hip', 'right_hip'), id=4, color=[51, 153, 255]),
  142. 5:
  143. dict(link=('left_shoulder', 'left_hip'), id=5, color=[51, 153, 255]),
  144. 6:
  145. dict(link=('right_shoulder', 'right_hip'), id=6, color=[51, 153, 255]),
  146. 7:
  147. dict(
  148. link=('left_shoulder', 'right_shoulder'),
  149. id=7,
  150. color=[51, 153, 255]),
  151. 8:
  152. dict(link=('left_shoulder', 'left_elbow'), id=8, color=[0, 255, 0]),
  153. 9:
  154. dict(
  155. link=('right_shoulder', 'right_elbow'), id=9, color=[255, 128, 0]),
  156. 10:
  157. dict(link=('left_elbow', 'left_wrist'), id=10, color=[0, 255, 0]),
  158. 11:
  159. dict(link=('right_elbow', 'right_wrist'), id=11, color=[255, 128, 0]),
  160. 12:
  161. dict(link=('left_eye', 'right_eye'), id=12, color=[51, 153, 255]),
  162. 13:
  163. dict(link=('nose', 'left_eye'), id=13, color=[51, 153, 255]),
  164. 14:
  165. dict(link=('nose', 'right_eye'), id=14, color=[51, 153, 255]),
  166. 15:
  167. dict(link=('left_eye', 'left_ear'), id=15, color=[51, 153, 255]),
  168. 16:
  169. dict(link=('right_eye', 'right_ear'), id=16, color=[51, 153, 255]),
  170. 17:
  171. dict(link=('left_ear', 'left_shoulder'), id=17, color=[51, 153, 255]),
  172. 18:
  173. dict(
  174. link=('right_ear', 'right_shoulder'), id=18, color=[51, 153, 255])
  175. },
  176. joint_weights=[
  177. 1., 1., 1., 1., 1., 1., 1., 1.2, 1.2, 1.5, 1.5, 1., 1., 1.2, 1.2, 1.5,
  178. 1.5
  179. ],
  180. sigmas=[
  181. 0.026, 0.025, 0.025, 0.035, 0.035, 0.079, 0.079, 0.072, 0.072, 0.062,
  182. 0.062, 0.107, 0.107, 0.087, 0.087, 0.089, 0.089
  183. ])