forked from openvinotoolkit/training_extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmmaction_base.yaml
105 lines (105 loc) · 2.37 KB
/
mmaction_base.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
task: ACTION_CLASSIFICATION
config:
data_format: kinetics
mem_cache_size: 1GB
mem_cache_img_max_size:
- 500
- 500
image_color_channel: BGR
stack_images: False
unannotated_items_ratio: 0.0
train_subset:
subset_name: train
transform_lib_type: MMACTION
to_tv_image: False
batch_size: 8
num_workers: 2
transforms:
- type: LoadVideoForClassification
- type: DecordInit
- type: SampleFrames
clip_len: 8
frame_interval: 4
num_clips: 1
- type: DecordDecode
- type: Resize
scale:
- -1
- 256
- type: RandomResizedCrop
- type: Resize
scale:
- 224
- 224
keep_ratio: false
- type: Flip
flip_ratio: 0.5
- type: FormatShape
input_format: NCTHW
- type: PackActionInputs
meta_keys:
- img_shape
- ori_shape
- scale_factor
sampler:
class_path: torch.utils.data.RandomSampler
val_subset:
subset_name: val
transform_lib_type: MMACTION
to_tv_image: False
batch_size: 8
num_workers: 2
transforms:
- type: LoadVideoForClassification
- type: DecordInit
- type: SampleFrames
clip_len: 8
frame_interval: 4
num_clips: 1
test_mode: true
- type: DecordDecode
- type: Resize
scale:
- -1
- 256
- type: CenterCrop
crop_size: 224
- type: FormatShape
input_format: NCTHW
- type: PackActionInputs
meta_keys:
- img_shape
- ori_shape
- scale_factor
sampler:
class_path: torch.utils.data.RandomSampler
test_subset:
subset_name: test
transform_lib_type: MMACTION
to_tv_image: False
batch_size: 8
num_workers: 2
transforms:
- type: LoadVideoForClassification
- type: DecordInit
- type: SampleFrames
clip_len: 8
frame_interval: 4
num_clips: 1
test_mode: true
- type: DecordDecode
- type: Resize
scale:
- -1
- 256
- type: CenterCrop
crop_size: 224
- type: FormatShape
input_format: NCTHW
- type: PackActionInputs
meta_keys:
- img_shape
- ori_shape
- scale_factor
sampler:
class_path: torch.utils.data.RandomSampler