Safemotion Lib
Loading...
Searching...
No Matches
Variables
posec3d_cat_mlp_fl Namespace Reference

Variables

 model
 
list score_keys = ['action_upper', 'action_lower', 'pose', 'hand', 'foot', 'aux_action_upper', 'aux_action_lower', 'aux_pose', 'aux_hand', 'aux_foot']
 
list pred_keys = ['pred_action_upper', 'pred_action_lower', 'pred_pose', 'pred_hand', 'pred_foot']
 
list gt_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']
 
list target_tasks = ['action_upper', 'action_lower', 'pose', 'hand', 'foot', 'action_upper', 'action_lower', 'pose', 'hand', 'foot']
 
list train_tasks = ['action_upper', 'action_lower', 'pose', 'hand', 'foot']
 
 loss
 
 metric_args
 
list collect_keys = ['pose_heatmap_for_action', 'pose_heatmap_for_pose', 'gt_action_upper', 'gt_action_lower', 'gt_pose', 'gt_hand', 'gt_foot']
 
 data_loader
 
int ep_mul = 20
 
 train
 
 test
 

Variable Documentation

◆ collect_keys

list posec3d_cat_mlp_fl.collect_keys = ['pose_heatmap_for_action', 'pose_heatmap_for_pose', 'gt_action_upper', 'gt_action_lower', 'gt_pose', 'gt_hand', 'gt_foot']

Definition at line 169 of file posec3d_cat_mlp_fl.py.

◆ data_loader

posec3d_cat_mlp_fl.data_loader
Initial value:
1= dict(
2 type = 'ActionDatasetLoader_mtml',
3 data_folder = '/media/safemotion/HDD5/pjm_test/action_train_dataset_2023/action_mtml_1st_split',
4 category_info = dict(action_upper = 6,
5 action_lower = 12,
6 pose = 8,
7 hand = 4,
8 foot = 2),
9 clip_len_action = 20,
10 clip_len_pose = 6,
11)

Definition at line 171 of file posec3d_cat_mlp_fl.py.

◆ ep_mul

int posec3d_cat_mlp_fl.ep_mul = 20

Definition at line 182 of file posec3d_cat_mlp_fl.py.

◆ gt_keys

list posec3d_cat_mlp_fl.gt_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']

Definition at line 147 of file posec3d_cat_mlp_fl.py.

◆ loss

posec3d_cat_mlp_fl.loss
Initial value:
1= dict(
2 MutiTaskSigmoidFocalLoss = dict(
3 weight = 1.0,
4 task_key = 'category',
5 pred_keys = score_keys,
6 gt_keys = gt_keys,
7 target_tasks = target_tasks,
8 weights = [1.0, 1.0, 1.0, 1.0, 1.0, 0.25, 0.25, 0.25, 0.25, 0.25],
9 # data_num = dict(action = [100, 100, 100, 24, 100, 34, 3, 100, 100], pose = [98, 517, 11, 35])
10 )
11)

Definition at line 152 of file posec3d_cat_mlp_fl.py.

◆ metric_args

posec3d_cat_mlp_fl.metric_args
Initial value:
1= dict(pred_key=pred_keys,
2 gt_key=gt_keys[:5],
3 target_tasks=target_tasks[:5],
4 task_key='category')

Definition at line 164 of file posec3d_cat_mlp_fl.py.

◆ model

posec3d_cat_mlp_fl.model

Definition at line 1 of file posec3d_cat_mlp_fl.py.

◆ pred_keys

list posec3d_cat_mlp_fl.pred_keys = ['pred_action_upper', 'pred_action_lower', 'pred_pose', 'pred_hand', 'pred_foot']

Definition at line 146 of file posec3d_cat_mlp_fl.py.

◆ score_keys

list posec3d_cat_mlp_fl.score_keys = ['action_upper', 'action_lower', 'pose', 'hand', 'foot', 'aux_action_upper', 'aux_action_lower', 'aux_pose', 'aux_hand', 'aux_foot']

Definition at line 145 of file posec3d_cat_mlp_fl.py.

◆ target_tasks

list posec3d_cat_mlp_fl.target_tasks = ['action_upper', 'action_lower', 'pose', 'hand', 'foot', 'action_upper', 'action_lower', 'pose', 'hand', 'foot']

Definition at line 148 of file posec3d_cat_mlp_fl.py.

◆ test

posec3d_cat_mlp_fl.test
Initial value:
1= dict(
2 model_path = None,
3 save_root = '',
4)

Definition at line 207 of file posec3d_cat_mlp_fl.py.

◆ train

posec3d_cat_mlp_fl.train
Initial value:
1= dict(
2 num_workers = 8,
3 init_lr = 0.1,
4 batch_size = 32,
5 epochs = 100*ep_mul,
6 optimizer = 'SGD',
7 optimizer_args = dict(momentum=0.9, nesterov=True, weight_decay=0.0001),
8 scheduler = 'CosineAnnealingLR',
9 # scheduler = 'StepLR',
10 scheduler_args = dict(T_max=30*ep_mul, eta_min=0),
11 adjust_lr_epoch = [10*ep_mul, 50*ep_mul, 100*ep_mul, 130*ep_mul],
12 adjust_lr_rate = [0.5, 0.1, 0.1, 0.1],
13 val_interval = 1,
14
15
16 update_loss_weight = False,
17 update_loss_weight_interval = 20,
18 base_weight = 0.5,
19
20 pretrained = None,#'/media/safemotion/HDD5/pjm_test/action_train_test/9.pth',
21 save_root = '/media/safemotion/HDD5/pjm_test/action_train_result/action_cat_mlp_fl_2nd',
22
23)

Definition at line 183 of file posec3d_cat_mlp_fl.py.

◆ train_tasks

list posec3d_cat_mlp_fl.train_tasks = ['action_upper', 'action_lower', 'pose', 'hand', 'foot']

Definition at line 149 of file posec3d_cat_mlp_fl.py.