mpii_trb.py 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. dataset_info = dict(
  2. dataset_name='mpii_trb',
  3. paper_info=dict(
  4. author='Duan, Haodong and Lin, Kwan-Yee and Jin, Sheng and '
  5. 'Liu, Wentao and Qian, Chen and Ouyang, Wanli',
  6. title='TRB: A Novel Triplet Representation for '
  7. 'Understanding 2D Human Body',
  8. container='Proceedings of the IEEE International '
  9. 'Conference on Computer Vision',
  10. year='2019',
  11. homepage='https://github.com/kennymckormick/'
  12. 'Triplet-Representation-of-human-Body',
  13. ),
  14. keypoint_info={
  15. 0:
  16. dict(
  17. name='left_shoulder',
  18. id=0,
  19. color=[0, 255, 0],
  20. type='upper',
  21. swap='right_shoulder'),
  22. 1:
  23. dict(
  24. name='right_shoulder',
  25. id=1,
  26. color=[255, 128, 0],
  27. type='upper',
  28. swap='left_shoulder'),
  29. 2:
  30. dict(
  31. name='left_elbow',
  32. id=2,
  33. color=[0, 255, 0],
  34. type='upper',
  35. swap='right_elbow'),
  36. 3:
  37. dict(
  38. name='right_elbow',
  39. id=3,
  40. color=[255, 128, 0],
  41. type='upper',
  42. swap='left_elbow'),
  43. 4:
  44. dict(
  45. name='left_wrist',
  46. id=4,
  47. color=[0, 255, 0],
  48. type='upper',
  49. swap='right_wrist'),
  50. 5:
  51. dict(
  52. name='right_wrist',
  53. id=5,
  54. color=[255, 128, 0],
  55. type='upper',
  56. swap='left_wrist'),
  57. 6:
  58. dict(
  59. name='left_hip',
  60. id=6,
  61. color=[0, 255, 0],
  62. type='lower',
  63. swap='right_hip'),
  64. 7:
  65. dict(
  66. name='right_hip',
  67. id=7,
  68. color=[255, 128, 0],
  69. type='lower',
  70. swap='left_hip'),
  71. 8:
  72. dict(
  73. name='left_knee',
  74. id=8,
  75. color=[0, 255, 0],
  76. type='lower',
  77. swap='right_knee'),
  78. 9:
  79. dict(
  80. name='right_knee',
  81. id=9,
  82. color=[255, 128, 0],
  83. type='lower',
  84. swap='left_knee'),
  85. 10:
  86. dict(
  87. name='left_ankle',
  88. id=10,
  89. color=[0, 255, 0],
  90. type='lower',
  91. swap='right_ankle'),
  92. 11:
  93. dict(
  94. name='right_ankle',
  95. id=11,
  96. color=[255, 128, 0],
  97. type='lower',
  98. swap='left_ankle'),
  99. 12:
  100. dict(name='head', id=12, color=[51, 153, 255], type='upper', swap=''),
  101. 13:
  102. dict(name='neck', id=13, color=[51, 153, 255], type='upper', swap=''),
  103. 14:
  104. dict(
  105. name='right_neck',
  106. id=14,
  107. color=[255, 255, 255],
  108. type='upper',
  109. swap='left_neck'),
  110. 15:
  111. dict(
  112. name='left_neck',
  113. id=15,
  114. color=[255, 255, 255],
  115. type='upper',
  116. swap='right_neck'),
  117. 16:
  118. dict(
  119. name='medial_right_shoulder',
  120. id=16,
  121. color=[255, 255, 255],
  122. type='upper',
  123. swap='medial_left_shoulder'),
  124. 17:
  125. dict(
  126. name='lateral_right_shoulder',
  127. id=17,
  128. color=[255, 255, 255],
  129. type='upper',
  130. swap='lateral_left_shoulder'),
  131. 18:
  132. dict(
  133. name='medial_right_bow',
  134. id=18,
  135. color=[255, 255, 255],
  136. type='upper',
  137. swap='medial_left_bow'),
  138. 19:
  139. dict(
  140. name='lateral_right_bow',
  141. id=19,
  142. color=[255, 255, 255],
  143. type='upper',
  144. swap='lateral_left_bow'),
  145. 20:
  146. dict(
  147. name='medial_right_wrist',
  148. id=20,
  149. color=[255, 255, 255],
  150. type='upper',
  151. swap='medial_left_wrist'),
  152. 21:
  153. dict(
  154. name='lateral_right_wrist',
  155. id=21,
  156. color=[255, 255, 255],
  157. type='upper',
  158. swap='lateral_left_wrist'),
  159. 22:
  160. dict(
  161. name='medial_left_shoulder',
  162. id=22,
  163. color=[255, 255, 255],
  164. type='upper',
  165. swap='medial_right_shoulder'),
  166. 23:
  167. dict(
  168. name='lateral_left_shoulder',
  169. id=23,
  170. color=[255, 255, 255],
  171. type='upper',
  172. swap='lateral_right_shoulder'),
  173. 24:
  174. dict(
  175. name='medial_left_bow',
  176. id=24,
  177. color=[255, 255, 255],
  178. type='upper',
  179. swap='medial_right_bow'),
  180. 25:
  181. dict(
  182. name='lateral_left_bow',
  183. id=25,
  184. color=[255, 255, 255],
  185. type='upper',
  186. swap='lateral_right_bow'),
  187. 26:
  188. dict(
  189. name='medial_left_wrist',
  190. id=26,
  191. color=[255, 255, 255],
  192. type='upper',
  193. swap='medial_right_wrist'),
  194. 27:
  195. dict(
  196. name='lateral_left_wrist',
  197. id=27,
  198. color=[255, 255, 255],
  199. type='upper',
  200. swap='lateral_right_wrist'),
  201. 28:
  202. dict(
  203. name='medial_right_hip',
  204. id=28,
  205. color=[255, 255, 255],
  206. type='lower',
  207. swap='medial_left_hip'),
  208. 29:
  209. dict(
  210. name='lateral_right_hip',
  211. id=29,
  212. color=[255, 255, 255],
  213. type='lower',
  214. swap='lateral_left_hip'),
  215. 30:
  216. dict(
  217. name='medial_right_knee',
  218. id=30,
  219. color=[255, 255, 255],
  220. type='lower',
  221. swap='medial_left_knee'),
  222. 31:
  223. dict(
  224. name='lateral_right_knee',
  225. id=31,
  226. color=[255, 255, 255],
  227. type='lower',
  228. swap='lateral_left_knee'),
  229. 32:
  230. dict(
  231. name='medial_right_ankle',
  232. id=32,
  233. color=[255, 255, 255],
  234. type='lower',
  235. swap='medial_left_ankle'),
  236. 33:
  237. dict(
  238. name='lateral_right_ankle',
  239. id=33,
  240. color=[255, 255, 255],
  241. type='lower',
  242. swap='lateral_left_ankle'),
  243. 34:
  244. dict(
  245. name='medial_left_hip',
  246. id=34,
  247. color=[255, 255, 255],
  248. type='lower',
  249. swap='medial_right_hip'),
  250. 35:
  251. dict(
  252. name='lateral_left_hip',
  253. id=35,
  254. color=[255, 255, 255],
  255. type='lower',
  256. swap='lateral_right_hip'),
  257. 36:
  258. dict(
  259. name='medial_left_knee',
  260. id=36,
  261. color=[255, 255, 255],
  262. type='lower',
  263. swap='medial_right_knee'),
  264. 37:
  265. dict(
  266. name='lateral_left_knee',
  267. id=37,
  268. color=[255, 255, 255],
  269. type='lower',
  270. swap='lateral_right_knee'),
  271. 38:
  272. dict(
  273. name='medial_left_ankle',
  274. id=38,
  275. color=[255, 255, 255],
  276. type='lower',
  277. swap='medial_right_ankle'),
  278. 39:
  279. dict(
  280. name='lateral_left_ankle',
  281. id=39,
  282. color=[255, 255, 255],
  283. type='lower',
  284. swap='lateral_right_ankle'),
  285. },
  286. skeleton_info={
  287. 0:
  288. dict(link=('head', 'neck'), id=0, color=[51, 153, 255]),
  289. 1:
  290. dict(link=('neck', 'left_shoulder'), id=1, color=[51, 153, 255]),
  291. 2:
  292. dict(link=('neck', 'right_shoulder'), id=2, color=[51, 153, 255]),
  293. 3:
  294. dict(link=('left_shoulder', 'left_elbow'), id=3, color=[0, 255, 0]),
  295. 4:
  296. dict(
  297. link=('right_shoulder', 'right_elbow'), id=4, color=[255, 128, 0]),
  298. 5:
  299. dict(link=('left_elbow', 'left_wrist'), id=5, color=[0, 255, 0]),
  300. 6:
  301. dict(link=('right_elbow', 'right_wrist'), id=6, color=[255, 128, 0]),
  302. 7:
  303. dict(link=('left_shoulder', 'left_hip'), id=7, color=[51, 153, 255]),
  304. 8:
  305. dict(link=('right_shoulder', 'right_hip'), id=8, color=[51, 153, 255]),
  306. 9:
  307. dict(link=('left_hip', 'right_hip'), id=9, color=[51, 153, 255]),
  308. 10:
  309. dict(link=('left_hip', 'left_knee'), id=10, color=[0, 255, 0]),
  310. 11:
  311. dict(link=('right_hip', 'right_knee'), id=11, color=[255, 128, 0]),
  312. 12:
  313. dict(link=('left_knee', 'left_ankle'), id=12, color=[0, 255, 0]),
  314. 13:
  315. dict(link=('right_knee', 'right_ankle'), id=13, color=[255, 128, 0]),
  316. 14:
  317. dict(link=('right_neck', 'left_neck'), id=14, color=[255, 255, 255]),
  318. 15:
  319. dict(
  320. link=('medial_right_shoulder', 'lateral_right_shoulder'),
  321. id=15,
  322. color=[255, 255, 255]),
  323. 16:
  324. dict(
  325. link=('medial_right_bow', 'lateral_right_bow'),
  326. id=16,
  327. color=[255, 255, 255]),
  328. 17:
  329. dict(
  330. link=('medial_right_wrist', 'lateral_right_wrist'),
  331. id=17,
  332. color=[255, 255, 255]),
  333. 18:
  334. dict(
  335. link=('medial_left_shoulder', 'lateral_left_shoulder'),
  336. id=18,
  337. color=[255, 255, 255]),
  338. 19:
  339. dict(
  340. link=('medial_left_bow', 'lateral_left_bow'),
  341. id=19,
  342. color=[255, 255, 255]),
  343. 20:
  344. dict(
  345. link=('medial_left_wrist', 'lateral_left_wrist'),
  346. id=20,
  347. color=[255, 255, 255]),
  348. 21:
  349. dict(
  350. link=('medial_right_hip', 'lateral_right_hip'),
  351. id=21,
  352. color=[255, 255, 255]),
  353. 22:
  354. dict(
  355. link=('medial_right_knee', 'lateral_right_knee'),
  356. id=22,
  357. color=[255, 255, 255]),
  358. 23:
  359. dict(
  360. link=('medial_right_ankle', 'lateral_right_ankle'),
  361. id=23,
  362. color=[255, 255, 255]),
  363. 24:
  364. dict(
  365. link=('medial_left_hip', 'lateral_left_hip'),
  366. id=24,
  367. color=[255, 255, 255]),
  368. 25:
  369. dict(
  370. link=('medial_left_knee', 'lateral_left_knee'),
  371. id=25,
  372. color=[255, 255, 255]),
  373. 26:
  374. dict(
  375. link=('medial_left_ankle', 'lateral_left_ankle'),
  376. id=26,
  377. color=[255, 255, 255])
  378. },
  379. joint_weights=[1.] * 40,
  380. sigmas=[])