forked from open-mmlab/mmpose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoco.py
85 lines (85 loc) · 2.3 KB
/
coco.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
dataset_info = dict(
dataset_name='coco',
paper_info=dict(
author='Lin, Tsung-Yi and Maire, Michael and '
'Belongie, Serge and Hays, James and '
'Perona, Pietro and Ramanan, Deva and '
r'Doll{\'a}r, Piotr and Zitnick, C Lawrence',
title='Microsoft coco: Common objects in context',
container='European conference on computer vision',
year='2014',
homepage='http://cocodataset.org/',
),
keypoint_info={
0:
dict(
name='rear_left',
id=0,
color=[51, 153, 255],
type='upper',
swap='rear_right'),
1:
dict(
name='rear_right',
id=1,
color=[51, 153, 255],
type='upper',
swap='rear_left'),
2:
dict(
name='front_left',
id=2,
color=[51, 153, 255],
type='upper',
swap='front_right'),
3:
dict(
name='front_right',
id=3,
color=[51, 153, 255],
type='upper',
swap='front_left'),
4:
dict(
name='L_Fork',
id=4,
color=[51, 153, 255],
type='upper',
swap='R_Fork'),
5:
dict(
name='R_Fork',
id=5,
color=[0, 255, 0],
type='upper',
swap='L_Fork'),
6:
dict(
name='C_Fork',
id=6,
color=[255, 128, 0],
type='upper',
swap=''),
},
skeleton_info={
0:
dict(link=('rear_left', 'rear_right'), id=0, color=[0, 255, 0]),
1:
dict(link=('front_left', 'front_right'), id=1, color=[0, 255, 0]),
2:
dict(link=('rear_left', 'front_left'), id=2, color=[0, 255, 0]),
3:
dict(link=('rear_right', 'front_right'), id=3, color=[0, 255, 0]),
4:
dict(link=('L_Fork', 'R_Fork'), id=4, color=[255, 128, 0]),
5:
dict(link=('L_Fork', 'C_Fork'), id=5, color=[255, 128, 0]),
6:
dict(link=('C_Fork', 'R_Fork'), id=6, color=[255, 128, 0]),
},
joint_weights=[
1., 1., 1., 1., 1., 1., 1.,
],
sigmas=[
0.05, 0.05, 0.05, 0.05, 0.06, 0.06, 0.07,
])