ochuman.py 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. dataset_info = dict(
  2. dataset_name='ochuman',
  3. paper_info=dict(
  4. author='Zhang, Song-Hai and Li, Ruilong and Dong, Xin and '
  5. 'Rosin, Paul and Cai, Zixi and Han, Xi and '
  6. 'Yang, Dingcheng and Huang, Haozhi and Hu, Shi-Min',
  7. title='Pose2seg: Detection free human instance segmentation',
  8. container='Proceedings of the IEEE conference on computer '
  9. 'vision and pattern recognition',
  10. year='2019',
  11. homepage='https://github.com/liruilong940607/OCHumanApi',
  12. ),
  13. keypoint_info={
  14. 0:
  15. dict(name='nose', id=0, color=[51, 153, 255], type='upper', swap=''),
  16. 1:
  17. dict(
  18. name='left_eye',
  19. id=1,
  20. color=[51, 153, 255],
  21. type='upper',
  22. swap='right_eye'),
  23. 2:
  24. dict(
  25. name='right_eye',
  26. id=2,
  27. color=[51, 153, 255],
  28. type='upper',
  29. swap='left_eye'),
  30. 3:
  31. dict(
  32. name='left_ear',
  33. id=3,
  34. color=[51, 153, 255],
  35. type='upper',
  36. swap='right_ear'),
  37. 4:
  38. dict(
  39. name='right_ear',
  40. id=4,
  41. color=[51, 153, 255],
  42. type='upper',
  43. swap='left_ear'),
  44. 5:
  45. dict(
  46. name='left_shoulder',
  47. id=5,
  48. color=[0, 255, 0],
  49. type='upper',
  50. swap='right_shoulder'),
  51. 6:
  52. dict(
  53. name='right_shoulder',
  54. id=6,
  55. color=[255, 128, 0],
  56. type='upper',
  57. swap='left_shoulder'),
  58. 7:
  59. dict(
  60. name='left_elbow',
  61. id=7,
  62. color=[0, 255, 0],
  63. type='upper',
  64. swap='right_elbow'),
  65. 8:
  66. dict(
  67. name='right_elbow',
  68. id=8,
  69. color=[255, 128, 0],
  70. type='upper',
  71. swap='left_elbow'),
  72. 9:
  73. dict(
  74. name='left_wrist',
  75. id=9,
  76. color=[0, 255, 0],
  77. type='upper',
  78. swap='right_wrist'),
  79. 10:
  80. dict(
  81. name='right_wrist',
  82. id=10,
  83. color=[255, 128, 0],
  84. type='upper',
  85. swap='left_wrist'),
  86. 11:
  87. dict(
  88. name='left_hip',
  89. id=11,
  90. color=[0, 255, 0],
  91. type='lower',
  92. swap='right_hip'),
  93. 12:
  94. dict(
  95. name='right_hip',
  96. id=12,
  97. color=[255, 128, 0],
  98. type='lower',
  99. swap='left_hip'),
  100. 13:
  101. dict(
  102. name='left_knee',
  103. id=13,
  104. color=[0, 255, 0],
  105. type='lower',
  106. swap='right_knee'),
  107. 14:
  108. dict(
  109. name='right_knee',
  110. id=14,
  111. color=[255, 128, 0],
  112. type='lower',
  113. swap='left_knee'),
  114. 15:
  115. dict(
  116. name='left_ankle',
  117. id=15,
  118. color=[0, 255, 0],
  119. type='lower',
  120. swap='right_ankle'),
  121. 16:
  122. dict(
  123. name='right_ankle',
  124. id=16,
  125. color=[255, 128, 0],
  126. type='lower',
  127. swap='left_ankle')
  128. },
  129. skeleton_info={
  130. 0:
  131. dict(link=('left_ankle', 'left_knee'), id=0, color=[0, 255, 0]),
  132. 1:
  133. dict(link=('left_knee', 'left_hip'), id=1, color=[0, 255, 0]),
  134. 2:
  135. dict(link=('right_ankle', 'right_knee'), id=2, color=[255, 128, 0]),
  136. 3:
  137. dict(link=('right_knee', 'right_hip'), id=3, color=[255, 128, 0]),
  138. 4:
  139. dict(link=('left_hip', 'right_hip'), id=4, color=[51, 153, 255]),
  140. 5:
  141. dict(link=('left_shoulder', 'left_hip'), id=5, color=[51, 153, 255]),
  142. 6:
  143. dict(link=('right_shoulder', 'right_hip'), id=6, color=[51, 153, 255]),
  144. 7:
  145. dict(
  146. link=('left_shoulder', 'right_shoulder'),
  147. id=7,
  148. color=[51, 153, 255]),
  149. 8:
  150. dict(link=('left_shoulder', 'left_elbow'), id=8, color=[0, 255, 0]),
  151. 9:
  152. dict(
  153. link=('right_shoulder', 'right_elbow'), id=9, color=[255, 128, 0]),
  154. 10:
  155. dict(link=('left_elbow', 'left_wrist'), id=10, color=[0, 255, 0]),
  156. 11:
  157. dict(link=('right_elbow', 'right_wrist'), id=11, color=[255, 128, 0]),
  158. 12:
  159. dict(link=('left_eye', 'right_eye'), id=12, color=[51, 153, 255]),
  160. 13:
  161. dict(link=('nose', 'left_eye'), id=13, color=[51, 153, 255]),
  162. 14:
  163. dict(link=('nose', 'right_eye'), id=14, color=[51, 153, 255]),
  164. 15:
  165. dict(link=('left_eye', 'left_ear'), id=15, color=[51, 153, 255]),
  166. 16:
  167. dict(link=('right_eye', 'right_ear'), id=16, color=[51, 153, 255]),
  168. 17:
  169. dict(link=('left_ear', 'left_shoulder'), id=17, color=[51, 153, 255]),
  170. 18:
  171. dict(
  172. link=('right_ear', 'right_shoulder'), id=18, color=[51, 153, 255])
  173. },
  174. joint_weights=[
  175. 1., 1., 1., 1., 1., 1., 1., 1.2, 1.2, 1.5, 1.5, 1., 1., 1.2, 1.2, 1.5,
  176. 1.5
  177. ],
  178. sigmas=[
  179. 0.026, 0.025, 0.025, 0.035, 0.035, 0.079, 0.079, 0.072, 0.072, 0.062,
  180. 0.062, 0.107, 0.107, 0.087, 0.087, 0.089, 0.089
  181. ])