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

Variables

 model
 
list score_keys = ['action_upper', 'action_lower']
 
list pred_keys = ['pred_action_upper', 'pred_action_lower']
 
list gt_keys = ['label', 'label']
 
list target_tasks = ['action_upper', 'action_lower']
 
 loss
 
 metric_args
 
list collect_keys = ['pose_heatmap', 'label']
 
 data_loader
 
int ep_mul = 20
 
 train
 
 test
 

Variable Documentation

◆ collect_keys

list posec3d_action_demo.collect_keys = ['pose_heatmap', 'label']

Definition at line 68 of file posec3d_action_demo.py.

◆ data_loader

posec3d_action_demo.data_loader
Initial value:
1= dict(
2 type = 'ActionDatasetLoader_v22',
3 data_folder = '/media/safemotion/HDD5/pjm_test/action_train_dataset_2023/action_v22_1st_split',
4 category_info = dict(action_upper = 6,
5 action_lower = 12),
6 clip_len = 20,
7)

Definition at line 70 of file posec3d_action_demo.py.

◆ ep_mul

int posec3d_action_demo.ep_mul = 20

Definition at line 77 of file posec3d_action_demo.py.

◆ gt_keys

list posec3d_action_demo.gt_keys = ['label', 'label']

Definition at line 48 of file posec3d_action_demo.py.

◆ loss

posec3d_action_demo.loss
Initial value:
1= dict(
2 MutiTaskCrossEntropyLoss = 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],
9 # data_num = dict(action = [100, 100, 100, 24, 100, 34, 3, 100, 100], pose = [98, 517, 11, 35])
10 )
11)

Definition at line 51 of file posec3d_action_demo.py.

◆ metric_args

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

Definition at line 63 of file posec3d_action_demo.py.

◆ model

posec3d_action_demo.model

Definition at line 1 of file posec3d_action_demo.py.

◆ pred_keys

list posec3d_action_demo.pred_keys = ['pred_action_upper', 'pred_action_lower']

Definition at line 47 of file posec3d_action_demo.py.

◆ score_keys

list posec3d_action_demo.score_keys = ['action_upper', 'action_lower']

Definition at line 46 of file posec3d_action_demo.py.

◆ target_tasks

list posec3d_action_demo.target_tasks = ['action_upper', 'action_lower']

Definition at line 49 of file posec3d_action_demo.py.

◆ test

posec3d_action_demo.test
Initial value:
1= dict(
2 model_path = '/media/safemotion/HDD5/pjm_test/action_train_result/1st/weights/2835.pth',
3 save_root = '',
4)

Definition at line 102 of file posec3d_action_demo.py.

◆ train

posec3d_action_demo.train
Initial value:
1= dict(
2 num_workers = 8,
3 init_lr = 0.2,
4 batch_size = 32,
5 epochs = 150*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_2st',
22
23)

Definition at line 78 of file posec3d_action_demo.py.