Commit
•
494f6e5
1
Parent(s):
9cc4736
Upload td-hm_hrnet-w48_dark-8xb32-210e_synthpose_inference.py
Browse files
td-hm_hrnet-w48_dark-8xb32-210e_synthpose_inference.py
ADDED
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
backend_args = dict(backend='local')
|
2 |
+
codec = dict(
|
3 |
+
heatmap_size=(
|
4 |
+
72,
|
5 |
+
96,
|
6 |
+
),
|
7 |
+
input_size=(
|
8 |
+
288,
|
9 |
+
384,
|
10 |
+
),
|
11 |
+
sigma=3,
|
12 |
+
type='MSRAHeatmap',
|
13 |
+
unbiased=True)
|
14 |
+
data_mode = 'topdown'
|
15 |
+
dataset_type = 'CocoDataset'
|
16 |
+
default_scope = 'mmpose'
|
17 |
+
model = dict(
|
18 |
+
backbone=dict(
|
19 |
+
extra=dict(
|
20 |
+
stage1=dict(
|
21 |
+
block='BOTTLENECK',
|
22 |
+
num_blocks=(4, ),
|
23 |
+
num_branches=1,
|
24 |
+
num_channels=(64, ),
|
25 |
+
num_modules=1),
|
26 |
+
stage2=dict(
|
27 |
+
block='BASIC',
|
28 |
+
num_blocks=(
|
29 |
+
4,
|
30 |
+
4,
|
31 |
+
),
|
32 |
+
num_branches=2,
|
33 |
+
num_channels=(
|
34 |
+
48,
|
35 |
+
96,
|
36 |
+
),
|
37 |
+
num_modules=1),
|
38 |
+
stage3=dict(
|
39 |
+
block='BASIC',
|
40 |
+
num_blocks=(
|
41 |
+
4,
|
42 |
+
4,
|
43 |
+
4,
|
44 |
+
),
|
45 |
+
num_branches=3,
|
46 |
+
num_channels=(
|
47 |
+
48,
|
48 |
+
96,
|
49 |
+
192,
|
50 |
+
),
|
51 |
+
num_modules=4),
|
52 |
+
stage4=dict(
|
53 |
+
block='BASIC',
|
54 |
+
num_blocks=(
|
55 |
+
4,
|
56 |
+
4,
|
57 |
+
4,
|
58 |
+
4,
|
59 |
+
),
|
60 |
+
num_branches=4,
|
61 |
+
num_channels=(
|
62 |
+
48,
|
63 |
+
96,
|
64 |
+
192,
|
65 |
+
384,
|
66 |
+
),
|
67 |
+
num_modules=3)),
|
68 |
+
in_channels=3,
|
69 |
+
init_cfg=dict(
|
70 |
+
checkpoint=
|
71 |
+
'/scratch/users/yonigoz/mmpose_data/ckpts/hrnet/td-hm_hrnet-w48_dark-8xb32-210e_coco-384x288-39c3c381_20220916.pth',
|
72 |
+
prefix='backbone',
|
73 |
+
type='Pretrained'),
|
74 |
+
type='HRNet'),
|
75 |
+
data_preprocessor=dict(
|
76 |
+
bgr_to_rgb=True,
|
77 |
+
mean=[
|
78 |
+
123.675,
|
79 |
+
116.28,
|
80 |
+
103.53,
|
81 |
+
],
|
82 |
+
std=[
|
83 |
+
58.395,
|
84 |
+
57.12,
|
85 |
+
57.375,
|
86 |
+
],
|
87 |
+
type='PoseDataPreprocessor'),
|
88 |
+
head=dict(
|
89 |
+
decoder=dict(
|
90 |
+
heatmap_size=(
|
91 |
+
72,
|
92 |
+
96,
|
93 |
+
),
|
94 |
+
input_size=(
|
95 |
+
288,
|
96 |
+
384,
|
97 |
+
),
|
98 |
+
sigma=3,
|
99 |
+
type='MSRAHeatmap',
|
100 |
+
unbiased=True),
|
101 |
+
deconv_out_channels=None,
|
102 |
+
in_channels=48,
|
103 |
+
loss=dict(type='KeypointMSELoss', use_target_weight=True),
|
104 |
+
out_channels=52,
|
105 |
+
type='HeatmapHead'),
|
106 |
+
test_cfg=dict(flip_mode='heatmap', flip_test=True, shift_heatmap=True),
|
107 |
+
type='TopdownPoseEstimator')
|
108 |
+
test_dataloader = dict(
|
109 |
+
batch_size=32,
|
110 |
+
dataset=dict(
|
111 |
+
data_mode='topdown',
|
112 |
+
data_prefix=dict(img=''),
|
113 |
+
data_root='',
|
114 |
+
pipeline=[
|
115 |
+
dict(type='LoadImage'),
|
116 |
+
dict(type='GetBBoxCenterScale'),
|
117 |
+
dict(input_size=(
|
118 |
+
288,
|
119 |
+
384,
|
120 |
+
), type='TopdownAffine'),
|
121 |
+
dict(type='PackPoseInputs'),
|
122 |
+
],
|
123 |
+
test_mode=True,
|
124 |
+
type='CocoDataset',
|
125 |
+
used_data_keys=[
|
126 |
+
'nose',
|
127 |
+
'left_eye',
|
128 |
+
'right_eye',
|
129 |
+
'left_ear',
|
130 |
+
'right_ear',
|
131 |
+
'left_shoulder',
|
132 |
+
'right_shoulder',
|
133 |
+
'left_elbow',
|
134 |
+
'right_elbow',
|
135 |
+
'left_wrist',
|
136 |
+
'right_wrist',
|
137 |
+
'left_hip',
|
138 |
+
'right_hip',
|
139 |
+
'left_knee',
|
140 |
+
'right_knee',
|
141 |
+
'left_ankle',
|
142 |
+
'right_ankle',
|
143 |
+
'sternum',
|
144 |
+
'rshoulder',
|
145 |
+
'lshoulder',
|
146 |
+
'r_lelbow',
|
147 |
+
'l_lelbow',
|
148 |
+
'r_melbow',
|
149 |
+
'l_melbow',
|
150 |
+
'r_lwrist',
|
151 |
+
'l_lwrist',
|
152 |
+
'r_mwrist',
|
153 |
+
'l_mwrist',
|
154 |
+
'r_ASIS',
|
155 |
+
'l_ASIS',
|
156 |
+
'r_PSIS',
|
157 |
+
'l_PSIS',
|
158 |
+
'r_knee',
|
159 |
+
'l_knee',
|
160 |
+
'r_mknee',
|
161 |
+
'l_mknee',
|
162 |
+
'r_ankle',
|
163 |
+
'l_ankle',
|
164 |
+
'r_mankle',
|
165 |
+
'l_mankle',
|
166 |
+
'r_5meta',
|
167 |
+
'l_5meta',
|
168 |
+
'r_toe',
|
169 |
+
'l_toe',
|
170 |
+
'r_big_toe',
|
171 |
+
'l_big_toe',
|
172 |
+
'l_calc',
|
173 |
+
'r_calc',
|
174 |
+
'C7',
|
175 |
+
'L2',
|
176 |
+
'T11',
|
177 |
+
'T6',
|
178 |
+
]),
|
179 |
+
drop_last=False,
|
180 |
+
num_workers=4,
|
181 |
+
persistent_workers=True,
|
182 |
+
sampler=dict(round_up=False, shuffle=False, type='DefaultSampler'))
|
183 |
+
visualizer = dict(
|
184 |
+
name='visualizer',
|
185 |
+
type='PoseLocalVisualizer',
|
186 |
+
vis_backends=[
|
187 |
+
dict(type='LocalVisBackend'),
|
188 |
+
])
|