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 MutiTaskMultiLabelCrossEntropyLoss = dict(
140 task_key =
'category',
141 pred_keys = score_keys,
143 target_tasks = target_tasks,
144 train_tasks = train_tasks,
145 target_task_weight = 1.0,
146 non_target_task_weight = -1,
147 weights = [0.5, 0.5, 0.5, 0.5, 0.5, 0.125, 0.125, 0.125, 0.125, 0.125],
152metric_args = dict(pred_key=pred_keys,
154 target_tasks=target_tasks[:5],
157collect_keys = [
'pose_heatmap_for_action',
'pose_heatmap_for_pose',
'gt_action_upper',
'gt_action_lower',
'gt_pose',
'gt_hand',
'gt_foot']
160 type =
'ActionDatasetLoader_mtml',
161 data_folder =
'/media/safemotion/HDD5/pjm_test/action_train_dataset_2023/action_mtml_1st_split',
162 category_info = dict(action_upper = 6,
167 clip_len_action = 20,
177 optimizer_args = dict(momentum=0.9, nesterov=
True, weight_decay=0.0001),
178 scheduler =
'CosineAnnealingLR',
180 scheduler_args = dict(T_max=30*ep_mul, eta_min=0),
181 adjust_lr_epoch = [10*ep_mul, 50*ep_mul, 100*ep_mul, 130*ep_mul],
182 adjust_lr_rate = [0.5, 0.1, 0.1, 0.1],
186 update_loss_weight =
False,
187 update_loss_weight_interval = 20,
191 save_root =
'/media/safemotion/HDD5/pjm_test/action_train_result/action_mtml',