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']
67 layer_channels=[2048],
75 layer_channels=[2048],
83 layer_channels=[2048],
87 aux_action_upper = dict(
92 input_key =
'action_feat',
94 aux_action_lower = dict(
99 input_key =
'action_feat',
105 layer_channels=[1024],
107 input_key =
'pose_feat',
114 layer_channels=[1024],
116 input_key =
'pose_feat',
123 layer_channels=[1024],
125 input_key =
'pose_feat',
131 pred_action_upper =
'action_upper',
132 pred_action_lower =
'action_lower',
139score_keys = [
'action_upper',
'action_lower',
'pose',
'hand',
'foot',
'aux_action_upper',
'aux_action_lower',
'aux_pose',
'aux_hand',
'aux_foot']
140pred_keys = [
'pred_action_upper',
'pred_action_lower',
'pred_pose',
'pred_hand',
'pred_foot']
141gt_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']
142target_tasks = [
'action_upper',
'action_lower',
'pose',
'hand',
'foot',
'action_upper',
'action_lower',
'pose',
'hand',
'foot']
143train_tasks = [
'action_upper',
'action_lower',
'pose',
'hand',
'foot']
147 MutiTaskSigmoidFocalLoss = dict(
149 task_key =
'category',
150 pred_keys = score_keys,
152 target_tasks = target_tasks,
153 weights = [1.0, 1.0, 1.0, 1.0, 1.0, 0.25, 0.25, 0.25, 0.25, 0.25],
158metric_args = dict(pred_key=pred_keys,
160 target_tasks=target_tasks[:5],
163collect_keys = [
'pose_heatmap_for_action',
'pose_heatmap_for_pose',
'gt_action_upper',
'gt_action_lower',
'gt_pose',
'gt_hand',
'gt_foot']
166 type =
'ActionDatasetLoader_mtml',
167 data_folder =
'/media/safemotion/HDD5/pjm_test/action_train_dataset_2023/action_mtml_1st_split',
168 category_info = dict(action_upper = 6,
173 clip_len_action = 20,
183 optimizer_args = dict(momentum=0.9, nesterov=
True, weight_decay=0.0001),
184 scheduler =
'CosineAnnealingLR',
186 scheduler_args = dict(T_max=30*ep_mul, eta_min=0),
187 adjust_lr_epoch = [10*ep_mul, 50*ep_mul, 100*ep_mul, 130*ep_mul],
188 adjust_lr_rate = [0.5, 0.1, 0.1, 0.1],
192 update_loss_weight =
False,
193 update_loss_weight_interval = 20,
197 save_root =
'/media/safemotion/HDD5/pjm_test/action_train_result/action_cat_mlp2_fl',
202 model_path =
'/media/safemotion/HDD5/pjm_test/action_train_result/action_cat_mlp2_fl/weights/1824.pth',