coco_wholebody.py 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154
  1. dataset_info = dict(
  2. dataset_name='coco_wholebody',
  3. paper_info=dict(
  4. author='Jin, Sheng and Xu, Lumin and Xu, Jin and '
  5. 'Wang, Can and Liu, Wentao and '
  6. 'Qian, Chen and Ouyang, Wanli and Luo, Ping',
  7. title='Whole-Body Human Pose Estimation in the Wild',
  8. container='Proceedings of the European '
  9. 'Conference on Computer Vision (ECCV)',
  10. year='2020',
  11. homepage='https://github.com/jin-s13/COCO-WholeBody/',
  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. 17:
  129. dict(
  130. name='left_big_toe',
  131. id=17,
  132. color=[255, 128, 0],
  133. type='lower',
  134. swap='right_big_toe'),
  135. 18:
  136. dict(
  137. name='left_small_toe',
  138. id=18,
  139. color=[255, 128, 0],
  140. type='lower',
  141. swap='right_small_toe'),
  142. 19:
  143. dict(
  144. name='left_heel',
  145. id=19,
  146. color=[255, 128, 0],
  147. type='lower',
  148. swap='right_heel'),
  149. 20:
  150. dict(
  151. name='right_big_toe',
  152. id=20,
  153. color=[255, 128, 0],
  154. type='lower',
  155. swap='left_big_toe'),
  156. 21:
  157. dict(
  158. name='right_small_toe',
  159. id=21,
  160. color=[255, 128, 0],
  161. type='lower',
  162. swap='left_small_toe'),
  163. 22:
  164. dict(
  165. name='right_heel',
  166. id=22,
  167. color=[255, 128, 0],
  168. type='lower',
  169. swap='left_heel'),
  170. 23:
  171. dict(
  172. name='face-0',
  173. id=23,
  174. color=[255, 255, 255],
  175. type='',
  176. swap='face-16'),
  177. 24:
  178. dict(
  179. name='face-1',
  180. id=24,
  181. color=[255, 255, 255],
  182. type='',
  183. swap='face-15'),
  184. 25:
  185. dict(
  186. name='face-2',
  187. id=25,
  188. color=[255, 255, 255],
  189. type='',
  190. swap='face-14'),
  191. 26:
  192. dict(
  193. name='face-3',
  194. id=26,
  195. color=[255, 255, 255],
  196. type='',
  197. swap='face-13'),
  198. 27:
  199. dict(
  200. name='face-4',
  201. id=27,
  202. color=[255, 255, 255],
  203. type='',
  204. swap='face-12'),
  205. 28:
  206. dict(
  207. name='face-5',
  208. id=28,
  209. color=[255, 255, 255],
  210. type='',
  211. swap='face-11'),
  212. 29:
  213. dict(
  214. name='face-6',
  215. id=29,
  216. color=[255, 255, 255],
  217. type='',
  218. swap='face-10'),
  219. 30:
  220. dict(
  221. name='face-7',
  222. id=30,
  223. color=[255, 255, 255],
  224. type='',
  225. swap='face-9'),
  226. 31:
  227. dict(name='face-8', id=31, color=[255, 255, 255], type='', swap=''),
  228. 32:
  229. dict(
  230. name='face-9',
  231. id=32,
  232. color=[255, 255, 255],
  233. type='',
  234. swap='face-7'),
  235. 33:
  236. dict(
  237. name='face-10',
  238. id=33,
  239. color=[255, 255, 255],
  240. type='',
  241. swap='face-6'),
  242. 34:
  243. dict(
  244. name='face-11',
  245. id=34,
  246. color=[255, 255, 255],
  247. type='',
  248. swap='face-5'),
  249. 35:
  250. dict(
  251. name='face-12',
  252. id=35,
  253. color=[255, 255, 255],
  254. type='',
  255. swap='face-4'),
  256. 36:
  257. dict(
  258. name='face-13',
  259. id=36,
  260. color=[255, 255, 255],
  261. type='',
  262. swap='face-3'),
  263. 37:
  264. dict(
  265. name='face-14',
  266. id=37,
  267. color=[255, 255, 255],
  268. type='',
  269. swap='face-2'),
  270. 38:
  271. dict(
  272. name='face-15',
  273. id=38,
  274. color=[255, 255, 255],
  275. type='',
  276. swap='face-1'),
  277. 39:
  278. dict(
  279. name='face-16',
  280. id=39,
  281. color=[255, 255, 255],
  282. type='',
  283. swap='face-0'),
  284. 40:
  285. dict(
  286. name='face-17',
  287. id=40,
  288. color=[255, 255, 255],
  289. type='',
  290. swap='face-26'),
  291. 41:
  292. dict(
  293. name='face-18',
  294. id=41,
  295. color=[255, 255, 255],
  296. type='',
  297. swap='face-25'),
  298. 42:
  299. dict(
  300. name='face-19',
  301. id=42,
  302. color=[255, 255, 255],
  303. type='',
  304. swap='face-24'),
  305. 43:
  306. dict(
  307. name='face-20',
  308. id=43,
  309. color=[255, 255, 255],
  310. type='',
  311. swap='face-23'),
  312. 44:
  313. dict(
  314. name='face-21',
  315. id=44,
  316. color=[255, 255, 255],
  317. type='',
  318. swap='face-22'),
  319. 45:
  320. dict(
  321. name='face-22',
  322. id=45,
  323. color=[255, 255, 255],
  324. type='',
  325. swap='face-21'),
  326. 46:
  327. dict(
  328. name='face-23',
  329. id=46,
  330. color=[255, 255, 255],
  331. type='',
  332. swap='face-20'),
  333. 47:
  334. dict(
  335. name='face-24',
  336. id=47,
  337. color=[255, 255, 255],
  338. type='',
  339. swap='face-19'),
  340. 48:
  341. dict(
  342. name='face-25',
  343. id=48,
  344. color=[255, 255, 255],
  345. type='',
  346. swap='face-18'),
  347. 49:
  348. dict(
  349. name='face-26',
  350. id=49,
  351. color=[255, 255, 255],
  352. type='',
  353. swap='face-17'),
  354. 50:
  355. dict(name='face-27', id=50, color=[255, 255, 255], type='', swap=''),
  356. 51:
  357. dict(name='face-28', id=51, color=[255, 255, 255], type='', swap=''),
  358. 52:
  359. dict(name='face-29', id=52, color=[255, 255, 255], type='', swap=''),
  360. 53:
  361. dict(name='face-30', id=53, color=[255, 255, 255], type='', swap=''),
  362. 54:
  363. dict(
  364. name='face-31',
  365. id=54,
  366. color=[255, 255, 255],
  367. type='',
  368. swap='face-35'),
  369. 55:
  370. dict(
  371. name='face-32',
  372. id=55,
  373. color=[255, 255, 255],
  374. type='',
  375. swap='face-34'),
  376. 56:
  377. dict(name='face-33', id=56, color=[255, 255, 255], type='', swap=''),
  378. 57:
  379. dict(
  380. name='face-34',
  381. id=57,
  382. color=[255, 255, 255],
  383. type='',
  384. swap='face-32'),
  385. 58:
  386. dict(
  387. name='face-35',
  388. id=58,
  389. color=[255, 255, 255],
  390. type='',
  391. swap='face-31'),
  392. 59:
  393. dict(
  394. name='face-36',
  395. id=59,
  396. color=[255, 255, 255],
  397. type='',
  398. swap='face-45'),
  399. 60:
  400. dict(
  401. name='face-37',
  402. id=60,
  403. color=[255, 255, 255],
  404. type='',
  405. swap='face-44'),
  406. 61:
  407. dict(
  408. name='face-38',
  409. id=61,
  410. color=[255, 255, 255],
  411. type='',
  412. swap='face-43'),
  413. 62:
  414. dict(
  415. name='face-39',
  416. id=62,
  417. color=[255, 255, 255],
  418. type='',
  419. swap='face-42'),
  420. 63:
  421. dict(
  422. name='face-40',
  423. id=63,
  424. color=[255, 255, 255],
  425. type='',
  426. swap='face-47'),
  427. 64:
  428. dict(
  429. name='face-41',
  430. id=64,
  431. color=[255, 255, 255],
  432. type='',
  433. swap='face-46'),
  434. 65:
  435. dict(
  436. name='face-42',
  437. id=65,
  438. color=[255, 255, 255],
  439. type='',
  440. swap='face-39'),
  441. 66:
  442. dict(
  443. name='face-43',
  444. id=66,
  445. color=[255, 255, 255],
  446. type='',
  447. swap='face-38'),
  448. 67:
  449. dict(
  450. name='face-44',
  451. id=67,
  452. color=[255, 255, 255],
  453. type='',
  454. swap='face-37'),
  455. 68:
  456. dict(
  457. name='face-45',
  458. id=68,
  459. color=[255, 255, 255],
  460. type='',
  461. swap='face-36'),
  462. 69:
  463. dict(
  464. name='face-46',
  465. id=69,
  466. color=[255, 255, 255],
  467. type='',
  468. swap='face-41'),
  469. 70:
  470. dict(
  471. name='face-47',
  472. id=70,
  473. color=[255, 255, 255],
  474. type='',
  475. swap='face-40'),
  476. 71:
  477. dict(
  478. name='face-48',
  479. id=71,
  480. color=[255, 255, 255],
  481. type='',
  482. swap='face-54'),
  483. 72:
  484. dict(
  485. name='face-49',
  486. id=72,
  487. color=[255, 255, 255],
  488. type='',
  489. swap='face-53'),
  490. 73:
  491. dict(
  492. name='face-50',
  493. id=73,
  494. color=[255, 255, 255],
  495. type='',
  496. swap='face-52'),
  497. 74:
  498. dict(name='face-51', id=74, color=[255, 255, 255], type='', swap=''),
  499. 75:
  500. dict(
  501. name='face-52',
  502. id=75,
  503. color=[255, 255, 255],
  504. type='',
  505. swap='face-50'),
  506. 76:
  507. dict(
  508. name='face-53',
  509. id=76,
  510. color=[255, 255, 255],
  511. type='',
  512. swap='face-49'),
  513. 77:
  514. dict(
  515. name='face-54',
  516. id=77,
  517. color=[255, 255, 255],
  518. type='',
  519. swap='face-48'),
  520. 78:
  521. dict(
  522. name='face-55',
  523. id=78,
  524. color=[255, 255, 255],
  525. type='',
  526. swap='face-59'),
  527. 79:
  528. dict(
  529. name='face-56',
  530. id=79,
  531. color=[255, 255, 255],
  532. type='',
  533. swap='face-58'),
  534. 80:
  535. dict(name='face-57', id=80, color=[255, 255, 255], type='', swap=''),
  536. 81:
  537. dict(
  538. name='face-58',
  539. id=81,
  540. color=[255, 255, 255],
  541. type='',
  542. swap='face-56'),
  543. 82:
  544. dict(
  545. name='face-59',
  546. id=82,
  547. color=[255, 255, 255],
  548. type='',
  549. swap='face-55'),
  550. 83:
  551. dict(
  552. name='face-60',
  553. id=83,
  554. color=[255, 255, 255],
  555. type='',
  556. swap='face-64'),
  557. 84:
  558. dict(
  559. name='face-61',
  560. id=84,
  561. color=[255, 255, 255],
  562. type='',
  563. swap='face-63'),
  564. 85:
  565. dict(name='face-62', id=85, color=[255, 255, 255], type='', swap=''),
  566. 86:
  567. dict(
  568. name='face-63',
  569. id=86,
  570. color=[255, 255, 255],
  571. type='',
  572. swap='face-61'),
  573. 87:
  574. dict(
  575. name='face-64',
  576. id=87,
  577. color=[255, 255, 255],
  578. type='',
  579. swap='face-60'),
  580. 88:
  581. dict(
  582. name='face-65',
  583. id=88,
  584. color=[255, 255, 255],
  585. type='',
  586. swap='face-67'),
  587. 89:
  588. dict(name='face-66', id=89, color=[255, 255, 255], type='', swap=''),
  589. 90:
  590. dict(
  591. name='face-67',
  592. id=90,
  593. color=[255, 255, 255],
  594. type='',
  595. swap='face-65'),
  596. 91:
  597. dict(
  598. name='left_hand_root',
  599. id=91,
  600. color=[255, 255, 255],
  601. type='',
  602. swap='right_hand_root'),
  603. 92:
  604. dict(
  605. name='left_thumb1',
  606. id=92,
  607. color=[255, 128, 0],
  608. type='',
  609. swap='right_thumb1'),
  610. 93:
  611. dict(
  612. name='left_thumb2',
  613. id=93,
  614. color=[255, 128, 0],
  615. type='',
  616. swap='right_thumb2'),
  617. 94:
  618. dict(
  619. name='left_thumb3',
  620. id=94,
  621. color=[255, 128, 0],
  622. type='',
  623. swap='right_thumb3'),
  624. 95:
  625. dict(
  626. name='left_thumb4',
  627. id=95,
  628. color=[255, 128, 0],
  629. type='',
  630. swap='right_thumb4'),
  631. 96:
  632. dict(
  633. name='left_forefinger1',
  634. id=96,
  635. color=[255, 153, 255],
  636. type='',
  637. swap='right_forefinger1'),
  638. 97:
  639. dict(
  640. name='left_forefinger2',
  641. id=97,
  642. color=[255, 153, 255],
  643. type='',
  644. swap='right_forefinger2'),
  645. 98:
  646. dict(
  647. name='left_forefinger3',
  648. id=98,
  649. color=[255, 153, 255],
  650. type='',
  651. swap='right_forefinger3'),
  652. 99:
  653. dict(
  654. name='left_forefinger4',
  655. id=99,
  656. color=[255, 153, 255],
  657. type='',
  658. swap='right_forefinger4'),
  659. 100:
  660. dict(
  661. name='left_middle_finger1',
  662. id=100,
  663. color=[102, 178, 255],
  664. type='',
  665. swap='right_middle_finger1'),
  666. 101:
  667. dict(
  668. name='left_middle_finger2',
  669. id=101,
  670. color=[102, 178, 255],
  671. type='',
  672. swap='right_middle_finger2'),
  673. 102:
  674. dict(
  675. name='left_middle_finger3',
  676. id=102,
  677. color=[102, 178, 255],
  678. type='',
  679. swap='right_middle_finger3'),
  680. 103:
  681. dict(
  682. name='left_middle_finger4',
  683. id=103,
  684. color=[102, 178, 255],
  685. type='',
  686. swap='right_middle_finger4'),
  687. 104:
  688. dict(
  689. name='left_ring_finger1',
  690. id=104,
  691. color=[255, 51, 51],
  692. type='',
  693. swap='right_ring_finger1'),
  694. 105:
  695. dict(
  696. name='left_ring_finger2',
  697. id=105,
  698. color=[255, 51, 51],
  699. type='',
  700. swap='right_ring_finger2'),
  701. 106:
  702. dict(
  703. name='left_ring_finger3',
  704. id=106,
  705. color=[255, 51, 51],
  706. type='',
  707. swap='right_ring_finger3'),
  708. 107:
  709. dict(
  710. name='left_ring_finger4',
  711. id=107,
  712. color=[255, 51, 51],
  713. type='',
  714. swap='right_ring_finger4'),
  715. 108:
  716. dict(
  717. name='left_pinky_finger1',
  718. id=108,
  719. color=[0, 255, 0],
  720. type='',
  721. swap='right_pinky_finger1'),
  722. 109:
  723. dict(
  724. name='left_pinky_finger2',
  725. id=109,
  726. color=[0, 255, 0],
  727. type='',
  728. swap='right_pinky_finger2'),
  729. 110:
  730. dict(
  731. name='left_pinky_finger3',
  732. id=110,
  733. color=[0, 255, 0],
  734. type='',
  735. swap='right_pinky_finger3'),
  736. 111:
  737. dict(
  738. name='left_pinky_finger4',
  739. id=111,
  740. color=[0, 255, 0],
  741. type='',
  742. swap='right_pinky_finger4'),
  743. 112:
  744. dict(
  745. name='right_hand_root',
  746. id=112,
  747. color=[255, 255, 255],
  748. type='',
  749. swap='left_hand_root'),
  750. 113:
  751. dict(
  752. name='right_thumb1',
  753. id=113,
  754. color=[255, 128, 0],
  755. type='',
  756. swap='left_thumb1'),
  757. 114:
  758. dict(
  759. name='right_thumb2',
  760. id=114,
  761. color=[255, 128, 0],
  762. type='',
  763. swap='left_thumb2'),
  764. 115:
  765. dict(
  766. name='right_thumb3',
  767. id=115,
  768. color=[255, 128, 0],
  769. type='',
  770. swap='left_thumb3'),
  771. 116:
  772. dict(
  773. name='right_thumb4',
  774. id=116,
  775. color=[255, 128, 0],
  776. type='',
  777. swap='left_thumb4'),
  778. 117:
  779. dict(
  780. name='right_forefinger1',
  781. id=117,
  782. color=[255, 153, 255],
  783. type='',
  784. swap='left_forefinger1'),
  785. 118:
  786. dict(
  787. name='right_forefinger2',
  788. id=118,
  789. color=[255, 153, 255],
  790. type='',
  791. swap='left_forefinger2'),
  792. 119:
  793. dict(
  794. name='right_forefinger3',
  795. id=119,
  796. color=[255, 153, 255],
  797. type='',
  798. swap='left_forefinger3'),
  799. 120:
  800. dict(
  801. name='right_forefinger4',
  802. id=120,
  803. color=[255, 153, 255],
  804. type='',
  805. swap='left_forefinger4'),
  806. 121:
  807. dict(
  808. name='right_middle_finger1',
  809. id=121,
  810. color=[102, 178, 255],
  811. type='',
  812. swap='left_middle_finger1'),
  813. 122:
  814. dict(
  815. name='right_middle_finger2',
  816. id=122,
  817. color=[102, 178, 255],
  818. type='',
  819. swap='left_middle_finger2'),
  820. 123:
  821. dict(
  822. name='right_middle_finger3',
  823. id=123,
  824. color=[102, 178, 255],
  825. type='',
  826. swap='left_middle_finger3'),
  827. 124:
  828. dict(
  829. name='right_middle_finger4',
  830. id=124,
  831. color=[102, 178, 255],
  832. type='',
  833. swap='left_middle_finger4'),
  834. 125:
  835. dict(
  836. name='right_ring_finger1',
  837. id=125,
  838. color=[255, 51, 51],
  839. type='',
  840. swap='left_ring_finger1'),
  841. 126:
  842. dict(
  843. name='right_ring_finger2',
  844. id=126,
  845. color=[255, 51, 51],
  846. type='',
  847. swap='left_ring_finger2'),
  848. 127:
  849. dict(
  850. name='right_ring_finger3',
  851. id=127,
  852. color=[255, 51, 51],
  853. type='',
  854. swap='left_ring_finger3'),
  855. 128:
  856. dict(
  857. name='right_ring_finger4',
  858. id=128,
  859. color=[255, 51, 51],
  860. type='',
  861. swap='left_ring_finger4'),
  862. 129:
  863. dict(
  864. name='right_pinky_finger1',
  865. id=129,
  866. color=[0, 255, 0],
  867. type='',
  868. swap='left_pinky_finger1'),
  869. 130:
  870. dict(
  871. name='right_pinky_finger2',
  872. id=130,
  873. color=[0, 255, 0],
  874. type='',
  875. swap='left_pinky_finger2'),
  876. 131:
  877. dict(
  878. name='right_pinky_finger3',
  879. id=131,
  880. color=[0, 255, 0],
  881. type='',
  882. swap='left_pinky_finger3'),
  883. 132:
  884. dict(
  885. name='right_pinky_finger4',
  886. id=132,
  887. color=[0, 255, 0],
  888. type='',
  889. swap='left_pinky_finger4')
  890. },
  891. skeleton_info={
  892. 0:
  893. dict(link=('left_ankle', 'left_knee'), id=0, color=[0, 255, 0]),
  894. 1:
  895. dict(link=('left_knee', 'left_hip'), id=1, color=[0, 255, 0]),
  896. 2:
  897. dict(link=('right_ankle', 'right_knee'), id=2, color=[255, 128, 0]),
  898. 3:
  899. dict(link=('right_knee', 'right_hip'), id=3, color=[255, 128, 0]),
  900. 4:
  901. dict(link=('left_hip', 'right_hip'), id=4, color=[51, 153, 255]),
  902. 5:
  903. dict(link=('left_shoulder', 'left_hip'), id=5, color=[51, 153, 255]),
  904. 6:
  905. dict(link=('right_shoulder', 'right_hip'), id=6, color=[51, 153, 255]),
  906. 7:
  907. dict(
  908. link=('left_shoulder', 'right_shoulder'),
  909. id=7,
  910. color=[51, 153, 255]),
  911. 8:
  912. dict(link=('left_shoulder', 'left_elbow'), id=8, color=[0, 255, 0]),
  913. 9:
  914. dict(
  915. link=('right_shoulder', 'right_elbow'), id=9, color=[255, 128, 0]),
  916. 10:
  917. dict(link=('left_elbow', 'left_wrist'), id=10, color=[0, 255, 0]),
  918. 11:
  919. dict(link=('right_elbow', 'right_wrist'), id=11, color=[255, 128, 0]),
  920. 12:
  921. dict(link=('left_eye', 'right_eye'), id=12, color=[51, 153, 255]),
  922. 13:
  923. dict(link=('nose', 'left_eye'), id=13, color=[51, 153, 255]),
  924. 14:
  925. dict(link=('nose', 'right_eye'), id=14, color=[51, 153, 255]),
  926. 15:
  927. dict(link=('left_eye', 'left_ear'), id=15, color=[51, 153, 255]),
  928. 16:
  929. dict(link=('right_eye', 'right_ear'), id=16, color=[51, 153, 255]),
  930. 17:
  931. dict(link=('left_ear', 'left_shoulder'), id=17, color=[51, 153, 255]),
  932. 18:
  933. dict(
  934. link=('right_ear', 'right_shoulder'), id=18, color=[51, 153, 255]),
  935. 19:
  936. dict(link=('left_ankle', 'left_big_toe'), id=19, color=[0, 255, 0]),
  937. 20:
  938. dict(link=('left_ankle', 'left_small_toe'), id=20, color=[0, 255, 0]),
  939. 21:
  940. dict(link=('left_ankle', 'left_heel'), id=21, color=[0, 255, 0]),
  941. 22:
  942. dict(
  943. link=('right_ankle', 'right_big_toe'), id=22, color=[255, 128, 0]),
  944. 23:
  945. dict(
  946. link=('right_ankle', 'right_small_toe'),
  947. id=23,
  948. color=[255, 128, 0]),
  949. 24:
  950. dict(link=('right_ankle', 'right_heel'), id=24, color=[255, 128, 0]),
  951. 25:
  952. dict(
  953. link=('left_hand_root', 'left_thumb1'), id=25, color=[255, 128,
  954. 0]),
  955. 26:
  956. dict(link=('left_thumb1', 'left_thumb2'), id=26, color=[255, 128, 0]),
  957. 27:
  958. dict(link=('left_thumb2', 'left_thumb3'), id=27, color=[255, 128, 0]),
  959. 28:
  960. dict(link=('left_thumb3', 'left_thumb4'), id=28, color=[255, 128, 0]),
  961. 29:
  962. dict(
  963. link=('left_hand_root', 'left_forefinger1'),
  964. id=29,
  965. color=[255, 153, 255]),
  966. 30:
  967. dict(
  968. link=('left_forefinger1', 'left_forefinger2'),
  969. id=30,
  970. color=[255, 153, 255]),
  971. 31:
  972. dict(
  973. link=('left_forefinger2', 'left_forefinger3'),
  974. id=31,
  975. color=[255, 153, 255]),
  976. 32:
  977. dict(
  978. link=('left_forefinger3', 'left_forefinger4'),
  979. id=32,
  980. color=[255, 153, 255]),
  981. 33:
  982. dict(
  983. link=('left_hand_root', 'left_middle_finger1'),
  984. id=33,
  985. color=[102, 178, 255]),
  986. 34:
  987. dict(
  988. link=('left_middle_finger1', 'left_middle_finger2'),
  989. id=34,
  990. color=[102, 178, 255]),
  991. 35:
  992. dict(
  993. link=('left_middle_finger2', 'left_middle_finger3'),
  994. id=35,
  995. color=[102, 178, 255]),
  996. 36:
  997. dict(
  998. link=('left_middle_finger3', 'left_middle_finger4'),
  999. id=36,
  1000. color=[102, 178, 255]),
  1001. 37:
  1002. dict(
  1003. link=('left_hand_root', 'left_ring_finger1'),
  1004. id=37,
  1005. color=[255, 51, 51]),
  1006. 38:
  1007. dict(
  1008. link=('left_ring_finger1', 'left_ring_finger2'),
  1009. id=38,
  1010. color=[255, 51, 51]),
  1011. 39:
  1012. dict(
  1013. link=('left_ring_finger2', 'left_ring_finger3'),
  1014. id=39,
  1015. color=[255, 51, 51]),
  1016. 40:
  1017. dict(
  1018. link=('left_ring_finger3', 'left_ring_finger4'),
  1019. id=40,
  1020. color=[255, 51, 51]),
  1021. 41:
  1022. dict(
  1023. link=('left_hand_root', 'left_pinky_finger1'),
  1024. id=41,
  1025. color=[0, 255, 0]),
  1026. 42:
  1027. dict(
  1028. link=('left_pinky_finger1', 'left_pinky_finger2'),
  1029. id=42,
  1030. color=[0, 255, 0]),
  1031. 43:
  1032. dict(
  1033. link=('left_pinky_finger2', 'left_pinky_finger3'),
  1034. id=43,
  1035. color=[0, 255, 0]),
  1036. 44:
  1037. dict(
  1038. link=('left_pinky_finger3', 'left_pinky_finger4'),
  1039. id=44,
  1040. color=[0, 255, 0]),
  1041. 45:
  1042. dict(
  1043. link=('right_hand_root', 'right_thumb1'),
  1044. id=45,
  1045. color=[255, 128, 0]),
  1046. 46:
  1047. dict(
  1048. link=('right_thumb1', 'right_thumb2'), id=46, color=[255, 128, 0]),
  1049. 47:
  1050. dict(
  1051. link=('right_thumb2', 'right_thumb3'), id=47, color=[255, 128, 0]),
  1052. 48:
  1053. dict(
  1054. link=('right_thumb3', 'right_thumb4'), id=48, color=[255, 128, 0]),
  1055. 49:
  1056. dict(
  1057. link=('right_hand_root', 'right_forefinger1'),
  1058. id=49,
  1059. color=[255, 153, 255]),
  1060. 50:
  1061. dict(
  1062. link=('right_forefinger1', 'right_forefinger2'),
  1063. id=50,
  1064. color=[255, 153, 255]),
  1065. 51:
  1066. dict(
  1067. link=('right_forefinger2', 'right_forefinger3'),
  1068. id=51,
  1069. color=[255, 153, 255]),
  1070. 52:
  1071. dict(
  1072. link=('right_forefinger3', 'right_forefinger4'),
  1073. id=52,
  1074. color=[255, 153, 255]),
  1075. 53:
  1076. dict(
  1077. link=('right_hand_root', 'right_middle_finger1'),
  1078. id=53,
  1079. color=[102, 178, 255]),
  1080. 54:
  1081. dict(
  1082. link=('right_middle_finger1', 'right_middle_finger2'),
  1083. id=54,
  1084. color=[102, 178, 255]),
  1085. 55:
  1086. dict(
  1087. link=('right_middle_finger2', 'right_middle_finger3'),
  1088. id=55,
  1089. color=[102, 178, 255]),
  1090. 56:
  1091. dict(
  1092. link=('right_middle_finger3', 'right_middle_finger4'),
  1093. id=56,
  1094. color=[102, 178, 255]),
  1095. 57:
  1096. dict(
  1097. link=('right_hand_root', 'right_ring_finger1'),
  1098. id=57,
  1099. color=[255, 51, 51]),
  1100. 58:
  1101. dict(
  1102. link=('right_ring_finger1', 'right_ring_finger2'),
  1103. id=58,
  1104. color=[255, 51, 51]),
  1105. 59:
  1106. dict(
  1107. link=('right_ring_finger2', 'right_ring_finger3'),
  1108. id=59,
  1109. color=[255, 51, 51]),
  1110. 60:
  1111. dict(
  1112. link=('right_ring_finger3', 'right_ring_finger4'),
  1113. id=60,
  1114. color=[255, 51, 51]),
  1115. 61:
  1116. dict(
  1117. link=('right_hand_root', 'right_pinky_finger1'),
  1118. id=61,
  1119. color=[0, 255, 0]),
  1120. 62:
  1121. dict(
  1122. link=('right_pinky_finger1', 'right_pinky_finger2'),
  1123. id=62,
  1124. color=[0, 255, 0]),
  1125. 63:
  1126. dict(
  1127. link=('right_pinky_finger2', 'right_pinky_finger3'),
  1128. id=63,
  1129. color=[0, 255, 0]),
  1130. 64:
  1131. dict(
  1132. link=('right_pinky_finger3', 'right_pinky_finger4'),
  1133. id=64,
  1134. color=[0, 255, 0])
  1135. },
  1136. joint_weights=[1.] * 133,
  1137. # 'https://github.com/jin-s13/COCO-WholeBody/blob/master/'
  1138. # 'evaluation/myeval_wholebody.py#L175'
  1139. sigmas=[
  1140. 0.026, 0.025, 0.025, 0.035, 0.035, 0.079, 0.079, 0.072, 0.072, 0.062,
  1141. 0.062, 0.107, 0.107, 0.087, 0.087, 0.089, 0.089, 0.068, 0.066, 0.066,
  1142. 0.092, 0.094, 0.094, 0.042, 0.043, 0.044, 0.043, 0.040, 0.035, 0.031,
  1143. 0.025, 0.020, 0.023, 0.029, 0.032, 0.037, 0.038, 0.043, 0.041, 0.045,
  1144. 0.013, 0.012, 0.011, 0.011, 0.012, 0.012, 0.011, 0.011, 0.013, 0.015,
  1145. 0.009, 0.007, 0.007, 0.007, 0.012, 0.009, 0.008, 0.016, 0.010, 0.017,
  1146. 0.011, 0.009, 0.011, 0.009, 0.007, 0.013, 0.008, 0.011, 0.012, 0.010,
  1147. 0.034, 0.008, 0.008, 0.009, 0.008, 0.008, 0.007, 0.010, 0.008, 0.009,
  1148. 0.009, 0.009, 0.007, 0.007, 0.008, 0.011, 0.008, 0.008, 0.008, 0.01,
  1149. 0.008, 0.029, 0.022, 0.035, 0.037, 0.047, 0.026, 0.025, 0.024, 0.035,
  1150. 0.018, 0.024, 0.022, 0.026, 0.017, 0.021, 0.021, 0.032, 0.02, 0.019,
  1151. 0.022, 0.031, 0.029, 0.022, 0.035, 0.037, 0.047, 0.026, 0.025, 0.024,
  1152. 0.035, 0.018, 0.024, 0.022, 0.026, 0.017, 0.021, 0.021, 0.032, 0.02,
  1153. 0.019, 0.022, 0.031
  1154. ])