2 type=
'ActionRecognitionRunner',
8 stage_blocks = (4, 6, 3),
10 spatial_strides = (2, 2, 2),
11 temporal_strides = (1, 1, 2),
12 dilations = (1, 1, 1),
13 conv1_kernel = (1, 7, 7),
19 inflate_style =
'3x1x1',
20 input_key =
'pose_heatmap_for_action'
26 stage_blocks = (4, 6, 3),
28 spatial_strides = (2, 2, 2),
29 temporal_strides = (1, 1, 2),
30 dilations = (1, 1, 1),
31 conv1_kernel = (1, 7, 7),
37 inflate_style =
'3x1x1',
38 input_key =
'pose_heatmap_for_pose'
43 in_channels = 1024+512,
46 input_key = [
'action_feat',
'pose_feat']
84 aux_action_upper = dict(
89 input_key =
'action_feat',
91 aux_action_lower = dict(
96 input_key =
'action_feat',
103 input_key =
'pose_feat',
110 input_key =
'pose_feat',
117 input_key =
'pose_feat',
122 pred_action_upper =
'action_upper',
123 pred_action_lower =
'action_lower',
130score_keys = [
'action_upper',
'action_lower',
'pose',
'hand',
'foot',
'aux_action_upper',
'aux_action_lower',
'aux_pose',
'aux_hand',
'aux_foot']
131pred_keys = [
'pred_action_upper',
'pred_action_lower',
'pred_pose',
'pred_hand',
'pred_foot']
132gt_keys = [
'gt_action_upper',
'gt_action_lower',
'gt_pose',
'gt_hand',
'gt_foot',
'gt_action_upper',
'gt_action_lower',
'gt_pose',
'gt_hand',
'gt_foot']
133target_tasks = [
'action_upper',
'action_lower',
'pose',
'hand',
'foot',
'action_upper',
'action_lower',
'pose',
'hand',
'foot']
134train_tasks = [
'action_upper',
'action_lower',
'pose',
'hand',
'foot']
138 MutiTaskSigmoidFocalLoss = dict(
140 task_key =
'category',
141 pred_keys = score_keys,
143 target_tasks = target_tasks,
144 weights = [1.0, 1.0, 1.0, 1.0, 1.0, 0.25, 0.25, 0.25, 0.25, 0.25],
149metric_args = dict(pred_key=pred_keys,
151 target_tasks=target_tasks[:5],
154collect_keys = [
'pose_heatmap_for_action',
'pose_heatmap_for_pose',
'gt_action_upper',
'gt_action_lower',
'gt_pose',
'gt_hand',
'gt_foot']
157 type =
'ActionDatasetLoader_mtml',
158 data_folder =
'/media/safemotion/HDD5/pjm_test/action_train_dataset_2023/action_mtml_1st_split',
159 category_info = dict(action_upper = 6,
164 clip_len_action = 20,
174 optimizer_args = dict(momentum=0.9, nesterov=
True, weight_decay=0.0001),
175 scheduler =
'CosineAnnealingLR',
177 scheduler_args = dict(T_max=30*ep_mul, eta_min=0),
178 adjust_lr_epoch = [10*ep_mul, 50*ep_mul, 100*ep_mul, 130*ep_mul],
179 adjust_lr_rate = [0.5, 0.1, 0.1, 0.1],
183 update_loss_weight =
False,
184 update_loss_weight_interval = 20,
188 save_root =
'/media/safemotion/HDD5/pjm_test/action_train_result/action_cat_fl',