Safemotion Lib
Loading...
Searching...
No Matches
stgcn.py
Go to the documentation of this file.
1model = dict(
2 type='STGCNRunner',
3 backbone=dict(
4 type='STGCN',
5 in_channels = 3,
6 graph_args = dict(layout = 'coco', strategy='spatial'),
7 edge_importance_weighting = True,
8 dropout=0.5,
9 ),
10 head=dict(
11 type='STGCNHead',
12 in_channels = 256,
13 num_class = 17
14 ),
15 device='cuda:0'
16)
17
18loss = dict(
19 CrossEntropyLoss = dict(
20 weight = 1.0,
21 weights = [1.0],
22 pred_keys = ['scores'],
23 gt_keys = ['label']
24 )
25)
26
27data_loader = dict(
28 type = 'ActionDatasetLoader',
29 train_data_folder = '/media/safemotion/HDD5/pjm_test/action_2023_pkl_2',
30 test_data_folder = '/media/safemotion/HDD5/pjm_test/action_2023_pkl_2',
31 use_normalize = True,
32)
33
34train = dict(
35 num_workers = 8,
36 init_lr = 0.01,
37 batch_size = 16,
38 epochs = 10,
39 optimizer = 'SGD',
40 optimizer_args = dict(momentum=0.9, nesterov=True, weight_decay=0.0001),
41 adjust_lr_epoch = [50, 100, 150, 200],
42 adjust_lr_rate = [0.1]*4,
43 val_interval = 1,
44
45 pretrained = '/media/safemotion/HDD5/pjm_test/action_train_test/9.pth',
46 save_root = '/media/safemotion/HDD5/pjm_test/action_train_test',
47
48)
49
50test = dict(
51 model_path = '',
52 save_root = '',
53)